|
@@ -120,7 +120,8 @@ public class IotMainWorkOrderBomMaterialServiceImpl implements IotMainWorkOrderB
|
|
|
Set<Long> costCenterIds = new HashSet<>();
|
|
|
Set<Long> stockLocationIds = new HashSet<>();
|
|
|
if (CollUtil.isEmpty(sapOrgS)) {
|
|
|
- throw exception(IOT_MAIN_WORK_ORDER_BOM_MATERIAL_NOT_EXISTS);
|
|
|
+ // throw exception(IOT_MAIN_WORK_ORDER_BOM_MATERIAL_NOT_EXISTS);
|
|
|
+ return new PageResult<>(new ArrayList<>(), 0l);
|
|
|
}
|
|
|
sapOrgS.forEach(sapOrg -> {
|
|
|
if (ObjUtil.isNotEmpty(sapOrg.getFactoryId())) {
|
|
@@ -133,9 +134,6 @@ public class IotMainWorkOrderBomMaterialServiceImpl implements IotMainWorkOrderB
|
|
|
stockLocationIds.add(sapOrg.getStockLocationId());
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
// DeptDO dept = deptService.getDept(pageReqVO.getDeptId());
|
|
|
// if (Objects.isNull(dept)) {throw new ServiceException();}
|
|
|
// 查询 bom 节点已经关联的物料列表
|