package com.project.quartz.task;
|
|
import com.project.common.utils.DateUtils;
|
import com.project.common.utils.WeChatUtils;
|
import lombok.RequiredArgsConstructor;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
|
|
/**
|
* 定时任务调度测试
|
*
|
* @author project
|
*/
|
@Component("projectTask")
|
@Slf4j
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
public class ProjectTask
|
{
|
|
|
public void refreshWxAccessToken()
|
{
|
WeChatUtils.refreshAccessToken();
|
log.info(DateUtils.getTime() + "刷新access_token");
|
}
|
|
|
// //每天处理灵玉返还
|
// public void executeIntegralToMoney()
|
// {
|
// log.info(DateUtils.getTime()+"_处理灵玉返还到余额");
|
// walletService.executeIntegralToMoney();
|
// }
|
//
|
//
|
// //每天处理投资返还
|
// public void executeInvestorToMoney()
|
// {
|
// log.info(DateUtils.getTime()+"_处理投资返还到余额");
|
// walletService.executeInvestorToMoney();
|
// }
|
//
|
// //每天处理7天自动收货
|
// public void executeAutoReciver()
|
// {
|
// log.info(DateUtils.getTime()+"_处理自动收货");
|
// orderDataService.autoReciverSend();
|
// }
|
|
|
}
|