| | |
| | | package com.project.quartz.task; |
| | | |
| | | import com.project.common.utils.DateUtils; |
| | | import com.project.common.utils.WeChatUtils; |
| | | import com.project.enforce.service.IEnforceOrderService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public class ProjectTask |
| | | { |
| | | |
| | | private final IEnforceOrderService orderService; |
| | | |
| | | public void refreshWxAccessToken() |
| | | //每天处理异常警告订单 |
| | | public void executeEnforceOrderWarn() |
| | | { |
| | | WeChatUtils.refreshAccessToken(); |
| | | log.info(DateUtils.getTime() + "刷新access_token"); |
| | | log.info(DateUtils.getTime()+"_异常警告处理开始...."); |
| | | Integer size = orderService.executeEnforceOrderWarn(); |
| | | log.info(DateUtils.getTime()+"_异常警告处理完成,处理条数:"+size); |
| | | } |
| | | |
| | | |
| | | // //每天处理灵玉返还 |
| | | // 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(); |
| | | // } |
| | | |
| | | |
| | | } |