Pbom-解决T项只能加一个的问题

This commit is contained in:
luolm 2024-11-05 22:51:22 +08:00
parent db7a3752bd
commit 8cbf61aafc
1 changed files with 1 additions and 0 deletions

View File

@ -532,6 +532,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
childList.forEach(u -> { childList.forEach(u -> {
u.setParentRowId(paramDTO.getBomRowId()); u.setParentRowId(paramDTO.getBomRowId());
if(u.getRowId() == null || u.getRowId()<=0){ if(u.getRowId() == null || u.getRowId()<=0){
u.setRowId(IdWorker.getId());
u.setSourceStatus(PbomSourceStatusEnum.PBOM.getValue()); u.setSourceStatus(PbomSourceStatusEnum.PBOM.getValue());
u.setFacCode(parent.getFacCode()); u.setFacCode(parent.getFacCode());
//新增T项 //新增T项