From 79e82d188a24ad92395ac4b39c1a49266a647c3f Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期三, 04 十二月 2024 15:44:20 +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, 13 insertions(+), 6 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 c54c885..a2910c8 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 @@ -10,16 +10,10 @@ import com.ruoyi.common.security.utils.SecurityUtils; import com.ruoyi.other.api.domain.Shop; import com.ruoyi.other.api.domain.Technician; -import com.ruoyi.other.enums.ShopStatus; -import com.ruoyi.other.service.ShopService; -import com.ruoyi.other.service.TechnicianService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import org.springframework.web.bind.annotation.*; -import com.ruoyi.other.vo.NearbyShopVO; -import com.ruoyi.other.vo.ShopDetailVO; -import com.ruoyi.other.vo.VerifiableShopVo; import io.swagger.annotations.*; import org.springframework.web.bind.annotation.*; @@ -129,5 +123,18 @@ Shop shop = shopService.getById(id); return R.ok(shop); } + + + /** + * 根据店铺管理员电话获取门店数据 + * @param phone + * @return + */ + @ResponseBody + @PostMapping("/getShopByPhone") + public R<Shop> getShopByPhone(@RequestParam("phone") String phone){ + Shop one = shopService.getOne(new LambdaQueryWrapper<Shop>().eq(Shop::getPhone, phone).eq(Shop::getDelFlag, 0).eq(Shop::getStatus, 1)); + return R.ok(one); + } } -- Gitblit v1.7.1