From c889621e732862353911ecc1049dc44f0c592db9 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 16 十一月 2023 15:59:39 +0800 Subject: [PATCH] 行政区查询,添加了deleted != 1条件 --- pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/role/RoleCtrl.java | 17 +++++++---------- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/role/RoleCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/role/RoleCtrl.java index 544e773..f2a02b1 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/role/RoleCtrl.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/role/RoleCtrl.java @@ -20,10 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.validation.BindingResult; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Objects; @@ -55,11 +52,11 @@ schema = @Schema(implementation = BaRole.class))} ) }) - @PostMapping(path = "all") + @GetMapping(path = "all") @SsoAop("-1") - public BaseResponse<QueryResultVo<List<BaRole>>> all(QueryVo vo){ + public BaseResponse<QueryResultVo<List<BaRole>>> all(){ try { - QueryResultVo<List<BaRole>> res = this.sv.selectAll(vo) ; + QueryResultVo<List<BaRole>> res = this.sv.selectAll() ; return BaseResponseUtils.buildSuccess(res); } catch (Exception e) { log.error("鏌ヨ瑙掕壊寮傚父", e); @@ -68,7 +65,7 @@ } /** - * 瀹㈡埛绔姹傚緱鍒版墍鏈夎鑹叉暟鎹� + * 瀹㈡埛绔姹傚緱鍒颁竴椤佃鑹叉暟鎹� * @return 鎵�鏈夎鑹叉暟鎹� */ @Operation(summary = "鑾峰緱涓�椤佃鑹�", description = "杩斿洖涓�椤佃鑹叉暟鎹�") @@ -80,9 +77,9 @@ schema = @Schema(implementation = BaRole.class))} ) }) - @PostMapping(path = "some") + @PostMapping(path = "some", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) @SsoAop("-1") - public BaseResponse<QueryResultVo<List<BaRole>>> some(QueryVo vo){ + public BaseResponse<QueryResultVo<List<BaRole>>> some(@Parameter(description = "鏌ヨform琛ㄥ崟鏁版嵁", required = true) @Valid QueryVo vo){ try { QueryResultVo<List<BaRole>> res = this.sv.selectSome(vo) ; return BaseResponseUtils.buildSuccess(res); -- Gitblit v1.8.0