| | |
| | | |
| | | @ApiOperation(value = "作业指导书 分页") |
| | | @GetMapping("/pageByPageQueryOfHomeworkInstructions") |
| | | public Result<IPage<DeviceInstruction>> pageByPageQueryOfHomeworkInstructions(Page page, DeviceOperationInstructionDto operationInstructionDto){ |
| | | public Result<IPage<DeviceOperationInstructionDto>> pageByPageQueryOfHomeworkInstructions(Page page, DeviceOperationInstructionDto operationInstructionDto){ |
| | | return Result.success(deviceInstructionService.pageByPageQueryOfHomeworkInstructions(page, operationInstructionDto)); |
| | | } |
| | | |
| | |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "作业指导书编辑") |
| | | @ApiOperation(value = "作业指导书详情") |
| | | @GetMapping("/homeworkGuidebookEditor") |
| | | public Result<Map<String, Object>> homeworkGuidebookEditor(Integer instructionId){ |
| | | DeviceInstruction instruction = deviceInstructionService.getById(instructionId); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "作业指导书受控文件删除") |
| | | @GetMapping("/deleteHomeworkGuidebook") |
| | | @DeleteMapping("/deleteHomeworkGuidebook") |
| | | public Result deleteHomeworkGuidebook(String ids){ |
| | | if (ObjectUtils.isNotEmpty(ids)) { |
| | | String[] idArray = ids.split(","); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "作业指导书删除") |
| | | @GetMapping("/homeworkGuidebook") |
| | | @DeleteMapping("/homeworkGuidebook") |
| | | public Result homeworkGuidebook(String id, String instructionId){ |
| | | // 删除子表数据 |
| | | deviceOperationInstructionService.removeById(id); |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "作业指导书审批") |
| | | @GetMapping("/approvalOfHomeworkInstructionManual") |
| | | public Result approvalOfHomeworkInstructionManual(String id, Boolean status){ |
| | | @PostMapping("/approvalOfHomeworkInstructionManual") |
| | | public Result approvalOfHomeworkInstructionManual(@RequestBody Map<String,Object> map){ |
| | | Integer id =(Integer) map.get("id"); |
| | | Boolean status =(Boolean) map.get("status"); |
| | | deviceOperationInstructionService.update(Wrappers.<OperationInstruction>lambdaUpdate() |
| | | .eq(OperationInstruction::getId, id) |
| | | .set(OperationInstruction::getStatus, status) |