feat(dqbom): 同步到pbom时设置source
This commit is contained in:
parent
3d7e49d19e
commit
ec5ef37346
|
|
@ -529,6 +529,7 @@ public class DQBomService {
|
|||
c.setModifyTime(null);
|
||||
c.setFacCode(FactoryCodeEnum.FACTORY_1010.getValue());
|
||||
c.setIdentityNo(c.getParentRowId() + "_" + c.getRowId());
|
||||
c.setSource(2);
|
||||
if (CollUtil.isNotEmpty(materialBaseInfos)) {
|
||||
BaseMaterialVO materialVO = materialBaseInfos.stream()
|
||||
.filter(m -> m.getMaterialNo().equals(c.getMaterialNo()))
|
||||
|
|
@ -578,6 +579,7 @@ public class DQBomService {
|
|||
p.setReleaseTime(LocalDateTime.now());
|
||||
p.setReleaseUserName(SessionUtil.getUserName());
|
||||
p.setDeptRowId(SessionUtil.getDepartRowId());
|
||||
p.setSource(2);
|
||||
});
|
||||
bomNewPbomParentService.saveBatch(pparents);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue