From da9a4f7ad988c452f3a356989eaf7a6c06ae5032 Mon Sep 17 00:00:00 2001 From: kongdeqiang <kongdeqiang960204@163.com> Date: 星期四, 26 九月 2024 23:03:05 +0800 Subject: [PATCH] fix:合并代码 --- src/main/java/com/boying/controller/ViolationTypeController.java | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/boying/controller/ViolationTypeController.java b/src/main/java/com/boying/controller/ViolationTypeController.java index 3d05cce..dfb31b9 100644 --- a/src/main/java/com/boying/controller/ViolationTypeController.java +++ b/src/main/java/com/boying/controller/ViolationTypeController.java @@ -6,21 +6,18 @@ import com.boying.entity.ViolationType; import com.boying.service.ViolationTypeService; import io.swagger.models.auth.In; -import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("ffzf/violationtype") @RequiredArgsConstructor -@Tag(description = "ffzf/violationtype" , name = "杩濈珷绫诲瀷鎺ュ彛" ) public class ViolationTypeController { private final ViolationTypeService violationTypeService; @PostMapping("/findPage") - @Operation(summary = "鍒嗛〉鏌ヨ" , description = "鍒嗛〉鏌ヨ" ) + //@Operation(summary = "鍒嗛〉鏌ヨ" , description = "鍒嗛〉鏌ヨ" ) public Object findPage(Page page) { QueryWrapper<ViolationType> wrapper = new QueryWrapper<>(); wrapper.lambda() @@ -29,27 +26,27 @@ } @PostMapping("/save") - @Operation(summary = "鏂板杩濈珷绫诲瀷" , description = "鏂板杩濈珷绫诲瀷" ) + // @Operation(summary = "鏂板杩濈珷绫诲瀷" , description = "鏂板杩濈珷绫诲瀷" ) public Object save(ViolationType violationType) { violationTypeService.saveOrUpdate(violationType); return R.ok("淇濆瓨鎴愬姛"); } @GetMapping("/{id}") - @Operation(summary = "鏍规嵁id鏌ヨ" , description = "鏍规嵁id鏌ヨ" ) + // @Operation(summary = "鏍规嵁id鏌ヨ" , description = "鏍规嵁id鏌ヨ" ) public Object getObj(@PathVariable Integer id) { return R.ok(violationTypeService.getById(id)); } @PostMapping("/delete") - @Operation(summary = "鍒犻櫎杩濈珷绫诲瀷" , description = "鍒犻櫎杩濈珷绫诲瀷" ) + // @Operation(summary = "鍒犻櫎杩濈珷绫诲瀷" , description = "鍒犻櫎杩濈珷绫诲瀷" ) public Object delete(Long id) { violationTypeService.removeById(id); return R.ok("鍒犻櫎鎴愬姛"); } @PostMapping("/findAll") - @Operation(summary = "鏌ヨ鎵�鏈�" , description = "鏌ヨ鎵�鏈�" ) + //@Operation(summary = "鏌ヨ鎵�鏈�" , description = "鏌ヨ鎵�鏈�" ) public Object findAll() { return R.ok(violationTypeService.list()); } -- Gitblit v1.9.1