From 196d8e63b26d291cb655db7f60157b0b5b073c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Thu, 15 Aug 2024 17:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=80=E5=B8=88=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/app/controller/VipDetailsController.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/com/sqx/modules/app/controller/VipDetailsController.java b/src/main/java/com/sqx/modules/app/controller/VipDetailsController.java index 37f3f5d..0d2cd09 100644 --- a/src/main/java/com/sqx/modules/app/controller/VipDetailsController.java +++ b/src/main/java/com/sqx/modules/app/controller/VipDetailsController.java @@ -57,4 +57,15 @@ public class VipDetailsController { return Result.success().put("data",new PageUtils(vipDetailsService.page(new Page<>(page,limit),queryWrapper))); } + @ApiParam("查询会员列表") + @GetMapping("/selectVipDetails") + public Result selectVipDetails(String type) { + QueryWrapper queryWrapper = new QueryWrapper(); + if(StringUtils.isNotBlank(type)){ + queryWrapper.eq("vip_type",type);//0会员 1技师 + } + queryWrapper.orderByAsc("id"); + return Result.success().put("data",vipDetailsService.list(queryWrapper)); + } + }