From acf352921487e857810a943b008121e33404e9ae Mon Sep 17 00:00:00 2001
From: kongdeqiang <kongdeqiang960204@163.com>
Date: 星期二, 15 四月 2025 16:56:50 +0800
Subject: [PATCH] fix:白名单新增bug
---
src/main/java/com/boying/controller/ViolationTypeController.java | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/boying/controller/ViolationTypeController.java b/src/main/java/com/boying/controller/ViolationTypeController.java
index 53660a1..dfb31b9 100644
--- a/src/main/java/com/boying/controller/ViolationTypeController.java
+++ b/src/main/java/com/boying/controller/ViolationTypeController.java
@@ -10,13 +10,14 @@
import org.springframework.web.bind.annotation.*;
@RestController
-@RequestMapping("violationType")
+@RequestMapping("ffzf/violationtype")
@RequiredArgsConstructor
public class ViolationTypeController {
private final ViolationTypeService violationTypeService;
@PostMapping("/findPage")
+ //@Operation(summary = "鍒嗛〉鏌ヨ" , description = "鍒嗛〉鏌ヨ" )
public Object findPage(Page page) {
QueryWrapper<ViolationType> wrapper = new QueryWrapper<>();
wrapper.lambda()
@@ -25,23 +26,27 @@
}
@PostMapping("/save")
+ // @Operation(summary = "鏂板杩濈珷绫诲瀷" , description = "鏂板杩濈珷绫诲瀷" )
public Object save(ViolationType violationType) {
violationTypeService.saveOrUpdate(violationType);
return R.ok("淇濆瓨鎴愬姛");
}
@GetMapping("/{id}")
+ // @Operation(summary = "鏍规嵁id鏌ヨ" , description = "鏍规嵁id鏌ヨ" )
public Object getObj(@PathVariable Integer id) {
return R.ok(violationTypeService.getById(id));
}
@PostMapping("/delete")
+ // @Operation(summary = "鍒犻櫎杩濈珷绫诲瀷" , description = "鍒犻櫎杩濈珷绫诲瀷" )
public Object delete(Long id) {
violationTypeService.removeById(id);
return R.ok("鍒犻櫎鎴愬姛");
}
@PostMapping("/findAll")
+ //@Operation(summary = "鏌ヨ鎵�鏈�" , description = "鏌ヨ鎵�鏈�" )
public Object findAll() {
return R.ok(violationTypeService.list());
}
--
Gitblit v1.9.1