fix customer_order statics

master
wangning 7 years ago
parent 748e021f55
commit 8f38a3f2c4

@ -42,6 +42,6 @@ public class SettleEstimateTaskManger {
@Scheduled(cron = "0 0 10 * * ?") @Scheduled(cron = "0 0 10 * * ?")
public void generateSettleLogs2() { public void generateSettleLogs2() {
synchronizedScheduler.executeProcess("manage_task:genSettleLog", 120_000, () -> platformClearService.generateSettleLogs()); synchronizedScheduler.executeProcess("manage_task:genSettleLog2", 120_000, () -> platformClearService.generateSettleLogs());
} }
} }

@ -0,0 +1,31 @@
package au.com.royalpay.payment.manage.task;
import au.com.royalpay.payment.manage.analysis.core.DashboardService;
import org.joda.time.DateTime;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
@SpringBootTest
@ActiveProfiles({ "proxy", "alipay", "wechat", "jd", "bestpay" })
@RunWith(SpringRunner.class)
public class DashboardTaskManagerTest {
@Resource
private DashboardService dashboardService;
@Test
public void analysisDashboard() {
DateTime dt17 = new DateTime(2018,5,17,11,11);
DateTime dt18 = new DateTime(2018,5,18,11,11);
DateTime dt19 = new DateTime(2018,5,19,11,11);
dashboardService.generateCustomersAndOrdersStatistics(dt17.toDate());
dashboardService.generateCustomersAndOrdersStatistics(dt18.toDate());
dashboardService.generateCustomersAndOrdersStatistics(dt19.toDate());
}
}
Loading…
Cancel
Save