| | |
| | | String[] split = crnNo1.getArr().split(","); |
| | | for (Integer idx : indices) { |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", split[idx])); |
| | | if (locMast == null||Cools.isEmpty(locMast.getBarcode())) { |
| | | if (locMast == null||Cools.isEmpty(locMast.getBarcode())||locMast.getLocSts().equals("O")) { |
| | | News.info("没有查询到该库位或者没有找到该库位对应托盘码 :{}", split[idx]); |
| | | CrnCommand command = new CrnCommand(); |
| | | command.setLocNo(locMast.getLocNo()); |
| | |
| | | News.info("请求WMS堆垛机状态上报接口成功!!!url:{};request:{};response:{}", wmsUrl + wmsSystemCrnStatusUrl, |
| | | JSON.toJSONString(locMast.getBarcode()), response); |
| | | } else { |
| | | result = 0; |
| | | CrnCommand command = new CrnCommand(); |
| | | command.setLocNo(locMast.getLocNo()); |
| | | command.setIndex(idx); |
| | | command.setValue((short)0); |
| | | MessageQueue.offer(SlaveType.Crn, crnNo, new Task(5, command)); |
| | | News.info("请求WMS堆垛机状态上报接口失败,接口返回Code异常!!!url:{};request:{};response:{}", |
| | | wmsUrl + wmsSystemCrnStatusUrl, JSON.toJSONString(locMast.getBarcode()), response); |
| | | } |