|
@@ -5,6 +5,7 @@ import cn.cslg.report.common.core.base.Constants;
|
|
|
import cn.cslg.report.common.model.dto.TaskTDO;
|
|
|
import cn.cslg.report.common.model.vo.*;
|
|
|
import cn.cslg.report.common.utils.Response;
|
|
|
+import cn.cslg.report.common.utils.auth.checkAuth;
|
|
|
import cn.cslg.report.entity.*;
|
|
|
import cn.cslg.report.service.BaseService;
|
|
|
import cn.cslg.report.service.business.*;
|
|
@@ -26,9 +27,7 @@ import java.util.*;
|
|
|
@RestController
|
|
|
@RequestMapping(Constants.REPORT_API + "/task")
|
|
|
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
|
|
|
-
|
|
|
public class TaskController {
|
|
|
-
|
|
|
private final TaskService taskService;
|
|
|
private final BaseService baseService;
|
|
|
private final ImportTaskService importTaskService;
|
|
@@ -59,6 +58,7 @@ public class TaskController {
|
|
|
|
|
|
@RequestMapping(value = "/addTask", method = RequestMethod.POST)
|
|
|
@Operation(summary = "新增审核任务")
|
|
|
+ @checkAuth(FunId = "/pcs/report/add")
|
|
|
public String addTask( String taskVO,List<MultipartFile> files) throws ParseException, IOException {
|
|
|
return taskService.addTask(taskVO,files);
|
|
|
}
|