|
|
@@ -2,7 +2,6 @@ package com.sckw.transport.task;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.google.common.collect.Lists;
|
|
|
import com.sckw.core.exception.BusinessException;
|
|
|
import com.sckw.core.model.enums.CarWaybillV1Enum;
|
|
|
import com.sckw.core.model.enums.LogisticsOrderV1Enum;
|
|
|
@@ -16,7 +15,6 @@ import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import java.lang.constant.Constable;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@@ -24,7 +22,7 @@ import java.util.stream.Collectors;
|
|
|
* @desc: 物流订单自动完成定时任务
|
|
|
* @desc: 查询状态为"完结中"的物流订单,如果该订单下的所有运单状态都是"已完成",则将物流订单状态更新为"已完成"
|
|
|
* @author: cxf
|
|
|
- * @date: 2025-01-XX
|
|
|
+ * @date: 2025-12-19
|
|
|
*/
|
|
|
@Component
|
|
|
@Slf4j
|
|
|
@@ -39,7 +37,7 @@ public class LogisticsOrderCompletionTask {
|
|
|
* cron表达式:0 0/5 * * * ? 表示每5分钟执行一次
|
|
|
* 可以根据实际需求调整执行频率
|
|
|
*/
|
|
|
- @Scheduled(cron = "0 0/5 * * * ?")
|
|
|
+ @Scheduled(cron = "${schedule.logistics-order-completion-cron}")
|
|
|
public void process() {
|
|
|
log.info("物流订单自动完成定时任务开始...");
|
|
|
|
|
|
@@ -137,5 +135,4 @@ public class LogisticsOrderCompletionTask {
|
|
|
throw new BusinessException("物流订单自动完成定时任务执行异常", e);
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
+}
|