| | |
| | | */ |
| | | @ApiOperation("获取消防自查记任务表详细信息") |
| | | @GetMapping(value = "/getInfo") |
| | | public R<TaskPlaceSelfCheckVO> getInfo(@RequestParam("id") Long id){ |
| | | TaskPlaceSelfCheckDTO taskPlaceSelfCheckDTO = taskPlaceSelfCheckService.selectTaskPlaceSelfCheckById(id); |
| | | public R<TaskPlaceSelfCheckVO> getInfo(TaskPlaceSelfCheckEntity taskPlaceSelfCheck){ |
| | | TaskPlaceSelfCheckDTO taskPlaceSelfCheckDTO = taskPlaceSelfCheckService.selectTaskPlaceSelfCheckById(taskPlaceSelfCheck); |
| | | TaskPlaceSelfCheckVO taskPlaceSelfCheckDetailVO = BeanUtil.copy(taskPlaceSelfCheckDTO, TaskPlaceSelfCheckVO.class); |
| | | return R.data(taskPlaceSelfCheckDetailVO); |
| | | } |
| | |
| | | return R.status(taskPlaceSelfCheckService.removeBatchByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 消防自查记任务表 修改 |
| | | */ |
| | | @PostMapping("/updateTaskPlaceSelfCheck") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "更新自查详情接口", notes = "传入taskPlaceSelfCheck") |
| | | public R updateTaskPlaceSelfCheck(@Valid @RequestBody TaskPlaceSelfCheckVO taskPlaceSelfCheck) throws Exception { |
| | | return R.status(taskPlaceSelfCheckService.updateTaskPlaceSelfCheck(taskPlaceSelfCheck)); |
| | | } |
| | | |
| | | |
| | | } |