|
@@ -55,7 +55,7 @@ import com.github.zuihou.common.constant.CodeRuleModule;
|
|
|
import com.github.zuihou.common.constant.ParameterKey;
|
|
|
import com.github.zuihou.common.constant.RepeatCacheKey;
|
|
|
import com.github.zuihou.common.util.DateUtil;
|
|
|
-import com.github.zuihou.common.util.ForEachUtil;
|
|
|
+//import com.github.zuihou.common.util.ForEachUtil;
|
|
|
import com.github.zuihou.common.util.TimeUtils;
|
|
|
import com.github.zuihou.database.mybatis.auth.DataScope;
|
|
|
import com.github.zuihou.database.mybatis.conditions.Wraps;
|
|
@@ -616,7 +616,6 @@ public class OrderServiceImpl extends SuperServiceImpl<OrderMapper, Order> imple
|
|
|
|
|
|
//查出本次需要得工艺信息
|
|
|
Map<Long, List<BomProcedure>> bomProcedureMap = bomProcedureService.getBomProcedureMap(bomIdList);
|
|
|
-
|
|
|
if(bomProcedureMap.size() == 0){
|
|
|
return R.fail("当前排产零件中存在未配置工艺路线,无法进行排产");
|
|
|
}else{
|
|
@@ -628,6 +627,7 @@ public class OrderServiceImpl extends SuperServiceImpl<OrderMapper, Order> imple
|
|
|
for(BomProcedure bomProcedure : bomProcedures){
|
|
|
if(CollectionUtil.isEmpty(bomProcedure.getProductionresourceList())){
|
|
|
log.warn("{}当前排产零件中存在未配置加工设备、设备不在线或报警,无法进行排产", bomProcedure.getName());
|
|
|
+ System.out.println(bomProcedure.getName()+": " + bomProcedure.getProductionresourceList());
|
|
|
return R.fail("当前排产零件中"+bomProcedure.getName()+"存在未配置加工设备、设备不在线或报警,无法进行排产");
|
|
|
}
|
|
|
}
|