| | |
| | | barcodeThread.setBarcode(""); |
| | | staProtocol.setWorkNo((short)9999); |
| | | staProtocol.setStaNo((short)201); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), false); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), true); |
| | | boolean result = MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | | log.error("url:{};request:{};response:{}", wmsUrl+"/rpc/pakin/loc/v1", JSON.toJSONString(param), response); |
| | | }else { |
| | |
| | | barcodeThread.setBarcode(""); |
| | | staProtocol.setWorkNo((short)9999); |
| | | staProtocol.setStaNo((short)201); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), false); |
| | | devpThread.setPakMk(staProtocol.getSiteId(), true); |
| | | boolean result = MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |
| | | log.error("请求接口失败!!!url:{};request:{};response:{}", wmsUrl+"/rpc/pakin/loc/v1", JSON.toJSONString(param), response); |
| | | } |
| | |
| | | } else { |
| | | staProtocol = staProtocol.clone(); |
| | | } |
| | | if (staProtocol.isAutoing() && (staProtocol.isLoading()||staProtocol.getSiteId()==109) && (staProtocol.getWorkNo() == 0 || staProtocol.getStaNo() == null)) { |
| | | if (staProtocol.isAutoing() && (staProtocol.isLoading()||staProtocol.getSiteId()==1000) && (staProtocol.getWorkNo() == 0 || staProtocol.getStaNo() == null)) { |
| | | // 查询工作档 |
| | | WrkMast wrkMast = wrkMastMapper.selectPakOutStep2(staProtocol.getSiteId()); |
| | | if (wrkMast == null) { |
| | |
| | | }else if(devpThread.startSignal[i][0]==3){ |
| | | locMast.setPackStatus(7); |
| | | testMast.setModiTime(new Date()); |
| | | }else if(devpThread.startSignal[i][0]==4 && testMast.getStatus()!=4){ |
| | | }else if(devpThread.startSignal[i][0]==4 && testMast.getStatus()!=4&&locMast.getFireStatus()!=1&&testMast.getStatus()!=6){ |
| | | locMast.setPackStatus(3); |
| | | testMast.setStatus(4); |
| | | testMast.setModiTime(new Date()); |
| | | testMastService.insertPackQualified(true,new Date(),testMast.getBarcode()); |
| | | }else if(devpThread.startSignal[i][0]==5 && testMast.getStatus()!=4){ |
| | | }else if(devpThread.startSignal[i][0]==5 && testMast.getStatus()!=4&&locMast.getFireStatus()!=1&&testMast.getStatus()!=6){ |
| | | locMast.setPackStatus(4); |
| | | testMast.setStatus(4); |
| | | testMast.setModiTime(new Date()); |