taylor.dang 5 years ago
parent 350a860ea7
commit 919c652bb5

@ -488,15 +488,8 @@ public class TestController {
}
@GetMapping(value = "/task/analysisDashboard")
public void analysisDashboard(@RequestParam("date") String date) {
synchronizedScheduler.executeProcess("manage_task:dashboardTask", 120_000,
() -> {
try {
dashboardService.generateCustomersAndOrdersStatistics(DateUtils.parseDate(date, "yyyyMMdd"));
} catch (ParseException e) {
e.printStackTrace();
}
});
public void analysisDashboard(@RequestParam("date") String date) throws ParseException {
dashboardService.generateCustomersAndOrdersStatistics(DateUtils.parseDate(date, "yyyyMMdd"));
}

Loading…
Cancel
Save