| | |
| | | back = true; |
| | | } |
| | | if (!back && staProtocol.getWeight() > 1000) { |
| | | errMsg = "超重"; |
| | | errMsg = "超重或未读取"; |
| | | back = true; |
| | | } |
| | | if (!back && staProtocol.isBarcodeErr()) { |
| | | errMsg = "扫码失败"; |
| | | back = true; |
| | | } |
| | | if(staProtocol.getWeight() <= 0 ){ |
| | | continue; |
| | | } |
| | | // if (!back && staProtocol.getWeight() == 0.0) { |
| | | // errMsg = "重量获取失败"; |
| | | // back = true; |
| | | // } |
| | | |
| | | // News.info("{}重量", staProtocol.getWeight()); |
| | | |
| | | // 退回 |
| | | if (back) { |
| | |
| | | staProtocol.setStaNo(inSta.getBackSta().shortValue()); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), false); |
| | | MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | | // |
| | | log.error("输送线下发2:" + staProtocol.getWorkNo() + "," + staProtocol.getStaNo()); |
| | | |
| | | // if (ledThread != null) { |
| | | String errorMsg = jsonObject.getString("msg"); |
| | | if (!Cools.isEmpty(errorMsg)) { |