添加模型dept_row_id
This commit is contained in:
parent
0fb12afba0
commit
4f86a44420
|
|
@ -272,6 +272,10 @@ public class BomNewEbomParentVO extends BaseMaterialVO implements Serializable {
|
|||
*/
|
||||
@ApiModelProperty(value = "设计维护部门名称")
|
||||
private String deptName;
|
||||
@ApiModelProperty(value = "创建人所属部门rowId")
|
||||
private Long deptRowId;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* bom树的高度
|
||||
|
|
|
|||
|
|
@ -1963,7 +1963,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
|
||||
eBomEdit.nextVersion();
|
||||
|
||||
this.saveOrUpdate(eBomEdit.getParentEntity());
|
||||
this.saveOrUpdate(eBomEdit.getParentEntity());
|
||||
|
||||
}
|
||||
|
||||
if (CollUtil.isNotEmpty(eBomEdit.childEntities)) {
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ public class EBomEdit {
|
|||
parent.setCurrentVersion("A00");
|
||||
parent.setDeviseName(SessionUtil.getRealName());
|
||||
parent.setDeptName(SessionUtil.getDepartName());
|
||||
parent.setDeptRowId(SessionUtil.getDepartRowId());
|
||||
parent.setSourceRowId("");
|
||||
parent.setSource(source);
|
||||
parent.setStatus(EBomStatusEnum.WAIT_CHECK.getValue());
|
||||
|
|
@ -352,8 +353,10 @@ public class EBomEdit {
|
|||
if (dto.getParent().getBomRowId() == null || dto.getParent().getBomRowId().longValue() == 0) {
|
||||
|
||||
checkHadBom(dto.getParent().getMaterialNo());
|
||||
dto.getParent().setBomRowId(dto.getParent().getRowId());
|
||||
|
||||
parentEntity = createParentBomInfo(dto.getParent());
|
||||
// dto.getParent().setBomRowId(dto.getParent().getRowId());
|
||||
|
||||
dto.getDatas().forEach(k -> {
|
||||
k.setParentRowId(parentEntity.getRowId());
|
||||
});
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@
|
|||
<result column="convert_to_ebom_time" property="convertToEbomTime" jdbcType="TIMESTAMP"/>
|
||||
<result column="remark" property="remark" jdbcType="VARCHAR"/>
|
||||
<result column="dept_name" property="deptName" jdbcType="VARCHAR"/>
|
||||
<result column="dept_row_id" property="deptRowId" jdbcType="BIGINT"/>
|
||||
|
||||
<result column="level_num" property="levelNum" jdbcType="INTEGER"/>
|
||||
<result column="change_desc" property="changeDesc" jdbcType="VARCHAR"/>
|
||||
<result column="notice_nums" property="noticeNums" jdbcType="VARCHAR"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue