|
|
@@ -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());
|
|
|
}
|
|
|
|