modify task method name

master
wangning 7 years ago
parent 9acc33a509
commit 9540f99d86

@ -27,7 +27,7 @@ public class BillOrderCheckTask {
private OrderMapper orderMapper;
@Scheduled(cron = "0 0/3 * * * ?")
public void checkGreenChannel() {
public void checkBillOrderCheck() {
List<String> orderIds = billOrderMapper.findOrderIdByStatus("0");
if(CollectionUtils.isEmpty(orderIds)){
return;

@ -21,7 +21,7 @@ public class CheckPartnerAuthStatusAndSendMessageTask {
// simpleClientService.checkAuthAndSendMessage();
// }
@Scheduled(cron = "0 0 9 * * ?")
public void checkGreenChannel(){
public void checkPartnerAuthStatusAndSendMessage(){
simpleClientService.checkGreenChannelClients();
}

@ -31,7 +31,7 @@ public class CustomerImpressionTask {
private ThreadPoolExecutor generatePool = new ThreadPoolExecutor(10, 30, 5, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
@Scheduled(cron = "0 30 3 * * ?")
public void generateTags() {
public void customerImpressionGenerateTags() {
List<JSONObject> clients = clientMapper.listValidClient();
List<List<JSONObject>> splitList = new ArrayList<>();
for (int i = 0; i < clients.size(); i+=200) {
@ -52,7 +52,7 @@ public class CustomerImpressionTask {
}
@Scheduled(cron = "0/1 * * * * ?")
public void generateInfo() {
public void customerImpressionGenerateInfo() {
customerImpressionService.generateInfo();
}
}

@ -23,7 +23,7 @@ public class DailyReportGenerationTask {
private DailyReport dailyReport;
@Scheduled(cron = "0 0 10 * * ?")
public void autoGenerateReport() {
public void dailyReportAutoGenerateReport() {
Date yesterday = DateUtils.addDays(new Date(), -1);
dailyReport.generateReport(DateFormatUtils.format(yesterday, "yyyy-MM-dd"), true);
}

@ -17,7 +17,7 @@ public class DirectedBillCodeStatusDailyCheck {
private PartnerBillService partnerBillService;
@Scheduled(cron = "0 30 5 * * ?")
public void statusDailyCheck(){
public void directedBillCodeStatusDailyCheck(){
partnerBillService.dailyCheckDirectedBillCode();
}
}

@ -23,7 +23,7 @@ public class OfeiOrderCheckTask {
@Resource
private TopUpOrderMapper topUpOrderMapper;
@Scheduled(cron = "0 0/20 * * * ?")
public void checkGreenChannel(){
public void ofeiOrderCheck(){
List<String> orderIds = topUpOrderMapper.findOrderIdByStatus("10");
if(CollectionUtils.isEmpty(orderIds)){
return;

@ -19,7 +19,7 @@ public class PartnerInitEmailChecker {
@Resource
private ClientManager clientManager;
@Scheduled(cron = "0 0/5 * * * *")
public void checkEmailStatus(){
public void checkPartnerInitEmail(){
if (PlatformEnvironment.getEnv().taskEnabled()) {
clientManager.checkEmailStatus();
}

@ -20,7 +20,7 @@ public class PartnerTransactionsDailyMsgTaskManager {
@Resource
private CustomersAnalysisService customersAnalysisService;
@Scheduled(cron = "0 0 8 * * ?")
public void analysisDashboard(){
public void partnerTransactionsDailyMsg(){
customersAnalysisService.sendPartnerTransactionDaily(DateUtils.addDays(new Date(), -1));
}
}

@ -46,7 +46,7 @@ public class PostponeClientTask {
private ManagerMapper managerMapper;
@Scheduled(cron = "0 30 8 * * ?")
public void checkGreenChannel() {
public void postponeClient() {
Date now = new Date();
Date tomorrow = DateUtils.addDays(now, 1);
Date yearTomorrow = DateUtils.addYears(tomorrow, 1);

@ -23,7 +23,7 @@ public class WeekReportGenerationTask {
private WeekReporter weekReporter;
@Scheduled(cron = "0 0 2 * * 1")
public void autoGenerateReport() {
public void weekReportGeneration() {
Date lastweek = new Date();
lastweek = DateUtils.addDays(lastweek, -7);
weekReporter.generateReport(DateFormatUtils.format(lastweek, "yyyy-MM-dd"), true);

Loading…
Cancel
Save