Merge branch 'refs/heads/feature/DM/nflg-bom' into feature/DM/nflg-bom-transition
This commit is contained in:
commit
fd3c119ac5
|
|
@ -569,7 +569,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
private void checkCopyBomParam(Long sourceBomRowId, String targetFacCode) {
|
||||
BomNewPbomParentEntity parent = this.getById(sourceBomRowId);
|
||||
VUtils.isTure(Objects.isNull(parent)).throwMessage("参数错误,复制源BOM不存在");
|
||||
VUtils.isTure(!PBomStatusEnum.PUBLISH.equalsValue(parent.getStatus())).throwMessage("只有已发布版本,才能复制");
|
||||
VUtils.isTure(PBomStatusEnum.PUBLISH.getValue() > parent.getStatus()).throwMessage("只有已发布版本,才能复制");
|
||||
VUtils.isTure(parent.getFacCode().equals(targetFacCode)).throwMessage("源工厂和目标工厂一致,无需复制");
|
||||
VUtils.isTure(parent.getMaterialNo().startsWith("31")).throwMessage("31物料不能进行复制");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue