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

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

Loading…
Cancel
Save