|
@@ -5,7 +5,7 @@ import org.fouram.core.base.controller.BaseController;
|
|
|
import org.fouram.core.util.AppUtil;
|
|
|
import org.fouram.core.util.AppUtil.ResultConstant;
|
|
|
import org.fouram.core.util.LoggerUtil;
|
|
|
-import org.fouram.service.CheckTaskService;
|
|
|
+import org.fouram.service.SapCheckService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -16,22 +16,22 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
public class ReportController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
- private CheckTaskService checkTaskService;
|
|
|
+ private SapCheckService sapCheckService;
|
|
|
|
|
|
/**
|
|
|
- * http://localhost:8080/sapcms/report/initReport?checkinDay=2020-05-11
|
|
|
+ * http://localhost:8080/sapcms/report/updateReportResultData?checkinDay=2020-06-15
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping(value = "/initReport", produces = "application/json;charset=utf-8")
|
|
|
+ @RequestMapping(value = "/updateReportResultData", produces = "application/json;charset=utf-8")
|
|
|
@ResponseBody
|
|
|
- public Object initReport() {
|
|
|
+ public Object updateReportResultData() {
|
|
|
try {
|
|
|
String checkinDay = getPageData().getString("checkinDay");
|
|
|
if(StringUtils.isBlank(checkinDay)) {
|
|
|
return AppUtil.error("参数checkinDay为空");
|
|
|
}
|
|
|
- checkTaskService.executeBiz(checkinDay);
|
|
|
+ sapCheckService.updateReportResultData(checkinDay, checkinDay);
|
|
|
return AppUtil.success();
|
|
|
} catch (Exception e) {
|
|
|
LoggerUtil.error(e);
|