新增会员填充加入会员时间
userInfo增加 储值和优惠卷数 字段
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user