|
|
|
@ -46,7 +46,7 @@ public class SubController {
|
|
|
|
|
private static List<GCalGrp> gltGCalGrp = new CopyOnWriteArrayList<>();
|
|
|
|
|
|
|
|
|
|
//计算结果数据
|
|
|
|
|
private static List<GGrpCalRslt> gltGGrpCalRslt = new CopyOnWriteArrayList<>();
|
|
|
|
|
private static List<GGrpCalRslt> gltGGrpCalRslt = Collections.synchronizedList(new ArrayList<>());
|
|
|
|
|
|
|
|
|
|
//组板板坯表
|
|
|
|
|
private static List<PmPdSlabDO> pmPdSlabDOList = new ArrayList<>();
|
|
|
|
@ -161,15 +161,16 @@ public class SubController {
|
|
|
|
|
|
|
|
|
|
//循环板坯
|
|
|
|
|
plistSlab.forEach(p -> {
|
|
|
|
|
|
|
|
|
|
logger.info("*************板坯开始{}************* " , p.getSlabNo());
|
|
|
|
|
try {
|
|
|
|
|
gltGCalGrp=new ArrayList<>();
|
|
|
|
|
//二次分组
|
|
|
|
|
SetGrpDataBySlab(p);
|
|
|
|
|
|
|
|
|
|
logger.info("***二次分组数量*** " + gltGCalGrp.size());
|
|
|
|
|
|
|
|
|
|
if (gltGCalGrp.size() > 0) {
|
|
|
|
|
|
|
|
|
|
gltGGrpCalRslt = new ArrayList<>();
|
|
|
|
|
SetGroupCalRslt(p);
|
|
|
|
|
logger.info("结果数据板坯号:{};数量:{}",p.getSlabNo(), gltGGrpCalRslt.size());
|
|
|
|
|
}
|
|
|
|
@ -177,12 +178,15 @@ public class SubController {
|
|
|
|
|
// SetSaveDate(p);
|
|
|
|
|
//}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
logger.info(e.toString());
|
|
|
|
|
logger.error("An error occurred", e);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
logger.info("*************板坯结束{}************* " , p.getSlabNo());
|
|
|
|
|
logger.info("");
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
logger.info("*****处理结束*****");
|
|
|
|
|
logger.info("");
|
|
|
|
|
logger.info("-");
|
|
|
|
|
return JsonData.buildSuccess();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1217,6 +1221,10 @@ public class SubController {
|
|
|
|
|
gltGGrpCalRslt.add(GGCR);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (gltGGrpCalRslt.size()==0)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//分组计算
|
|
|
|
|
// gltGGrpCalRslt.parallelStream().forEach(p -> {
|
|
|
|
|
gltGGrpCalRslt.parallelStream().forEach(p -> {
|
|
|
|
@ -1226,8 +1234,13 @@ public class SubController {
|
|
|
|
|
List<Integer> ltweights= new ArrayList<>();
|
|
|
|
|
List<String> ltOrder= new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
logger.info( "订单总数量:" + p.getLtInfoGPreOrder().size());
|
|
|
|
|
|
|
|
|
|
// logger.info( "订单总数量:" + p.getLtInfoGPreOrder().size());
|
|
|
|
|
if (p== null) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (p.getLtInfoGPreOrder() == null) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//计算可处理数据最大值
|
|
|
|
|
p.getLtInfoGPreOrder().forEach(e->{
|
|
|
|
|
|
|
|
|
|