From 28d1b11176dbddfc6bb966f2b1d8776b946dd9be Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 09 十二月 2024 17:34:12 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java index e6fc1b1..f846e47 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java @@ -54,6 +54,7 @@ private TokenService tokenService; + @PostMapping("/getDetailById") public R<Shop> getDetailById(@RequestParam("id") Long id){ Shop byId = shopService.getById(id); @@ -71,17 +72,6 @@ return R.ok(shopService.nearbyShopList(longitude, latitude)); } - /** - * 门店详情 - */ - @GetMapping("/technicianList") - @ApiOperation(value = "技师列表", tags = {"技师列表-小程序"}) - public AjaxResult technicianList(@ApiParam("门店id") @RequestParam String shopId){ - return success(technicianService.list(new LambdaQueryWrapper<Technician>() - .eq(Technician::getShopId,shopId) - .eq(Technician::getStatus,2) - .eq(Technician::getSubscribeStatus,1))); - } @GetMapping("/shopDetail") @ApiOperation(value = "门店详情", tags = {"小程序-首页-门店详情"}) @@ -163,5 +153,12 @@ Shop one = shopService.getOne(new LambdaQueryWrapper<Shop>().eq(Shop::getPhone, phone).eq(Shop::getDelFlag, 0).eq(Shop::getStatus, 1)); return R.ok(one); } + + @PostMapping("/getShopByUserIds") + public R<List<Shop>> getShopByUserIds(@RequestBody List<Long> userIds){ + List<Shop> list = shopService.list(new LambdaQueryWrapper<Shop>().in(Shop::getAppUserId, userIds)); + return R.ok(list); + } + } -- Gitblit v1.7.1