3 changed files with 46 additions and 0 deletions
@ -0,0 +1,32 @@ |
|||||
|
package com.elink.esua.epdc.task.user; |
||||
|
|
||||
|
import com.elink.esua.epdc.feign.UserFeignClient; |
||||
|
import com.elink.esua.epdc.task.ITask; |
||||
|
import org.slf4j.Logger; |
||||
|
import org.slf4j.LoggerFactory; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* 用户积分重置模块 |
||||
|
* |
||||
|
* @Author:liuchuang |
||||
|
* @Date:2020/9/9 15:20 |
||||
|
*/ |
||||
|
@Component("screenUserPointsResetTask") |
||||
|
public class ScreenUserPointsResetTask implements ITask { |
||||
|
|
||||
|
private final Logger logger = LoggerFactory.getLogger(getClass()); |
||||
|
|
||||
|
@Autowired |
||||
|
private UserFeignClient userFeignClient; |
||||
|
|
||||
|
@Override |
||||
|
public void run(String param) { |
||||
|
// 方法名
|
||||
|
String methodName = Thread.currentThread().getStackTrace()[2].getMethodName(); |
||||
|
logger.info("<" + methodName + "|用户积分季度重置>定时任务开始"); |
||||
|
userFeignClient.resetPoints(); |
||||
|
logger.info("<" + methodName + "|用户积分季度重置>定时任务结束"); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue