fix(pbom): 优化根节点判断

This commit is contained in:
曹鹏飞 2024-06-04 15:50:16 +08:00
parent ae1d544aa1
commit 855eddfc1c
1 changed files with 1 additions and 1 deletions

View File

@ -1194,7 +1194,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
public List<OperationErrorMsgVO> importToSAP2(PbomImportToSAPQuery query) {
BomNewPbomParentEntity root = getById(query.getRootBomRowId());
VUtils.isTure(Objects.isNull(root)).throwMessage("数据不存在");
VUtils.isTure(root.getRootIs() != 1).throwMessage("请选择根节点");
VUtils.isTure(root.getUserRootIs() != 1 && root.getRootIs() != 1).throwMessage("请选择根节点");
// IBomNewPbomExportToSAP service;
// if (root.getMaterialNo().startsWith("31")) {