|
@@ -32,6 +32,12 @@ public class TaskController {
|
|
private final BaseService baseService;
|
|
private final BaseService baseService;
|
|
private final ImportTaskService importTaskService;
|
|
private final ImportTaskService importTaskService;
|
|
|
|
|
|
|
|
+ @RequestMapping(value = "/addTask", method = RequestMethod.POST)
|
|
|
|
+ @Operation(summary = "新增审核任务")
|
|
|
|
+ public String addTask( String taskVO,List<MultipartFile> files) throws ParseException, IOException {
|
|
|
|
+ return taskService.addTask(taskVO,files);
|
|
|
|
+ }
|
|
|
|
+
|
|
@RequestMapping(value = "/deleteTask", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/deleteTask", method = RequestMethod.POST)
|
|
@Operation(summary = "删除任务")
|
|
@Operation(summary = "删除任务")
|
|
public String deleteTask(Integer id) {
|
|
public String deleteTask(Integer id) {
|
|
@@ -56,12 +62,6 @@ public class TaskController {
|
|
return taskService.getAllTask();
|
|
return taskService.getAllTask();
|
|
}
|
|
}
|
|
|
|
|
|
- @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);
|
|
|
|
- }
|
|
|
|
|
|
|
|
@RequestMapping(value = "/auditTask", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/auditTask", method = RequestMethod.POST)
|
|
@Operation(summary = "审核任务")
|
|
@Operation(summary = "审核任务")
|
|
@@ -86,6 +86,7 @@ public class TaskController {
|
|
public String reTaskStateCount(Integer reportId,Integer taskId) throws ParseException, IOException {
|
|
public String reTaskStateCount(Integer reportId,Integer taskId) throws ParseException, IOException {
|
|
return Response.success(taskService.reTaskStateCount(reportId,taskId));
|
|
return Response.success(taskService.reTaskStateCount(reportId,taskId));
|
|
}
|
|
}
|
|
|
|
+
|
|
@RequestMapping(value = "/import", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/import", method = RequestMethod.POST)
|
|
@Operation(summary = "导入")
|
|
@Operation(summary = "导入")
|
|
public String importPatent(MultipartFile file, Integer reportId) throws ParseException, IOException {
|
|
public String importPatent(MultipartFile file, Integer reportId) throws ParseException, IOException {
|
|
@@ -111,32 +112,34 @@ public class TaskController {
|
|
|
|
|
|
return importTaskService.reImportTask(importTask);
|
|
return importTaskService.reImportTask(importTask);
|
|
}
|
|
}
|
|
|
|
+
|
|
@RequestMapping(value = "/finish", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/finish", method = RequestMethod.GET)
|
|
@Operation(summary = "完成任务")
|
|
@Operation(summary = "完成任务")
|
|
- private String finish(Integer id) throws IOException {
|
|
|
|
|
|
+ public String finish(Integer id) throws IOException {
|
|
return taskService.finishTask(id);
|
|
return taskService.finishTask(id);
|
|
}
|
|
}
|
|
|
|
+
|
|
@RequestMapping(value = "/reviewTheTasks", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/reviewTheTasks", method = RequestMethod.POST)
|
|
@Operation(summary = "查看任务")
|
|
@Operation(summary = "查看任务")
|
|
- private String ReviewTheTasks(@RequestBody TaskTDO taskVO) throws IOException {
|
|
|
|
|
|
+ public String ReviewTheTasks(@RequestBody TaskTDO taskVO) throws IOException {
|
|
return taskService.ReviewTheTasks(taskVO) ;
|
|
return taskService.ReviewTheTasks(taskVO) ;
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/progress", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/progress", method = RequestMethod.GET)
|
|
@Operation(summary = "任务进度")
|
|
@Operation(summary = "任务进度")
|
|
- private String progress(int id){
|
|
|
|
|
|
+ public String progress(int id){
|
|
return Response.success (taskService.reCount(id));
|
|
return Response.success (taskService.reCount(id));
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/read", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/read", method = RequestMethod.GET)
|
|
@Operation(summary = "未读变成已读")
|
|
@Operation(summary = "未读变成已读")
|
|
- private String read(int taskID,String patentNo ,Integer reportId){
|
|
|
|
|
|
+ public String read(int taskID,String patentNo ,Integer reportId){
|
|
return taskService.read(taskID,patentNo, reportId);
|
|
return taskService.read(taskID,patentNo, reportId);
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/look", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/look", method = RequestMethod.GET)
|
|
@Operation(summary = "查看某个专利的状态")
|
|
@Operation(summary = "查看某个专利的状态")
|
|
- private String look(int taskID,String patentNo,Integer reportId){
|
|
|
|
|
|
+ public String look(int taskID,String patentNo,Integer reportId){
|
|
return taskService.look(taskID,patentNo,reportId);
|
|
return taskService.look(taskID,patentNo,reportId);
|
|
}
|
|
}
|
|
|
|
|