feat(pbom): 修复复制到功能状态判断错误

This commit is contained in:
曹鹏飞 2024-05-29 08:30:56 +08:00
parent 29d9bcb6fc
commit cacbdc0fc8
1 changed files with 1 additions and 1 deletions

View File

@ -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物料不能进行复制");
} }