|
|
@@ -6,6 +6,7 @@ import org.jeecg.modules.system.app.mapper.AppGmtInfoMapper;
|
|
|
import org.jeecg.modules.system.app.service.IAppOrderProInfoService;
|
|
|
import org.jeecg.modules.system.app.service.IAppOrderService;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -13,31 +14,25 @@ import javax.annotation.Resource;
|
|
|
/**
|
|
|
* @author wzq
|
|
|
* @date 2025/9/8 15:18
|
|
|
- * @description
|
|
|
+ * @description 统计即将今日过期的子订单,发送延迟队列,在过期时修改订单过期状态,排除过期自动退款(无固定场)的订单
|
|
|
*/
|
|
|
@Slf4j
|
|
|
@AllArgsConstructor
|
|
|
-//@Component
|
|
|
-public class SchoolOrderJobService {
|
|
|
+@Component
|
|
|
+public class TodayExpireOrderJobService {
|
|
|
|
|
|
- private final IAppOrderService appOrderService;
|
|
|
-
|
|
|
- private final IAppOrderProInfoService appOrderProInfoService;
|
|
|
-
|
|
|
- @Resource
|
|
|
- private AppGmtInfoMapper appGmtInfoMapper;
|
|
|
|
|
|
/**
|
|
|
- * @Description 查询学校开门记录表,匹配已开过门的订单,修改订单状态为已使用
|
|
|
+ * @Description 统计24小时内即将过期的订单,并发送过期订单延迟消息
|
|
|
*/
|
|
|
@Scheduled(cron = "")
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void execute(){
|
|
|
- log.info("开始执行检查学校开门记录定时任务");
|
|
|
+ log.info("开始执行统计24小时内即将过期的订单,并发送过期订单延迟消息定时任务");
|
|
|
try {
|
|
|
|
|
|
}catch (Exception e){
|
|
|
- log.error("检查已过期未使用的订单退款定时任务异常",e);
|
|
|
+ log.error("统计24小时内即将过期的订单,并发送过期订单延迟消息异常",e);
|
|
|
}
|
|
|
}
|
|
|
}
|