|  |  | 
 |  |  |                     // 退回 | 
 |  |  |                     if (back) { | 
 |  |  |                         log.warn("扫码入库失败,{}入库站因{}异常,托盘已被退回", inSta.getStaNo(), errMsg); | 
 |  |  |                         staProtocol.setWorkNo((short) 9995); | 
 |  |  |                         staProtocol.setWorkNo((short) 32002); | 
 |  |  |                         staProtocol.setStaNo(inSta.getBackSta().shortValue()); | 
 |  |  |                         devpThread.setPakMk(staProtocol.getSiteId(), false); | 
 |  |  |                         MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); | 
 |  |  | 
 |  |  |                     if(!Cools.isEmpty(barcode)) { | 
 |  |  | //                        log.info("{}号条码扫描器检测条码信息:{}", inSta.getBarcode(), barcode); | 
 |  |  |                         if("NG".endsWith(barcode) || "NoRead".equals(barcode) || "empty".equals(barcode)) { | 
 |  |  |                             staProtocol.setWorkNo((short) 9995); | 
 |  |  |                             staProtocol.setWorkNo((short) 32002); | 
 |  |  |                             staProtocol.setStaNo(inSta.getBackSta().shortValue()); | 
 |  |  |                             devpThread.setPakMk(staProtocol.getSiteId(), false); | 
 |  |  |                             MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); | 
 |  |  | 
 |  |  |                             continue; | 
 |  |  |                         } | 
 |  |  |                     } else { | 
 |  |  |                         staProtocol.setWorkNo((short) 9995); | 
 |  |  |                         staProtocol.setWorkNo((short) 32002); | 
 |  |  |                         staProtocol.setStaNo(inSta.getBackSta().shortValue()); | 
 |  |  |                         devpThread.setPakMk(staProtocol.getSiteId(), false); | 
 |  |  |                         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 if (code == 700) { | 
 |  |  |                             staProtocol.setWorkNo((short) 9995); | 
 |  |  |                             staProtocol.setWorkNo((short) 32002); | 
 |  |  |                             staProtocol.setStaNo(inSta.getBackSta().shortValue()); | 
 |  |  |                             devpThread.setPakMk(staProtocol.getSiteId(), false); | 
 |  |  |                             MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); | 
 |  |  | 
 |  |  |                     // 退回 | 
 |  |  |                     if (back) { | 
 |  |  |                         log.warn("扫码入库失败,{}入库站因{}异常,托盘已被退回", inSta.getStaNo(), errMsg); | 
 |  |  |                         staProtocol.setWorkNo((short) 9995); | 
 |  |  |                         staProtocol.setWorkNo((short) 32002); | 
 |  |  |                         staProtocol.setStaNo(inSta.getBackSta().shortValue()); | 
 |  |  |                         devpThread.setPakMk(staProtocol.getSiteId(), false); | 
 |  |  |                         MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); | 
 |  |  | 
 |  |  | //                        if(!Cools.isEmpty(barcode)) { | 
 |  |  | //                            log.info("{}号条码扫描器检测条码信息:{}", pickSta.getBarcode(), barcode); | 
 |  |  | //                            if("NG".endsWith(barcode) || "NoRead".equals(barcode) || "empty".equals(barcode)) { | 
 |  |  | //                                staProtocol.setWorkNo((short) 9995); | 
 |  |  | //                                staProtocol.setWorkNo((short) 32002); | 
 |  |  | //                                staProtocol.setStaNo(pickSta.getBackSta().shortValue()); | 
 |  |  | //                                devpThread.setPakMk(staProtocol.getSiteId(), false); | 
 |  |  | //                                MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); | 
 |  |  | 
 |  |  | //                                continue; | 
 |  |  | //                            } | 
 |  |  | //                        } else { | 
 |  |  | //                            staProtocol.setWorkNo((short) 9995); | 
 |  |  | //                            staProtocol.setWorkNo((short) 32002); | 
 |  |  | //                            staProtocol.setStaNo(pickSta.getBackSta().shortValue()); | 
 |  |  | //                            devpThread.setPakMk(staProtocol.getSiteId(), false); | 
 |  |  | //                            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.setWorkNo((short) 9995); | 
 |  |  |                             staProtocol.setWorkNo((short) 32002); | 
 |  |  |                             staProtocol.setStaNo(pickSta.getBackSta().shortValue()); | 
 |  |  |                             devpThread.setPakMk(staProtocol.getSiteId(), false); | 
 |  |  |                             MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol)); |