Merge pull request '会员余额支付' (#68) from khy1 into master
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #68
This commit is contained in:
root 2024-10-23 21:35:12 +08:00
commit 314cc090ee
2 changed files with 4 additions and 1 deletions

View File

@ -89,6 +89,9 @@ public class AppMemberUserController {
MemberUserDO user = userService.getUser(getLoginUserId()); MemberUserDO user = userService.getUser(getLoginUserId());
MemberLevelDO level = levelService.getLevel(user.getLevelId()); MemberLevelDO level = levelService.getLevel(user.getLevelId());
PaidMemberUserDO paidMemberUserDO = paidMemberUserService.getPaidMemberUserByUid(getLoginUserId()); PaidMemberUserDO paidMemberUserDO = paidMemberUserService.getPaidMemberUserByUid(getLoginUserId());
if (paidMemberUserDO == null) {
return success(MemberUserConvert.INSTANCE.convert(user, level,null,null));
}
return success(MemberUserConvert.INSTANCE.convert(user, level,paidMemberUserDO.getPayMemberType(),paidMemberUserDO.getCardExpirationTime())); return success(MemberUserConvert.INSTANCE.convert(user, level,paidMemberUserDO.getPayMemberType(),paidMemberUserDO.getCardExpirationTime()));
} }

View File

@ -159,7 +159,7 @@ public class PaidMemberUserServiceImpl implements PaidMemberUserService {
new LambdaQueryWrapperX<PaidMemberUserDO>().eq(PaidMemberUserDO::getUid,uid) new LambdaQueryWrapperX<PaidMemberUserDO>().eq(PaidMemberUserDO::getUid,uid)
.orderByDesc(PaidMemberUserDO::getId)); .orderByDesc(PaidMemberUserDO::getId));
if(list.isEmpty()){ if(list.isEmpty()){
throw exception(MEMBER_USER_NOT_EXISTS); return null;
} }
PaidMemberUserDO paidMemberUserDO = list.get(0); PaidMemberUserDO paidMemberUserDO = list.get(0);
return paidMemberUserDO; return paidMemberUserDO;