| | |
| | | import org.jeecg.modules.flow.request.AssignFileRequest; |
| | | import org.jeecg.modules.flow.request.AssignFileStreamQueryRequest; |
| | | import org.jeecg.modules.dnc.response.*; |
| | | import org.jeecg.modules.flow.vo.AssignFlowTaskVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | @AutoLog(value = "DNC指派设备流程操作-启动流程 保存相应的数据 绑定businessKey") |
| | | @ApiOperation(value = "DNC指派设备流程操作-启动流程 保存相应的数据 绑定businessKey", notes = "DNC指派设备流程操作-启动流程 保存相应的数据 绑定businessKey") |
| | | @PostMapping("/assign/file/apply") |
| | | public ResponseResult applyAssignFile(@RequestBody AssignFileStream stream) { |
| | | ResponseResult b = assignFileStreamService.applyAssignFile(stream); |
| | | if(b.isSuccess()) { |
| | | return new ResponseResult(CommonCode.SUCCESS); |
| | | } |
| | | return b; |
| | | public Result<?> applyAssignFile(@RequestBody AssignFileStream stream) { |
| | | return assignFileStreamService.applyAssignFile(stream); |
| | | } |
| | | |
| | | @AutoLog(value = "DNC指派设备流程操作-审批服务") |
| | | @ApiOperation(value = "DNC指派设备流程操作-审批服务", notes = "DNC指派设备流程操作-审批服务") |
| | | @PostMapping("/assign/file/approve/{taskId}/{streamId}") |
| | | public ResponseResult approveAssignFile(@PathVariable("taskId") String taskId, @PathVariable("streamId") String streamId, |
| | | @RequestBody AssignFileStream stream) { |
| | | boolean b = assignFileStreamService.approveAssignFile(taskId, streamId, stream); |
| | | @PostMapping("/assign/file/approve") |
| | | public ResponseResult approveAssignFile(@RequestBody AssignFlowTaskVo assignFlowTaskVo) { |
| | | boolean b = assignFileStreamService.approveAssignFile(assignFlowTaskVo); |
| | | if(b) |
| | | return new ResponseResult(CommonCode.SUCCESS); |
| | | return new ResponseResult(CommonCode.FAIL); |
| | |
| | | return new ResponseResult(CommonCode.SUCCESS); |
| | | return new ResponseResult(CommonCode.FAIL); |
| | | } |
| | | |
| | | @GetMapping(value = "/selectVoById") |
| | | public Result<AssignFileStream> selectVoById(@RequestParam(name="id") String id){ |
| | | return Result.OK(assignFileStreamService.getAssignFileStreamDetail(id)); |
| | | } |
| | | } |