puzhibing
4 天以前 a0e03b646f2c444b0f09687d24e9995112b99017
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
package com.ruoyi.other.task;
 
import com.ruoyi.other.service.TBalanceWarningScanService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
import javax.annotation.Resource;
 
/**
 * 公司余额预警扫描定时任务(每5分钟,可通过 balance-warning.scan-cron 配置覆盖)
 *
 * @author mxcd
 * @since 2026-10-10
 */
@Component
public class BalanceWarningScanTask {
 
    @Resource
    private TBalanceWarningScanService balanceWarningScanService;
 
    @Scheduled(cron = "${balance-warning.scan-cron:0 */5 * * * ?}")
    public void scan() {
        balanceWarningScanService.scan();
    }
 
}