|
@@ -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.job.AutoCheckJob;
|
|
|
+import org.fouram.service.CheckTaskService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
public class ReportController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
- private AutoCheckJob autoCheckJob;
|
|
|
+ private CheckTaskService checkTaskService;
|
|
|
|
|
|
/**
|
|
|
* http://localhost:8080/sapcms/report/initReport?checkinDay=2020-05-11
|
|
@@ -31,7 +31,7 @@ public class ReportController extends BaseController {
|
|
|
if(StringUtils.isBlank(checkinDay)) {
|
|
|
return AppUtil.error("参数checkinDay为空");
|
|
|
}
|
|
|
- autoCheckJob.executeBiz(checkinDay);
|
|
|
+ checkTaskService.executeBiz(checkinDay);
|
|
|
return AppUtil.success();
|
|
|
} catch (Exception e) {
|
|
|
LoggerUtil.error(e);
|