zj
2024-06-03 4afe73cb84c5a609662b8b4ee20693de9b86b9a3
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
package com.nq.utils.task;
 
 
import com.nq.service.IEchoServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller;
 
/**
 * 余额宝定时任务
 * */
@Controller
public class YEBTask {
 
 
 
    @Autowired
    IEchoServices echoServices;
 
 
    /**
     * 余额宝发放利息
     * */
    @Scheduled(cron = "0 0 0/1 * * ?")
    public  void  sendYEBMoney(){
        echoServices.sendMoney();
    }
 
}