调整状态

This commit is contained in:
jing's 2023-12-27 17:22:29 +08:00
parent 6bbf7fd7b0
commit a65025da79
1 changed files with 4 additions and 2 deletions

View File

@ -794,6 +794,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
BomNewEbomParentEntity entity = new BomNewEbomParentEntity();
entity.setRowId(rowId);
entity.setStatus(EBomStatusEnum.RETURNED.getValue());
entity.setEditStatus(EbomEditStatusEnum.HANDLER_CREATED.getValue());
entity.setRevertTime(LocalDateTime.now());
entity.setRevertUserName(dto.getRevertUserName());
updateList.add(entity);
@ -870,6 +871,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
entity.setAuditTime(LocalDateTime.now());
entity.setAuditUserName(dto.getRevertUserName());
entity.setStatus(EBomStatusEnum.CHECKED.getValue());
entity.setEditStatus(EbomEditStatusEnum.HANDLER_FINISHED.getValue());
updateReviewList.add(entity);
}
@ -1019,8 +1021,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
}
if (CollectionUtil.isNotEmpty(eBomDel.getDelEBom())) {
// ThreadUtil.execAsync(() -> computeLevelNumAndRootState());
computeLevelNumAndRootState();
ThreadUtil.execAsync(() -> computeLevelNumAndRootState());
// computeLevelNumAndRootState();
}
return true;