新增会员填充加入会员时间

userInfo增加 储值和优惠卷数 字段
This commit is contained in:
2024-09-25 17:59:01 +08:00
parent e532174124
commit e17e2e5d60
6 changed files with 46 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ public class LoginService {
@Autowired
private TbShopUserMapper tbShopUserMapper;
@Autowired
private TbActivateInRecordMapper inRecordMapper;
@Autowired
private TbShopTableMapper tbShopTableMapper;
@@ -460,6 +463,9 @@ public class LoginService {
if (tbUserInfo == null) {
return Result.success(CodeEnum.ENCRYPT, new ArrayList());
}
tbUserInfo.setBalanceAll(tbShopUserMapper.countAmount(userId));
tbUserInfo.setCouponAll(inRecordMapper.countCouponNum(userId));
return Result.success(CodeEnum.ENCRYPT, tbUserInfo);
}