From 0a92ccda431002d31f07a39821e48d670ffc3446 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期六, 04 一月 2025 18:02:49 +0800
Subject: [PATCH] 修改bug

---
 ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/PhoneController.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/PhoneController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/PhoneController.java
index c0fe645..7379c22 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/PhoneController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/PhoneController.java
@@ -47,10 +47,11 @@
      */
     @GetMapping("/selectPhoneByShopId")
     @ApiOperation(value = "查询指定门店手机号", tags = {"小程序-首页-门店详情"})
-    public R<List<Phone>> getPhoneByShopId(@ApiParam("门店id") @RequestParam Integer shopId) {
-        return R.ok(phoneService.list(new LambdaQueryWrapper<Phone>()
+    public R<Phone> getPhoneByShopId(@ApiParam("门店id") @RequestParam Integer shopId) {
+        Phone list = phoneService.getOne(new LambdaQueryWrapper<Phone>()
                 .eq(Phone::getType, PhoneType.SHOP.getCode())
-                .eq(Phone::getShopId, shopId)));
+                .eq(Phone::getShopId, shopId));
+        return R.ok(list);
     }
     
     

--
Gitblit v1.7.1