optimize(pbom): 导入SAP不再判断是否根节点

This commit is contained in:
曹鹏飞 2024-06-29 17:35:19 +08:00
parent 079df935de
commit 1e6bc020f2
1 changed files with 1 additions and 1 deletions

View File

@ -1227,7 +1227,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.getUserRootIs() != 1 && root.getRootIs() != 1).throwMessage("请选择根节点");
// VUtils.isTure(root.getUserRootIs() != 1 && root.getRootIs() != 1).throwMessage("请选择根节点");
IBomNewPbomExportToSAP service = new BomNewPbomExportToSAPImpl(query.getIsForSale());
return service.export(root.getRowId());