小程序获取店铺会员信息修改

This commit is contained in:
张松 2025-02-14 16:24:53 +08:00
parent 7e8a7f6d20
commit c1777813f5
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser>
@Override
public ShopUser getShopUserInfo(Long shopId, long userId) {
ShopUser shopUser = queryChain().eq(ShopUser::getShopId, StpKit.USER.getShopId()).eq(ShopUser::getId, StpKit.USER.getLoginIdAsLong()).one();
ShopUser shopUser = queryChain().eq(ShopUser::getShopId, shopId).eq(ShopUser::getUserId, userId).one();
if (shopUser == null) {
shopUser = new ShopUser();
UserInfo userInfo = userInfoService.getById(userId);