Compare commits

..

No commits in common. "fcefa000bfd3f690db772fe142f8abf664ba7f73" and "9a1c267afc95cc2374825f3d6003b77414f1f361" have entirely different histories.

2 changed files with 1 additions and 28 deletions

View File

@ -1,27 +0,0 @@
package com.ruoyi.task;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.member.service.IMemberRightsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 定时任务调度
*
* @author ruoyi
*/
@Component("dlTask")
public class DlTask{
@Autowired
private IMemberRightsService memberRightsService;
public void resetDay(){
System.out.println("执行权益-每天定时任务");
memberRightsService.reset("day");
}
public void resetMonth(){
System.out.println("执行权益-每月定时任务");
memberRightsService.reset("month");
}
}

View File

@ -163,7 +163,7 @@ public class Constants
/**
* 定时任务白名单配置仅允许访问的包名如其他需要可以自行添加
*/
public static final String[] JOB_WHITELIST_STR = { "com.ruoyi.quartz.task","com.ruoyi.task" };
public static final String[] JOB_WHITELIST_STR = { "com.ruoyi.quartz.task" };
/**
* 定时任务违规的字符