| | |
| | | if (Cools.isEmpty(basDevp) || basDevp.getReportSign()==1){ |
| | | return FAIL; |
| | | } |
| | | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 2); |
| | | StaProtocol staProtocol = devpThread.getStation().get(staNo); |
| | | if (staProtocol == null) { |
| | | return FAIL; |
| | |
| | | if (!Cools.isEmpty(basDevp) && basDevp.getAutoing().equals("Y") && basDevp.getWrkNo()==0){ |
| | | if (staProtocol.isAutoing() && staProtocol.getWorkNo()==0 && staProtocol.isInEnable()){ |
| | | log.error("1楼翻转重量信息上传时,站点状态:"+JSON.toJSONString(staProtocol)); |
| | | ScaleEscalationParam scaleEscalationParam = new ScaleEscalationParam(basDevp.getGrossWt()); |
| | | ScaleEscalationParam scaleEscalationParam = new ScaleEscalationParam(basDevp.getGrossWt(),basDevp.getDevNo()); |
| | | ReturnT<String> result = postMesData(reportOutPath,scaleEscalationParam); |
| | | if (result.getCode()==200){ |
| | | basDevp.setReportSign(1); |