添加模型dept_row_id

This commit is contained in:
jing's 2024-06-20 15:43:48 +08:00
parent 0fb12afba0
commit 4f86a44420
4 changed files with 12 additions and 2 deletions

View File

@ -272,6 +272,10 @@ public class BomNewEbomParentVO extends BaseMaterialVO implements Serializable {
*/
@ApiModelProperty(value = "设计维护部门名称")
private String deptName;
@ApiModelProperty(value = "创建人所属部门rowId")
private Long deptRowId;
/**
* bom树的高度

View File

@ -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)) {

View File

@ -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());
});

View File

@ -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"/>