自动化立体仓库 - WMS系统
zhangc
2025-01-07 9169660171f956ab54d2ec4d9464c64eb5ef2e07
src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java
@@ -46,6 +46,15 @@
    private AgvWrkDetlLogService agvWrkDetlLogService;
    @Autowired
    private AgvWrkMastLogService agvWrkMastLogService;
    @Autowired
    private AgvLocMastService agvLocMastService;
    @Autowired
    private AgvWrkDetlLogService agvWrkDetlLogService;
    @Autowired
    private AgvWrkMastService agvWrkMastService;
    @Autowired
@@ -109,12 +118,14 @@
                }
            }
            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());
                        }
                    }