From 3cf5e9483f60c94d29df1a79bc0c1ca910ca46ef Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期二, 13 十二月 2022 14:58:24 +0800
Subject: [PATCH] fix: 执法事件对外接口
---
ycl-platform/src/main/java/com/ycl/controller/writ/WritController.java | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/ycl-platform/src/main/java/com/ycl/controller/writ/WritController.java b/ycl-platform/src/main/java/com/ycl/controller/writ/WritController.java
index 837cbb8..092435d 100644
--- a/ycl-platform/src/main/java/com/ycl/controller/writ/WritController.java
+++ b/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 = "鍒犻櫎鏂囦功")
--
Gitblit v1.8.0