| | |
| | | private AgvWrkDetlLogService agvWrkDetlLogService; |
| | | |
| | | @Autowired |
| | | private AgvWrkMastService agvWrkMastService; |
| | | private AgvWrkMastLogService agvWrkMastLogService; |
| | | |
| | | @Autowired |
| | | private AgvLocMastService agvLocMastService; |
| | |
| | | } |
| | | } |
| | | if (Cools.isEmpty(order.getPltType())) { |
| | | List<AgvWrkDetlLog> agvWrkDetlLogs = agvWrkDetlLogService.selectList(new EntityWrapper<AgvWrkDetlLog>().eq("order_no", order.getOrderNo()).eq("io_type", 1)); |
| | | List<AgvWrkDetlLog> agvWrkDetlLogs = agvWrkDetlLogService.selectList(new EntityWrapper<AgvWrkDetlLog>().eq("order_no", order.getOrderNo()).orderBy("appe_time", false)); |
| | | if (!Cools.isEmpty(agvWrkDetlLogs)) { |
| | | AgvWrkMast agvWrkMast = agvWrkMastService.selectById(agvWrkDetlLogs.get(0).getWrkNo()); |
| | | if (agvWrkMast != null) { |
| | | AgvLocMast agvLocMast = agvLocMastService.selectById(agvWrkMast.getLocNo()); |
| | | AgvWrkDetlLog agvWrkDetlLog = agvWrkDetlLogs.get(0); |
| | | List<AgvWrkMastLog> agvWrkMastLogs = agvWrkMastLogService.selectList(new EntityWrapper<AgvWrkMastLog>().eq("wrk_no", agvWrkDetlLog.getWrkNo()).eq("io_type", 1).orderBy("appe_time", false)); |
| | | if (!Cools.isEmpty(agvWrkMastLogs)) { |
| | | AgvLocMast agvLocMast = agvLocMastService.selectById(agvWrkMastLogs.get(0).getLocNo()); |
| | | if (agvLocMast != null) { |
| | | log.info("补充逻辑生效:{}", order.getOrderNo()); |
| | | order.setPltType(agvLocMast.getPltType()); |
| | | } |
| | | } |