|
|
@ -6,6 +6,7 @@ import com.ccsens.tall.bean.dto.InputDocDto; |
|
|
|
import com.ccsens.tall.bean.dto.LabelDto; |
|
|
|
import com.ccsens.tall.bean.vo.InputDocVo; |
|
|
|
import com.ccsens.tall.bean.vo.LabelVo; |
|
|
|
import com.ccsens.tall.bean.vo.TaskVo; |
|
|
|
import com.ccsens.tall.service.IInputDocService; |
|
|
|
import com.ccsens.tall.service.TaskDeliverService; |
|
|
|
import com.ccsens.util.JsonResponse; |
|
|
@ -85,41 +86,41 @@ public class InputDocController { |
|
|
|
@MustLoginTall |
|
|
|
@ApiOperation(value = "给任务添加输入文档", notes = "1007:添加输入文档") |
|
|
|
@RequestMapping(value = "/addDoc", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse addDoc(@ApiParam @Validated @RequestBody QueryDto<InputDocDto.AddDoc> params) { |
|
|
|
public JsonResponse<TaskVo.NormalTask> addDoc(@ApiParam @Validated @RequestBody QueryDto<InputDocDto.AddDoc> params) throws Exception { |
|
|
|
log.info("添加输入文档:{}",params); |
|
|
|
iInputDocService.addDoc(params.getParam()); |
|
|
|
TaskVo.NormalTask normalTask= iInputDocService.addDoc(params.getParam(),params.getUserId()); |
|
|
|
log.info("添加输入文档"); |
|
|
|
return JsonResponse.newInstance().ok(); |
|
|
|
return JsonResponse.newInstance().ok(normalTask); |
|
|
|
} |
|
|
|
|
|
|
|
@MustLoginTall |
|
|
|
@ApiOperation(value = "删除任务下的输入文档", notes = "1007:删除输入文档") |
|
|
|
@RequestMapping(value = "/deleteDoc", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse deleteDoc(@ApiParam @Validated @RequestBody QueryDto<InputDocDto.DeleteDoc> params) { |
|
|
|
public JsonResponse<TaskVo.NormalTask> deleteDoc(@ApiParam @Validated @RequestBody QueryDto<InputDocDto.DeleteDoc> params) throws Exception { |
|
|
|
log.info("删除输入文档:{}",params); |
|
|
|
iInputDocService.deleteDoc(params.getParam()); |
|
|
|
TaskVo.NormalTask normalTask = iInputDocService.deleteDoc(params.getParam(),params.getUserId()); |
|
|
|
log.info("删除输入文档"); |
|
|
|
return JsonResponse.newInstance().ok(); |
|
|
|
return JsonResponse.newInstance().ok(normalTask); |
|
|
|
} |
|
|
|
|
|
|
|
@MustLoginTall |
|
|
|
@ApiOperation(value = "给任务添加交付物", notes = "1007:添加交付物") |
|
|
|
@RequestMapping(value = "/addTaskDeliver", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse addTaskDeliver(@ApiParam @Validated @RequestBody QueryDto<InputDocDto.addTaskDeliver> params) { |
|
|
|
public JsonResponse<TaskVo.NormalTask> addTaskDeliver(@ApiParam @Validated @RequestBody QueryDto<InputDocDto.AddTaskDeliver> params) throws Exception { |
|
|
|
log.info("添加交付物:{}",params); |
|
|
|
taskDeliverService.addTaskDeliver(params.getParam()); |
|
|
|
TaskVo.NormalTask normalTask = taskDeliverService.addTaskDeliver(params.getParam(),params.getUserId()); |
|
|
|
log.info("添加交付物"); |
|
|
|
return JsonResponse.newInstance().ok(); |
|
|
|
return JsonResponse.newInstance().ok(normalTask); |
|
|
|
} |
|
|
|
|
|
|
|
@MustLoginTall |
|
|
|
@ApiOperation(value = "删除任务下的交付物", notes = "1007:删除交付物") |
|
|
|
@RequestMapping(value = "/deleteTaskDeliver", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse deleteTaskDeliver(@ApiParam @Validated @RequestBody QueryDto<InputDocDto.deleteTaskDeliver> params) { |
|
|
|
public JsonResponse<TaskVo.NormalTask> deleteTaskDeliver(@ApiParam @Validated @RequestBody QueryDto<InputDocDto.DeleteTaskDeliver> params) throws Exception { |
|
|
|
log.info("删除交付物:{}",params); |
|
|
|
taskDeliverService.deleteTaskDeliver(params.getParam()); |
|
|
|
TaskVo.NormalTask normalTask = taskDeliverService.deleteTaskDeliver(params.getParam(),params.getUserId()); |
|
|
|
log.info("删除交付物"); |
|
|
|
return JsonResponse.newInstance().ok(); |
|
|
|
return JsonResponse.newInstance().ok(normalTask); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|