TASK:mixi;
This commit is contained in:
@@ -57,10 +57,10 @@ public class MiTuExportScheduledTask {
|
||||
@PostConstruct
|
||||
public void executeWeeklyHeavyStockReport() {
|
||||
customerPurchaseReport();
|
||||
NewJoinVIPReport();
|
||||
weeklySellThrReport();
|
||||
WeeklyHeavyStockReport();
|
||||
QuarterlyProductGroupingReport();
|
||||
// NewJoinVIPReport();
|
||||
// weeklySellThrReport();
|
||||
// WeeklyHeavyStockReport();
|
||||
// QuarterlyProductGroupingReport();
|
||||
// customerTypeAnalysis();
|
||||
// getBestSell();
|
||||
}
|
||||
@@ -319,9 +319,9 @@ public class MiTuExportScheduledTask {
|
||||
@Retryable(value = Exception.class, maxAttempts = 3, backoff = @Backoff(delay = 1000))
|
||||
@Scheduled(cron = "0 0 23 28-31 * ?")
|
||||
public void customerPurchaseReport() {
|
||||
final Calendar c = Calendar.getInstance();
|
||||
//如果是最后一天 则执行定时任务
|
||||
if (c.get(Calendar.DATE) == c.getActualMaximum(Calendar.DATE)) {
|
||||
// final Calendar c = Calendar.getInstance();
|
||||
// 如果是最后一天 则执行定时任务
|
||||
// if (c.get(Calendar.DATE) == c.getActualMaximum(Calendar.DATE)) {
|
||||
MiTuExport miTuExport = createMiTuExport("Customer purchase report", "month");
|
||||
try {
|
||||
List<TransactionData> transactionData = retrieveTransactionData();
|
||||
@@ -339,7 +339,7 @@ public class MiTuExportScheduledTask {
|
||||
miTuExportMapper.insert(miTuExport);
|
||||
System.out.println("接口执行完成!");
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
private MiTuExport createMiTuExport(String fileName, String period) {
|
||||
|
||||
Reference in New Issue
Block a user