From b49345c85dfad9d73c6b88b54679ad5de9dbfe3c Mon Sep 17 00:00:00 2001 From: yxFwq <1> Date: 星期日, 24 十一月 2024 09:43:44 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 210 +++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 157 insertions(+), 53 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java index b05492e..ae3c037 100644 --- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java @@ -61,6 +61,8 @@ // private static final Integer jarMaxLoc1 = 7; private static Integer jarMaxLoc = 0; + private static Integer signBigTurn = 0; + private static Integer signSmallTurn = 0; private static final Float jarTemperature = 50F; @Autowired private CommonService commonService; @@ -3098,7 +3100,9 @@ if (wrkMast == null) { continue; } - + if (wrkMast.getStaNoSign().equals(signBigTurn)){ + continue; + } crnStation = crnStation1; CrnSlave.CrnStn crnStn = null; @@ -3112,18 +3116,37 @@ continue; } + if (wrkMast.getStaNo()>309){ + int wrkCount = wrkMastMapper.selectCount(new EntityWrapper<WrkMast>().eq("io_type", 110).gt("sta_no", 309).lt("sta_no", 314).gt("wrk_sts",11L)); + if (wrkCount>=12){ + continue; + } + RgvOneSign bigTurn = rgvOneSignMapper.selectOneSign("bigTurn"); + if (Cools.isEmpty(bigTurn)){ + continue; + } + if (bigTurn.getRgvOneSign()>13){ + continue; + } + DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Devp, 1); + StaProtocol staProtocolEnt = devpThread.getStation().get(212); + if (staProtocolEnt.isLoading() || staProtocolEnt.getWorkNo()!=0){ + continue; + } + } + // 宸ヤ綔妗g姸鎬佸垽鏂� if (wrkMast.getIoType() < 100 || wrkMast.getSourceStaNo() == null) { log.error("鏌ヨ宸ヤ綔妗f暟鎹笉绗﹀悎鏉′欢--鍏ュ嚭绫诲瀷/绔欑偣, 宸ヤ綔鍙�={}锛屾簮搴撲綅={}锛屽叆鍑虹被鍨�={}", wrkMast.getWrkNo(), wrkMast.getSourceLocNo(), wrkMast.getIoType()); continue; } - //閫�搴撴ā寮忚烦杩�118銆�119鍑哄簱浠诲姟 - if (wrkMast.getStaNo()==118 || wrkMast.getStaNo()==119){ - RgvOneSign rgvOneSign = rgvOneSignMapper.selectOneSign("oneSign"); - if (Cools.isEmpty(rgvOneSign) || rgvOneSign.getRgvOneSign()==1){ - continue; - } - } +// //閫�搴撴ā寮忚烦杩�118銆�119鍑哄簱浠诲姟 +// if (wrkMast.getStaNo()==118 || wrkMast.getStaNo()==119){ +// RgvOneSign rgvOneSign = rgvOneSignMapper.selectOneSign("oneSign"); +// if (Cools.isEmpty(rgvOneSign) || rgvOneSign.getRgvOneSign()==1){ +// continue; +// } +// } // 鑾峰彇婧愬簱浣嶄俊鎭� LocMast sourceSta = locMastService.selectById(wrkMast.getSourceLocNo()); if (!sourceSta.getLocSts().equals("R") && !sourceSta.getLocSts().equals("P")) { @@ -3329,6 +3352,10 @@ // } // } } + } + signBigTurn++; + if (signBigTurn > 2){ + signBigTurn = 0; } } @@ -5108,16 +5135,17 @@ break; } BasJar basJar = basJarMapper.selectById(jarSlave.getId()); + BasJar basJarOther = basJarMapper.selectById(jarSlave.getJarOtherId()); jarMaxLoc = basJar.getJarCount(); - if (jarMaxLoc == 0) { + if (jarMaxLoc == 0 || basJarOther.getJarCount() == 0) { break; } - int count = basJarMastService.selectCount(new EntityWrapper<BasJarMast>().eq("jar_regin", basJar.getRegion()).lt("status", 17).gt("status", 11)); + int count = basJarMastService.selectCount(new EntityWrapper<BasJarMast>().eq("jar_regin", basJar.getRegion()).lt("status", 17).gt("status", 6)); if (count>0){ break; } if (basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(),3)!=0){ - if (basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(), 3).equals(jarMaxLoc)){ + if (basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(), 3).equals(basJarOther.getJarCount())){ JarThread jarOtherThread = (JarThread) SlaveConnection.get(SlaveType.Jar, jarSlave.getJarOtherId()); JarProtocol jarOtherProtocol = jarOtherThread.getJarProtocol(); if (jarOtherProtocol == null) { @@ -5203,7 +5231,7 @@ if (jarProtocol.modeType != JarModeType.AUTO){ return false; } - if (jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -5233,7 +5261,7 @@ //鑷姩銆佺┖闂层�佸彸闂ㄥ叧闂�� Other宸﹂棬鍏抽棴 if (jarProtocol.isAutoing() && jarProtocol.jarErr==0 && jarProtocol.leftDoorOpen==0 && jarProtocol.leftDoorClose==0 && jarProtocol.rightDoorOpen==0 && jarProtocol.rightDoorClose==0){ - if (jarProtocol.statusType != JarStatusType.SOS){ + if (jarProtocol.statusType != JarStatusType.SOS && jarProtocol.statusType != JarStatusType.SOS2){ log.error("Jar浠诲姟鍒涘缓===銆嬫墽琛�===>琛�={}",4537); BasJarMast basJarMast = new BasJarMast(basJar, wrkMast, jarLocDigit); basJarMast.setJarEnterStaNo(staNo);//鍏ョ~鍖栫綈绔欑偣 @@ -5325,6 +5353,8 @@ signExecute = jarWrkMastExecuteGenerateBurial(signExecute, sign);//鍐峰嵈妲藉彇杈撻�佺嚎 default: jarWrkMastExecuteGenerateSte(signExecute,sign);//灏忚溅绉诲姩 +// signExecute = jarWrkMastExecuteGenerateBurial(signExecute, sign);//鍐峰嵈妲藉彇杈撻�佺嚎 + } if (!signExecute[0] && !signExecute[1]){ //Ste绉诲姩 @@ -5580,7 +5610,7 @@ if (jarProtocol.modeType != JarModeType.AUTO){ return false; } - if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ return false; } if (jarProtocol.getJarTemperature()>jarTemperature){ @@ -5658,9 +5688,9 @@ List<BasJarMast> basJarMastList = basJarMastService.getJarMastByJarIdAndStatusList(jarSlave.getId(), new ArrayList<Integer>() {{ add(4); }}); -// if (basJarMastList.size() != jarMaxLoc){ -// return false; -// } + if (basJarMastList.isEmpty()){ + return false; + } BasJarMast basJarMastSign = basJarMastList.get(0); if (Cools.isEmpty(basJarMastSign)){ @@ -5688,7 +5718,7 @@ return false; } - if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -5714,7 +5744,7 @@ } //闂ㄤ綔涓� 鏃� - if (jarProtocol.isAutoing() && jarProtocol.statusType != JarStatusType.SOS && jarProtocol.jarErr==0 + if (jarProtocol.isAutoing() && jarProtocol.statusType != JarStatusType.SOS && jarProtocol.statusType!= JarStatusType.SOS2 && jarProtocol.jarErr==0 && jarProtocol.isRightDoor() && jarProtocol.isLeftDoor() && jarProtocol.leftDoorOpen==0 && jarProtocol.leftDoorClose==0 && jarProtocol.rightDoorOpen==0 && jarProtocol.rightDoorClose==0){ //鍏宠繘鏂欓棬 @@ -5746,11 +5776,9 @@ List<BasJarMast> basJarMastList = basJarMastService.getJarMastByJarIdAndStatusList(jarSlave.getId(), new ArrayList<Integer>() {{ add(6); }}); -// if (basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(),5)!=0 -// && basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(),5)!=jarMaxLoc -// && basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(),5)!=jarMaxLoc*2){ -// return false; -// } + if (basJarMastList.isEmpty()){ + return false; + } BasJarMast basJarMastSign = basJarMastList.get(0); if (Cools.isEmpty(basJarMastSign)){ @@ -5779,7 +5807,7 @@ return false; } - if (jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -5809,6 +5837,15 @@ log.error("JarWrkMastExecute浠诲姟鍒涘缓===>鎵ц寮傚父===銆嬪紓甯告暟鎹細BasJar:"+ JSON.toJSONString(basJar)+";BasJarMast:"+JSON.toJSONString(basJarMastSign)); } return true; + } else if (jarProtocol.isAutoing() && jarProtocol.statusType != JarStatusType.SOS && jarProtocol.statusType != JarStatusType.SOS2 + && jarProtocol.statusType != JarStatusType.WAITING2 && jarProtocol.jarErr==0 + && jarProtocol.isLeftDoor() && jarProtocol.isRightDoor() + && jarProtocol.leftDoorOpen==0 && jarProtocol.leftDoorClose==0 && jarProtocol.rightDoorOpen==0 && jarProtocol.rightDoorClose==0){ + Integer integer = basJarMastService.updateStatus(jarProtocol.getJarNo(), 6, 8); + if (basJarMastList.size()!=integer){ + log.error("{}鍙风~鍖栫綈纭寲瀹屾垚鍚庡紑闂ㄥ畬鎴愪慨鏀圭~鍖栨。妗堢姸鎬佺粨鏋滄暟閲忎笉涓�鑷达紒锛侊紒鏌ヨ璧勬枡鏁伴噺={}锛屾洿鏂拌繑鍥炴暟閲�={}",jarProtocol.getJarNo(),basJarMastList.size(),integer); + } + return true; } return false; } else { @@ -5877,7 +5914,7 @@ return false; } - if (jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -5895,7 +5932,24 @@ if (basJarMastList10.size()==jarMaxLoc){ return false; } - if (basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(),4)!=0 && !basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(), 4).equals(jarMaxLoc)){ + + BasJar basJarOther = basJarMapper.selectById(jarSlave.getJarOtherId()); + if (Cools.isEmpty(basJarOther)){ + log.error("{}鍙风~鍖栫綈鏌ヨ璁惧妗f鏃犱俊鎭紒锛侊紒",jarSlave.getJarOtherId()); + return false; + } + + if (basJarOther.getJarCount() == 0) { + return false; + } + + List<BasJarMast> basJarMastListOther = basJarMastService.getJarMastByJarIdAndStatusList(jarSlave.getJarOtherId(), new ArrayList<Integer>() {{ + add(8); + }}); + if (!basJarMastListOther.isEmpty() && basJarMastListOther.size() < basJarOther.getJarCount()){ + return false; + } + if (basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(),4)!=0 && !basJarMastService.selectJarMastOperation(jarSlave.getJarOtherId(), 4).equals(basJarOther.getJarCount() )){ return false; } @@ -6428,7 +6482,7 @@ if (jarProtocol.modeType != JarModeType.AUTO){ return false; } - if (jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -6556,7 +6610,7 @@ if (jarProtocol.modeType != JarModeType.AUTO){ return false; } - if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -6684,7 +6738,7 @@ if (jarProtocol.modeType != JarModeType.AUTO){ return false; } - if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -6800,7 +6854,7 @@ if (jarProtocol.modeType != JarModeType.AUTO){ return false; } - if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.WAITING2) || jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -6916,7 +6970,7 @@ if (jarProtocol.modeType != JarModeType.AUTO){ return false; } - if (jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -7052,7 +7106,7 @@ return false; } - if (jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -7524,7 +7578,7 @@ return false; } - if (jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); return false; } @@ -7576,7 +7630,7 @@ continue; } - if (jarProtocolOther.statusType .equals(JarStatusType.SOS)){ + if (jarProtocolOther.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ // log.error("{}鍙风~鍖栫綈鏌ヨ璁惧姝e湪纭寲涓紝浠诲姟寮傚父锛侊紒锛�",jarProtocol.getJarNo()); continue; } @@ -7854,26 +7908,18 @@ try{ switch (sign){ case 1: - case 5: - case 9: if (jarWrkMastExecuteGenerateSteComplete(sign)){ break; } case 2: - case 6: - case 10: if (jarWrkMastExecuteGenerateJarComplete(sign)){ break; } case 3: - case 7: - case 11: if (jarWrkMastExecuteGenerateRgvComplete1(sign)){ break; } case 4: - case 8: - case 12: if (jarWrkMastExecuteGenerateRgvComplete2(sign)){ break; } @@ -8086,7 +8132,7 @@ && (jarProtocol.leftDoorClose==2 || jarProtocol.rightDoorClose==2)){ if (jarProtocol.getJarTemperature()>jarTemperature){ log.error("{}鍙风~鍖栫綈鏌ヨ璁惧娓╁害杩囬珮锛岀瓑寰呴檷娓�....锛侊紒锛�",jarProtocol.getJarNo()); - return false; + continue; } WrkMastExecute wrkMastExecuteSou = new WrkMastExecute(); wrkMastExecuteSou.setWrkSts(3); @@ -8392,7 +8438,14 @@ continue; } SteProtocol steProtocol = steThread.getSteProtocol(); - if (steProtocol == null || steProtocol.getChargeStatus()!=0) { + if (steProtocol == null) { + continue; + } + if (Cools.isEmpty(steProtocol.getChargeStatus())) { + log.error("{}鍙峰皬杞︼紝鍏呯數鐘舵�佷俊鎭紓甯革紝灏忚溅淇℃伅锛歿}",steProtocol.getSteNo(),steProtocol.toString()); + continue; + } + if (steProtocol.getChargeStatus()!=0) { continue; } WrkMastExecute wrkMastExecuteByCharge = wrkMastExecuteService.getWrkMastExecuteByCharge(steSlave.getId()); @@ -8409,6 +8462,9 @@ add(5); add(11); add(17); + add(99); + add(100); + add(999); }}); if(!basJarMastList.isEmpty()){ continue; @@ -8459,7 +8515,7 @@ if (jarProtocol.modeType != JarModeType.AUTO){ continue; } - if (jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ continue; } if (jarProtocol.getJarTemperature()>jarTemperature){ @@ -8506,7 +8562,14 @@ continue; } SteProtocol steProtocol = steThread.getSteProtocol(); - if (steProtocol == null || steProtocol.getChargeStatus()!=1) { + if (steProtocol == null) { + continue; + } + if (Cools.isEmpty(steProtocol.getChargeStatus())) { + log.error("{}鍙峰皬杞︼紝鍏呯數鐘舵�佷俊鎭紓甯革紝灏忚溅淇℃伅锛歿}",steProtocol.getSteNo(),steProtocol.toString()); + continue; + } + if (steProtocol.getChargeStatus()!=1) { continue; } @@ -8516,6 +8579,9 @@ add(5); add(11); add(17); + add(99); + add(100); + add(999); }}); if(basJarMastList.isEmpty()){ if (wrkMastExecuteService.selectNoStartCharge(steSlave.getId())==0){ @@ -8540,7 +8606,7 @@ if (jarProtocol.modeType != JarModeType.AUTO){ continue; } - if (jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ continue; } if (jarProtocol.getJarTemperature()>jarTemperature){ @@ -8584,6 +8650,11 @@ if (!jarSteTake(wrkMastExecuteByCharge,SteLocaType.POINT20.id,SteLocaType.POINT20.id,SteTaskModeType.CLOSE_CHARGE,true,wrkMastExecuteByCharge.getJarId())){ log.error("绌挎鏉縎te鍛戒护涓嬪彂澶辫触锛宻te鍙�={},浠诲姟鏁版嵁={}", wrkMastExecuteByCharge.getSteId(), JSON.toJSONString(wrkMastExecuteByCharge)); + } + try{ + Thread.sleep(1000); + } catch (Exception e){ + } wrkMastExecuteByCharge.setWrkType(2); wrkMastExecuteByCharge.setWrkSts(100); @@ -8643,13 +8714,44 @@ } } + try{ + for (int idi = 1;idi<5;idi++){ + LedThread ledThread = (LedThread) SlaveConnection.get(SlaveType.Led, idi); + + if (ledThread != null) { + ErrMsg errMsg1 = new ErrMsg(); + errMsg1.setErrMsg("娴嬭瘯锛�"+idi); + errMsg1.setArea("1"); + MessageQueue.offer(SlaveType.Led, idi, new Task(5, errMsg1)); + } try { + Thread.sleep(500); + } catch (Exception e){ + + } + } + LedThread ledThread3 = (LedThread) SlaveConnection.get(SlaveType.Led, 3); + + if (ledThread3 != null) { + ErrMsg errMsg1 = new ErrMsg(); + errMsg1.setErrMsg("娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯娴嬭瘯锛�"+3); + errMsg1.setArea("1"); + MessageQueue.offer(SlaveType.Led, 3, new Task(5, errMsg1)); + } try { + Thread.sleep(500); + } catch (Exception e){ + + } + } catch (Exception e){ + + } + } public synchronized Integer jarGetStartStaNo(Integer staNo) { try { int[] jarNos=new int[]{3,1,4,2};//(607鍒嗛厤纭寲缃�) ArrayList<Integer> staNos = new ArrayList<Integer>() {{ - add(607);add(608);add(609);add(610);add(611);add(612); + add(608);add(609);add(610);add(611);add(612); add(613);add(614);add(615);add(616);add(617);add(618); add(619);add(620);add(621);add(622); }}; @@ -8726,7 +8828,7 @@ if (jarProtocol.modeType != JarModeType.AUTO){ continue; } - if (jarProtocol.statusType .equals(JarStatusType.SOS)){ + if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ continue; } if (jarProtocol.getJarTemperature()>jarTemperature){ @@ -8750,14 +8852,16 @@ add(3); add(4); }}); - DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Devp, 2); Integer count = basJarMastList.size(); ArrayList<Integer> wrkNoList = new ArrayList<>(); - for (Integer staNoEnt : staNos){ + DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Devp, 2); StaProtocol staProtocolEnt = devpThread.getStation().get(staNoEnt); - if (staProtocolEnt != null && staProtocolEnt.getWorkNo()!=0 && !wrkNoList.contains(staProtocolEnt.getWorkNo())){ + if (staProtocolEnt == null || (staProtocolEnt.isLoading() && staProtocolEnt.getWorkNo()==0)){ +// log.error("绔欑偣寮傚父,璁℃暟鍔犱竴锛岀珯鐐瑰彿锛�"+staNoEnt); + count++; + } else if (staProtocolEnt != null && staProtocolEnt.getWorkNo()!=0 && !wrkNoList.contains(staProtocolEnt.getWorkNo())){ if (staProtocolEnt.getStaNo().equals(basJar.getEntStaNo$())){ count++; wrkNoList.add(staProtocolEnt.getWorkNo()); -- Gitblit v1.9.1