BUG 处理

main
sunhao 3 days ago
parent 725874a567
commit f242f2f136

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

@ -28,7 +28,7 @@
LEFT JOIN PM_PD_CONST_BT PPCB ON PPCB.ROLL_LINE_NO = SUBSTR(MS.MSC_LINE_NO,3,2) LEFT JOIN PM_PD_CONST_BT PPCB ON PPCB.ROLL_LINE_NO = SUBSTR(MS.MSC_LINE_NO,3,2)
WHERE 1=1 WHERE 1=1
AND MS.MSC_LINE_NO='1030' --5米轧线 AND MS.MSC_LINE_NO='1030' --5米轧线
AND MS.SLAB_NO = 'C50000230200' -- AND MS.SLAB_NO = 'C50000230200'
-- AND ((SELECT SUM(NVL(P1.NEED_SLAB_WT,0)) FROM PM_PD_SLAB P1 WHERE P1.SLAB_NO = MS.SLAB_NO)= MS.SLAB_ACT_WGT -- AND ((SELECT SUM(NVL(P1.NEED_SLAB_WT,0)) FROM PM_PD_SLAB P1 WHERE P1.SLAB_NO = MS.SLAB_NO)= MS.SLAB_ACT_WGT
-- OR (SELECT SUM(NVl(P1.NEED_SLAB_WT,0)) FROM PM_PD_SLAB P1 WHERE P1.SLAB_NO = MS.SLAB_NO) = 0)--重量相同 -- OR (SELECT SUM(NVl(P1.NEED_SLAB_WT,0)) FROM PM_PD_SLAB P1 WHERE P1.SLAB_NO = MS.SLAB_NO) = 0)--重量相同
-- AND SUBSTR(MS.NEXT_WHOLE_BACKLOG_CODE,2,1) !='B' --全程工序代码第二位不能是B不嫩是火切工序 -- AND SUBSTR(MS.NEXT_WHOLE_BACKLOG_CODE,2,1) !='B' --全程工序代码第二位不能是B不嫩是火切工序

Loading…
Cancel
Save