wl
2022-11-22 b6267839ac7d7bad729fd7bf62ff7f45b88e301a
ycl-platform/src/main/java/com/ycl/controller/writ/WritController.java
@@ -34,10 +34,10 @@
    @GetMapping("/query")
    @ApiOperation(value = "查询list")
    @LogSave(operationType = "文书管理", contain = "查询文书")
    public CommonResult search(@RequestParam Integer size,
                               @RequestParam Integer current,
                               @RequestParam(required = false) Integer writType) {
        return CommonResult.success(iWritService.selectWritPage(new Page<>(current, size),writType));
    public CommonResult search(@RequestParam Integer pageSize,
                               @RequestParam Integer currentPage,
                               @RequestParam(required = false) String keyword) {
        return CommonResult.success(iWritService.selectWritPage(new Page<>(currentPage, pageSize), keyword));
    }
    @GetMapping("/query_one")
@@ -54,6 +54,15 @@
        return CommonResult.success(iWritService.updateById(writ));
    }
    @DeleteMapping("/delete/{id}")
    @ApiOperation(value = "批量")
    @LogSave(operationType = "文书管理", contain = "删除文书")
    public CommonResult delete(@PathVariable Long id) {
        Writ writ = iWritService.getById(id);
        writ.setValue("");
        return CommonResult.success(iWritService.updateById(writ));
    }
    @PutMapping("/deletion_batch")
    @ApiOperation(value = "批量删除")
    @LogSave(operationType = "文书管理", contain = "删除文书")