Pu Zhibing
3 天以前 bc1fd81c844d0f7b17dbe612543073ae049b23a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//package com.ruoyi.integration.util;
//
//import com.ruoyi.integration.mongodb.service.*;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
///**
// * 定时任务工具类
// * @author zhibing.pu
// * @Date 2025/5/21 11:43
// */
//@Component
//public class TaskUtil {
//
//    @Resource
//    private AcquisitionBillingModeReplyService acquisitionBillingModeReplyService;
//
//    @Resource
//    private AcquisitionBillingModeService acquisitionBillingModeService;
//
//    @Resource
//    private BillingModeVerifyReplyService billingModeVerifyReplyService;
//
//    @Resource
//    private BillingModeVerifyService billingModeVerifyService;
//
//    @Resource
//    private BmsAbortService bmsAbortService;
//
//    @Resource
//    private BmsDemandAndChargerExportationService bmsDemandAndChargerExportationService;
//
//    @Resource
//    private BmsInformationService bmsInformationService;
//
//    @Resource
//    private ChargingHandshakeService chargingHandshakeService;
//
//
//    /**
//     * 定时任务
//     */
//    @Scheduled(cron = "0 0 9 * * ?")
//    public void run(){
//        //获取当前运行的端口号
//        String port = System.getProperty("server.port");
//        if("5701".equals(port)){
//            acquisitionBillingModeReplyService.taskDelete();
//            acquisitionBillingModeService.taskDelete();
//            billingModeVerifyReplyService.taskDelete();
//            billingModeVerifyService.taskDelete();
//            bmsAbortService.taskDelete();
//            bmsDemandAndChargerExportationService.taskDelete();
//            bmsInformationService.taskDelete();
//            chargingHandshakeService.taskDelete();
//        }
//    }
//}