退回判断调整
This commit is contained in:
parent
747ab69c96
commit
6bbf7fd7b0
|
|
@ -763,7 +763,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
// List<BomNewEbomParentEntity> waitList = bomNewEbomParentEntityList.stream().filter(item -> item.getStatus().equals(EBomStatusEnum.WAIT_CHECK.getValue())).collect(Collectors.toList());
|
// List<BomNewEbomParentEntity> waitList = bomNewEbomParentEntityList.stream().filter(item -> item.getStatus().equals(EBomStatusEnum.WAIT_CHECK.getValue())).collect(Collectors.toList());
|
||||||
// List<BomNewEbomParentEntity> revertList = bomNewEbomParentEntityList.stream().filter(item -> item.getStatus().equals(EBomStatusEnum.RETURNED.getValue())).collect(Collectors.toList());
|
// List<BomNewEbomParentEntity> revertList = bomNewEbomParentEntityList.stream().filter(item -> item.getStatus().equals(EBomStatusEnum.RETURNED.getValue())).collect(Collectors.toList());
|
||||||
|
|
||||||
List<BomNewEbomParentVO> pbomList = bomTreeList.stream().filter(item -> item.getStatus().equals(EBomStatusEnum.PUBLISHED.getValue())).collect(Collectors.toList());
|
List<BomNewEbomParentVO> pbomList = bomTreeList.stream().filter(item -> EBomStatusEnum.PUBLISHED.getValue().equals(item.getStatus())).collect(Collectors.toList());
|
||||||
// if (CollUtil.isNotEmpty(waitList)) {
|
// if (CollUtil.isNotEmpty(waitList)) {
|
||||||
// List<String> materialNoList = waitList.stream().map(BomNewEbomParentEntity::getMaterialNo).collect(Collectors.toList());
|
// List<String> materialNoList = waitList.stream().map(BomNewEbomParentEntity::getMaterialNo).collect(Collectors.toList());
|
||||||
//
|
//
|
||||||
|
|
@ -774,7 +774,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
//
|
//
|
||||||
// throw new NflgBusinessException(STATE.BusinessError, StrUtil.format("物料编号 {} 状态为已退回,不需要退回设计", StrUtil.join(",", materialNoList)));
|
// throw new NflgBusinessException(STATE.BusinessError, StrUtil.format("物料编号 {} 状态为已退回,不需要退回设计", StrUtil.join(",", materialNoList)));
|
||||||
// }
|
// }
|
||||||
if (pbomList.size() > 0) {
|
if (CollectionUtil.isNotEmpty(pbomList) ) {
|
||||||
List<String> materialNoList = pbomList.stream().map(BomNewEbomParentVO::getMaterialNo).collect(Collectors.toList());
|
List<String> materialNoList = pbomList.stream().map(BomNewEbomParentVO::getMaterialNo).collect(Collectors.toList());
|
||||||
throw new NflgBusinessException(STATE.BusinessError, StrUtil.format("物料编号 {} 状态为已发布PBOM,无法退回设计", StrUtil.join(",", materialNoList)));
|
throw new NflgBusinessException(STATE.BusinessError, StrUtil.format("物料编号 {} 状态为已发布PBOM,无法退回设计", StrUtil.join(",", materialNoList)));
|
||||||
|
|
||||||
|
|
@ -793,7 +793,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
||||||
for (Long rowId : revertList) {
|
for (Long rowId : revertList) {
|
||||||
BomNewEbomParentEntity entity = new BomNewEbomParentEntity();
|
BomNewEbomParentEntity entity = new BomNewEbomParentEntity();
|
||||||
entity.setRowId(rowId);
|
entity.setRowId(rowId);
|
||||||
entity.setEditStatus(EBomStatusEnum.RETURNED.getValue());
|
entity.setStatus(EBomStatusEnum.RETURNED.getValue());
|
||||||
entity.setRevertTime(LocalDateTime.now());
|
entity.setRevertTime(LocalDateTime.now());
|
||||||
entity.setRevertUserName(dto.getRevertUserName());
|
entity.setRevertUserName(dto.getRevertUserName());
|
||||||
updateList.add(entity);
|
updateList.add(entity);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue