|
@@ -3,6 +3,7 @@ package org.fouram.controller;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.fouram.core.base.controller.BaseController;
|
|
import org.fouram.core.base.controller.BaseController;
|
|
import org.fouram.core.util.AppUtil;
|
|
import org.fouram.core.util.AppUtil;
|
|
|
|
+import org.fouram.core.util.DateUtil;
|
|
import org.fouram.core.util.AppUtil.ResultConstant;
|
|
import org.fouram.core.util.AppUtil.ResultConstant;
|
|
import org.fouram.core.util.LoggerUtil;
|
|
import org.fouram.core.util.LoggerUtil;
|
|
import org.fouram.job.CheckTaskSchedule;
|
|
import org.fouram.job.CheckTaskSchedule;
|
|
@@ -45,6 +46,27 @@ public class ReportController extends BaseController {
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * http://localhost:8080/sapcms/report/reloadReportData
|
|
|
|
+ *
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping(value = "/reloadReportData", produces = "application/json;charset=utf-8")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ public Object reloadReportData() {
|
|
|
|
+ try {
|
|
|
|
+ for (String day : DateUtil.getSubDateList(DateUtil.getAfterDay(-30), DateUtil.getDay())) {
|
|
|
|
+ LoggerUtil.info(day + "执行开始:" + DateUtil.getTime());
|
|
|
|
+ checkTaskSchedule.reloadBiz(day);
|
|
|
|
+ LoggerUtil.info(day + "执行结束:" + DateUtil.getTime());
|
|
|
|
+ }
|
|
|
|
+ return AppUtil.success();
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ LoggerUtil.error(e);
|
|
|
|
+ return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* http://localhost:8080/sapcms/report/updateReportResultData?checkinDay=2020-06-15
|
|
* http://localhost:8080/sapcms/report/updateReportResultData?checkinDay=2020-06-15
|