ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/ShopController.java
@@ -129,5 +129,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); } }