optimize(ebom): 导入SAP优化

This commit is contained in:
曹鹏飞 2024-06-23 19:44:36 +08:00
parent c702a95282
commit c6e1c64104
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ public class BomNewEbomExportToSAP {
public List<OperationErrorMsgVO> export(Long rootBomRowId) {
BomNewEbomParentEntity root = bomNewEbomParentService.getById(rootBomRowId);
VUtils.isTure(Objects.isNull(root)).throwMessage("数据不存在");
// VUtils.isTure(Objects.isNull(root)).throwMessage("数据不存在");
if (Objects.isNull(root)) return Collections.emptyList();
VUtils.isTure(root.getUserRootIs() != 1).throwMessage("请选择根节点");
VUtils.isTure(Objects.equals(root.getSapState(), SapStatusEnum.PUB_RUNNING.getValue()))
.throwMessage("正在导入中,请等待操作完成");