同步sap
This commit is contained in:
parent
f7a261dbab
commit
e8f7ef564d
|
|
@ -266,6 +266,24 @@ public class BomNewPbomParentEntity implements Serializable {
|
||||||
@ApiModelProperty(value = "发布人")
|
@ApiModelProperty(value = "发布人")
|
||||||
private String releaseUserName;
|
private String releaseUserName;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 最后一次转MbOM人员
|
||||||
|
*/
|
||||||
|
@TableField(value = "last_convert_mbom_user_name")
|
||||||
|
@ApiModelProperty(value = "最后一次转MbOM人员")
|
||||||
|
private String lastConvertMbomUserName;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 最后一次转Mbom时间
|
||||||
|
*/
|
||||||
|
@TableField(value = "last_convert_mbom_time")
|
||||||
|
@ApiModelProperty(value = "最后一次转Mbom时间")
|
||||||
|
private LocalDateTime lastConvertMbomTime;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 版本过期时间=下个版本的创建时间
|
* 版本过期时间=下个版本的创建时间
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -742,6 +742,8 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
||||||
List<Long> bomRowIds = allChild.stream().filter(u -> u.getBomRowId() > 0).map(u -> u.getBomRowId()).collect(Collectors.toList());
|
List<Long> bomRowIds = allChild.stream().filter(u -> u.getBomRowId() > 0).map(u -> u.getBomRowId()).collect(Collectors.toList());
|
||||||
|
|
||||||
rootParent.setStatus(PBomStatusEnum.PUBLISH.getValue());
|
rootParent.setStatus(PBomStatusEnum.PUBLISH.getValue());
|
||||||
|
rootParent.setLastConvertMbomUserName(SessionUtil.getRealName());
|
||||||
|
rootParent.setLastConvertMbomTime(LocalDateTime.now());
|
||||||
this.updateById(rootParent);
|
this.updateById(rootParent);
|
||||||
if (CollUtil.isNotEmpty(bomRowIds)) {
|
if (CollUtil.isNotEmpty(bomRowIds)) {
|
||||||
this.getBaseMapper().toMBom(PBomStatusEnum.PUBLISH.getValue(), SessionUtil.getRealName(), bomRowIds);
|
this.getBaseMapper().toMBom(PBomStatusEnum.PUBLISH.getValue(), SessionUtil.getRealName(), bomRowIds);
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@
|
||||||
<result column="created_job" property="createdJob" jdbcType="INTEGER"/>
|
<result column="created_job" property="createdJob" jdbcType="INTEGER"/>
|
||||||
<result column="release_time" property="releaseTime" jdbcType="TIMESTAMP"/>
|
<result column="release_time" property="releaseTime" jdbcType="TIMESTAMP"/>
|
||||||
<result column="release_user_name" property="releaseUserName" jdbcType="VARCHAR"/>
|
<result column="release_user_name" property="releaseUserName" jdbcType="VARCHAR"/>
|
||||||
|
<result column="last_convert_mbom_user_name" property="lastConvertMbomUserName" jdbcType="VARCHAR"/>
|
||||||
|
<result column="last_convert_mbom_time" property="lastConvertMbomTime" jdbcType="TIMESTAMP" />
|
||||||
<result column="expire_end_time" property="expireEndTime" jdbcType="TIMESTAMP"/>
|
<result column="expire_end_time" property="expireEndTime" jdbcType="TIMESTAMP"/>
|
||||||
<result column="remark" property="remark" jdbcType="VARCHAR"/>
|
<result column="remark" property="remark" jdbcType="VARCHAR"/>
|
||||||
<result column="dept_name" property="deptName" jdbcType="VARCHAR"/>
|
<result column="dept_name" property="deptName" jdbcType="VARCHAR"/>
|
||||||
|
|
@ -54,7 +56,7 @@
|
||||||
material_texture, material_unit, unit_weight, total_weight, current_version, num, project_type, root_is,
|
material_texture, material_unit, unit_weight, total_weight, current_version, num, project_type, root_is,
|
||||||
should_bom_exist, super_material_status, bom_exist, last_version_is, edit_status, status, user_root_is,
|
should_bom_exist, super_material_status, bom_exist, last_version_is, edit_status, status, user_root_is,
|
||||||
virtual_package_is, source_row_id, devise_user_code, devise_name,technology_user_code,technology_user_name, created_by, created_time, created_job,
|
virtual_package_is, source_row_id, devise_user_code, devise_name,technology_user_code,technology_user_name, created_by, created_time, created_job,
|
||||||
release_time, release_user_name, expire_end_time, remark, dept_name, level_num, change_desc, notice_nums,
|
release_time, release_user_name,last_convert_mbom_user_name,last_convert_mbom_time, expire_end_time, remark, dept_name, level_num, change_desc, notice_nums,
|
||||||
order_no, modify_time
|
order_no, modify_time
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue