定时器测试
parent
ede9a8e9c7
commit
6860cd013b
|
@ -27,11 +27,12 @@ public class SysUserPurse {
|
|||
/**
|
||||
* 定时器每五分钟执行
|
||||
*/
|
||||
@Scheduled(cron = "0/5 * * * * ?")
|
||||
@Scheduled(cron = "0 0/5 * * * ?")
|
||||
public void userPurse(){
|
||||
System.out.println("~~~~~~定时器开始扫描钱包余额~~~~~~");
|
||||
//获取用户的编号
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
userId = (long)110;
|
||||
//根据用户编号查询用户钱包
|
||||
PurseResponse purseResponse = purseServiceTwo.purseObject(userId);
|
||||
if (null == purseResponse){
|
||||
|
|
Loading…
Reference in New Issue