店铺信息报错修复

This commit is contained in:
张松 2025-09-29 19:56:30 +08:00
parent 5ccb47a9fa
commit 7cce74dea8
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ public class PayServiceImpl implements PayService {
@Override
@Transactional(rollbackFor = Exception.class)
public CzgResult<Map<String, Object>> ltPayMember(String clientIP, VipMemberPayParamDTO payParam) {
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getSourceShopId, payParam.getShopId()).eq(ShopUser::getId, payParam.getShopUserId()));
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getSourceShopId, shopInfoService.getMainIdByShopId(payParam.getShopId())).eq(ShopUser::getId, payParam.getShopUserId()));
AssertUtil.isNull(shopUser, "充值失败 该店铺用户不存在");
UserInfo userInfo = userInfoService.getById(shopUser.getUserId());
MemberOrder memberOrder = memberOrderService.createMemberOrder(new MemberOrderDTO().setName(payParam.getName())