| | |
| | | |
| | | if (!isJSON(orderNo)) { |
| | | //检查订单是否已完成 |
| | | orderService.checkComplete(orderNo, agvWrkMast.getLocNo()); |
| | | orderService.checkComplete(orderNo, agvWrkMast.getPltType()); |
| | | } else { |
| | | List<Map> maps = JSONArray.parseArray(orderNo, Map.class); |
| | | maps.forEach(map -> { |
| | | String o = map.get("orderNo").toString(); |
| | | orderService.checkComplete(o, agvWrkMast.getLocNo()); |
| | | orderService.checkComplete(o, agvWrkMast.getPltType()); |
| | | }); |
| | | } |
| | | |
| | |
| | | agvWrkDetlService.delete(new EntityWrapper<AgvWrkDetl>().eq("wrk_no", wrkNo)); |
| | | if (!isJSON(orderNo)) { |
| | | //检查订单是否已完成 |
| | | orderService.checkComplete(orderNo, agvWrkMast.getLocNo()); |
| | | orderService.checkComplete(orderNo, agvWrkMast.getPltType()); |
| | | } else { |
| | | List<Map> maps = JSONArray.parseArray(orderNo, Map.class); |
| | | maps.forEach(map -> { |
| | | String o = map.get("orderNo").toString(); |
| | | orderService.checkComplete(o, agvWrkMast.getLocNo()); |
| | | orderService.checkComplete(o, agvWrkMast.getPltType()); |
| | | }); |
| | | } |
| | | |
| | |
| | | agvWrkDetlService.delete(new EntityWrapper<AgvWrkDetl>().eq("wrk_no", wrkNo)); |
| | | if (!isJSON(orderNo)) { |
| | | //检查订单是否已完成 |
| | | orderService.checkComplete(orderNo, agvWrkMast.getLocNo()); |
| | | orderService.checkComplete(orderNo, agvWrkMast.getPltType()); |
| | | } else { |
| | | List<Map> maps = JSONArray.parseArray(orderNo, Map.class); |
| | | maps.forEach(map -> { |
| | | String o = map.get("orderNo").toString(); |
| | | orderService.checkComplete(o, agvWrkMast.getLocNo()); |
| | | orderService.checkComplete(o, agvWrkMast.getPltType()); |
| | | }); |
| | | } |
| | | //上报mes |
| | |
| | | } |
| | | return SUCCESS; |
| | | } catch (Exception e) { |
| | | log.error("修改AGV入库通知档状态入出状态为Y" + e.getMessage()); |
| | | //TODO |
| | | //log.error("修改AGV入库通知档状态入出状态为Y" + e.getMessage()); |
| | | } |
| | | return FAIL; |
| | | } |