|
@@ -164,8 +164,11 @@ public class ProductionScheduleServiceImpl implements ProductionScheduleService
|
|
|
|
|
|
// 退火提前排序
|
|
|
Map<String,List<String>> ordergrous = new HashMap<>();
|
|
|
- apsService.tuihuoApsSch(apsSolution,otherThproces,otherNotZzFirstProces,productionScheduleVo,ordergrous);
|
|
|
- log.info("退火提前合并排程结束,合并订单列表:"+JSONUtil.toJsonStr(ordergrous));
|
|
|
+ if(productionScheduleVo.getScheduleType() == null || productionScheduleVo.getScheduleType().getThMergeMode() == null
|
|
|
+ || !"notThMergeBf".equals(productionScheduleVo.getScheduleType().getThMergeMode())){
|
|
|
+ apsService.tuihuoApsSch(apsSolution,otherThproces,otherNotZzFirstProces,productionScheduleVo,ordergrous);
|
|
|
+ log.info("退火提前合并排程结束,合并订单列表:"+JSONUtil.toJsonStr(ordergrous));
|
|
|
+ }
|
|
|
/*if(1 == 1){
|
|
|
return null;
|
|
|
}*/
|
|
@@ -191,7 +194,7 @@ public class ProductionScheduleServiceImpl implements ProductionScheduleService
|
|
|
// 异常坯料计划ID
|
|
|
List<String> exOrderIds = new ArrayList<>();
|
|
|
// 混合排程
|
|
|
- if("2".equals(productionScheduleVo.getScheduleType())){
|
|
|
+ if(productionScheduleVo.getScheduleType() != null && "mix".equals(productionScheduleVo.getScheduleType().getMixIf())){
|
|
|
// optaplanner 求解器配置实例化
|
|
|
SolverFactory<ApsSolution> solverFactory = SolverFactory.create(new SolverConfig()
|
|
|
.withEnvironmentMode(mode)
|
|
@@ -1293,6 +1296,7 @@ public class ProductionScheduleServiceImpl implements ProductionScheduleService
|
|
|
process.getApsOverallConfig().setFurnacedifference(productionScheduleVo.getFurnacedifference());
|
|
|
process.getApsOverallConfig().setWeightdifference(productionScheduleVo.getWeightdifference());
|
|
|
process.getApsOverallConfig().setMidweightdifference(productionScheduleVo.getMidweightdifference());
|
|
|
+ process.getApsOverallConfig().setScheduleType(productionScheduleVo.getScheduleType());
|
|
|
|
|
|
if(StrUtil.isBlank(process.getTaskType())){
|
|
|
process.setTaskType("processes");
|