|
|
@ -37,7 +37,7 @@ public class TaskController { |
|
|
@Resource |
|
|
@Resource |
|
|
private TaskService taskService; |
|
|
private TaskService taskService; |
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询实验室") |
|
|
@ApiOperation(value = "查询任务") |
|
|
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse<PageInfo<TaskVo.TaskResult>> queryList(@ApiParam @Validated @RequestBody BaseDto<TaskDto.QueryTask> query) { |
|
|
public JsonResponse<PageInfo<TaskVo.TaskResult>> queryList(@ApiParam @Validated @RequestBody BaseDto<TaskDto.QueryTask> query) { |
|
|
if (query.getPageNum() > 0) { |
|
|
if (query.getPageNum() > 0) { |
|
|
@ -46,21 +46,21 @@ public class TaskController { |
|
|
return JsonResponse.ok(new PageInfo<>(taskService.queryList(query.getParam()))); |
|
|
return JsonResponse.ok(new PageInfo<>(taskService.queryList(query.getParam()))); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询实验室") |
|
|
@ApiOperation(value = "新增任务") |
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse<Integer> add(@ApiParam @Validated @RequestBody TaskDto.AddTask dto) { |
|
|
public JsonResponse<Integer> add(@ApiParam @Validated @RequestBody TaskDto.AddTask dto) { |
|
|
taskService.add(dto); |
|
|
taskService.add(dto); |
|
|
return JsonResponse.ok(); |
|
|
return JsonResponse.ok(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询实验室") |
|
|
@ApiOperation(value = "删除任务") |
|
|
@RequestMapping(value = "/del", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/del", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse<Integer> del(@ApiParam @Validated @RequestBody CommonDto.DelDto dto) { |
|
|
public JsonResponse<Integer> del(@ApiParam @Validated @RequestBody CommonDto.DelDto dto) { |
|
|
taskService.del(dto); |
|
|
taskService.del(dto); |
|
|
return JsonResponse.ok(); |
|
|
return JsonResponse.ok(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询实验室") |
|
|
@ApiOperation(value = "查询应交付物") |
|
|
@RequestMapping(value = "/queryExecutorList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/queryExecutorList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse<PageInfo<TaskVo.ExecutorResult>> queryExecutorList(@ApiParam @Validated @RequestBody BaseDto<TaskDto.QueryExecutor> query) { |
|
|
public JsonResponse<PageInfo<TaskVo.ExecutorResult>> queryExecutorList(@ApiParam @Validated @RequestBody BaseDto<TaskDto.QueryExecutor> query) { |
|
|
if (query.getPageNum() > 0) { |
|
|
if (query.getPageNum() > 0) { |
|
|
@ -69,21 +69,21 @@ public class TaskController { |
|
|
return JsonResponse.ok(new PageInfo<>(taskService.queryExecutorList(query.getParam()))); |
|
|
return JsonResponse.ok(new PageInfo<>(taskService.queryExecutorList(query.getParam()))); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询实验室") |
|
|
@ApiOperation(value = "新增应交付物") |
|
|
@RequestMapping(value = "/addExecutor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/addExecutor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse<Integer> addExecutor(@ApiParam @Validated @RequestBody TaskDto.AddExecutor dto) { |
|
|
public JsonResponse<Integer> addExecutor(@ApiParam @Validated @RequestBody TaskDto.AddExecutor dto) { |
|
|
taskService.addExecutor(dto); |
|
|
taskService.addExecutor(dto); |
|
|
return JsonResponse.ok(); |
|
|
return JsonResponse.ok(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询实验室") |
|
|
@ApiOperation(value = "删除应交付物") |
|
|
@RequestMapping(value = "/delExecutor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/delExecutor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse<Integer> delExecutor(@ApiParam @Validated @RequestBody CommonDto.DelDto dto) { |
|
|
public JsonResponse<Integer> delExecutor(@ApiParam @Validated @RequestBody CommonDto.DelDto dto) { |
|
|
taskService.delExecutor(dto); |
|
|
taskService.delExecutor(dto); |
|
|
return JsonResponse.ok(); |
|
|
return JsonResponse.ok(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询实验室") |
|
|
@ApiOperation(value = "查询交付物") |
|
|
@RequestMapping(value = "/queryDeliverableList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/queryDeliverableList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse<PageInfo<TaskVo.DeliverableResult>> queryDeliverableList(@ApiParam @Validated @RequestBody BaseDto<TaskDto.QueryDeliverable> query) { |
|
|
public JsonResponse<PageInfo<TaskVo.DeliverableResult>> queryDeliverableList(@ApiParam @Validated @RequestBody BaseDto<TaskDto.QueryDeliverable> query) { |
|
|
if (query.getPageNum() > 0) { |
|
|
if (query.getPageNum() > 0) { |
|
|
@ -92,14 +92,14 @@ public class TaskController { |
|
|
return JsonResponse.ok(new PageInfo<>(taskService.queryDeliverableList(query.getParam()))); |
|
|
return JsonResponse.ok(new PageInfo<>(taskService.queryDeliverableList(query.getParam()))); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询实验室") |
|
|
@ApiOperation(value = "新增交付物") |
|
|
@RequestMapping(value = "/addDeliverable", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/addDeliverable", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse<Integer> addDeliverable(@ApiParam @Validated @RequestBody TaskDto.AddDeliverable dto) { |
|
|
public JsonResponse<Integer> addDeliverable(@ApiParam @Validated @RequestBody TaskDto.AddDeliverable dto) { |
|
|
taskService.addDeliverable(dto); |
|
|
taskService.addDeliverable(dto); |
|
|
return JsonResponse.ok(); |
|
|
return JsonResponse.ok(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询实验室") |
|
|
@ApiOperation(value = "删除交付物") |
|
|
@RequestMapping(value = "/delDeliverable", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
@RequestMapping(value = "/delDeliverable", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
public JsonResponse<Integer> delDeliverable(@ApiParam @Validated @RequestBody CommonDto.DelDto dto) { |
|
|
public JsonResponse<Integer> delDeliverable(@ApiParam @Validated @RequestBody CommonDto.DelDto dto) { |
|
|
taskService.delDeliverable(dto); |
|
|
taskService.delDeliverable(dto); |
|
|
|