|
@@ -4,6 +4,7 @@ import org.fouram.core.base.controller.BaseController;
|
|
import org.fouram.core.util.AppUtil;
|
|
import org.fouram.core.util.AppUtil;
|
|
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.service.SapCheckService;
|
|
import org.fouram.service.SapReportService;
|
|
import org.fouram.service.SapReportService;
|
|
import org.fouram.service.TaskService;
|
|
import org.fouram.service.TaskService;
|
|
import org.fouram.service.TestUserService;
|
|
import org.fouram.service.TestUserService;
|
|
@@ -22,6 +23,8 @@ public class TaskController extends BaseController {
|
|
private TestUserService testUserService;
|
|
private TestUserService testUserService;
|
|
@Autowired
|
|
@Autowired
|
|
private SapReportService sapReportService;
|
|
private SapReportService sapReportService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private SapCheckService sapCheckService;
|
|
|
|
|
|
@RequestMapping(value = "/syncWeixinUser", produces = "application/json;charset=utf-8")
|
|
@RequestMapping(value = "/syncWeixinUser", produces = "application/json;charset=utf-8")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@@ -66,4 +69,20 @@ public class TaskController extends BaseController {
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * http://localhost:8080/sapcms/task/saveAllUserCheckData
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @RequestMapping(value = "/saveAllUserCheckData", produces = "application/json;charset=utf-8")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ public Object saveAllUserCheckData() {
|
|
|
|
+ try {
|
|
|
|
+ sapCheckService.saveAllUserCheckData();
|
|
|
|
+ return AppUtil.success();
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ LoggerUtil.error(e);
|
|
|
|
+ return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|