1、EBOM-编辑问题

This commit is contained in:
大米 2024-03-13 17:28:04 +08:00
parent 5995b101a5
commit 820aff2be0
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public class EBomEdit {
BomNewEbomParentEntity createParentBomInfo(BomNewEbomParentVO vo) {
BomNewEbomParentEntity parent = new BomNewEbomParentEntity();
BeanUtil.copyProperties(parent, vo);
BeanUtil.copyProperties(vo,parent);
// BaseMaterialVO material = materialVOMap.get(vo.getMaterialNo());
String batchNo = IdUtil.simpleUUID();
@ -208,6 +208,9 @@ public class EBomEdit {
if (dto.getParent().getBomRowId() == null || dto.getParent().getBomRowId().longValue() == 0) {
dto.getParent().setBomRowId(dto.getParent().getRowId());
parent = createParentBomInfo(dto.getParent());
dto.getDatas().forEach(k->{
k.setParentRowId(parent.getRowId());
});
parent.setEditStatus(dto.getOpType());
//工艺人员