| | |
| | | @GetMapping("/query_one") |
| | | @ApiOperation(value = "查询one") |
| | | @LogSave(operationType = "文书管理", contain = "查看文书") |
| | | public CommonResult searchOne(@RequestParam Integer id) { |
| | | return CommonResult.success(iWritService.getById(id)); |
| | | public CommonResult searchOne(@RequestParam Long id) { |
| | | return CommonResult.success(iWritService.selectByCaseId(id)); |
| | | } |
| | | |
| | | @PutMapping("/modification") |
| | |
| | | @ApiOperation(value = "批量") |
| | | @LogSave(operationType = "文书管理", contain = "删除文书") |
| | | public CommonResult delete(@PathVariable Long id) { |
| | | Writ writ = iWritService.getById(id); |
| | | writ.setValue(""); |
| | | return CommonResult.success(iWritService.updateById(writ)); |
| | | iWritService.deleteValueByCaseId(id); |
| | | return CommonResult.success(true); |
| | | } |
| | | |
| | | @PutMapping("/deletion_batch") |