feat(pbom): 修复复制到功能状态判断错误
This commit is contained in:
parent
29d9bcb6fc
commit
cacbdc0fc8
|
|
@ -568,7 +568,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
||||||
private void checkCopyBomParam(Long sourceBomRowId, String targetFacCode) {
|
private void checkCopyBomParam(Long sourceBomRowId, String targetFacCode) {
|
||||||
BomNewPbomParentEntity parent = this.getById(sourceBomRowId);
|
BomNewPbomParentEntity parent = this.getById(sourceBomRowId);
|
||||||
VUtils.isTure(Objects.isNull(parent)).throwMessage("参数错误,复制源BOM不存在");
|
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.getFacCode().equals(targetFacCode)).throwMessage("源工厂和目标工厂一致,无需复制");
|
||||||
VUtils.isTure(parent.getMaterialNo().startsWith("31")).throwMessage("31物料不能进行复制");
|
VUtils.isTure(parent.getMaterialNo().startsWith("31")).throwMessage("31物料不能进行复制");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue