소스 검색

改用店铺id查询

wanxl 1 년 전
부모
커밋
bb573594ca
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/main/java/com/sqx/modules/app/controller/UserController.java

+ 3 - 3
src/main/java/com/sqx/modules/app/controller/UserController.java

@@ -221,11 +221,11 @@ public class UserController {
         return Result.error("用户不存在!");
     }
 
-    @RequestMapping(value = "/selectShopPhoneByUserId", method = RequestMethod.POST)
+    @RequestMapping(value = "/selectShopPhoneByShopId", method = RequestMethod.POST)
     @ApiOperation("商家端查询店铺手机号")
     @ResponseBody
-    public Result selectShopPhoneByUserId(Long userId) {
-        GoodsShop goodsShop=goodsShopService.getOne(new QueryWrapper<GoodsShop>().eq("user_id",userId));
+    public Result selectShopPhoneByUserId(Long shopId) {
+        GoodsShop goodsShop=goodsShopService.getById(shopId);
         return Result.success().put("data", goodsShop.getPhone());
     }