定时器测试

pull/2/head
ZhiShuo_Lou 2023-10-28 20:33:12 +08:00
parent ede9a8e9c7
commit 6860cd013b
1 changed files with 2 additions and 1 deletions

View File

@ -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){