cloudroam
2024-09-13 3a145380492e1f47c634b212624fcdc5f30ee335
src/main/java/com/mzl/flower/schedule/WarehouseScheduleService.java
@@ -34,7 +34,7 @@
    /**
     * 每天17点,定时分配订单库位(查询前一天17点到今天17点支付完成且未分配库位的订单)
     */
    @Scheduled(cron = "0 35 15 * * ?")
    @Scheduled(cron = "0 0 17 * * ?")
    public void allocatedWarehouseLocation() {
        log.info("定时分配订单库位开始:" + DateFormatUtils.format(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss"));
        //查询当日待分配的订单
@@ -85,8 +85,8 @@
                        }
                    }
                    if(customerOrders!=null && customerOrders.size()>0){ //散户订单
                        Map<String, WarehouseLocationDTO> customerLocationMap = new HashMap<>();
                        for (Order order : customerOrders) {
                            Map<String, WarehouseLocationDTO> customerLocationMap = new HashMap<>();
                            if(locations!=null && locations.size()>0){
                                String key = order.getCreateBy()+"||"+order.getCustomerAddress();
                                WarehouseLocationDTO location = null;