feat(work): 修改用户相关代码并优化字段名称

- 将 TzUser、TzUserBo 和 TzUserVo 中的 "抵扣金额" 字段名称修改为 "抵扣金"
- 在 TzUserService 中添加根据手机号查询用户信息的方法
- 更新相关类和方法的注释
This commit is contained in:
清晨
2025-08-02 15:01:11 +08:00
parent f0f608e7bb
commit 153d57bac2
4 changed files with 15 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ public class TzUser {
private BigDecimal balance; private BigDecimal balance;
/** /**
* 抵扣金 * 抵扣金
*/ */
private BigDecimal deductionFee; private BigDecimal deductionFee;

View File

@@ -82,7 +82,7 @@ public class TzUserBo {
private BigDecimal balance; private BigDecimal balance;
/** /**
* 抵扣金 * 抵扣金
*/ */
private BigDecimal deductionFee; private BigDecimal deductionFee;

View File

@@ -93,9 +93,9 @@ public class TzUserVo implements Serializable {
private BigDecimal balance; private BigDecimal balance;
/** /**
* 抵扣金 * 抵扣金
*/ */
@ExcelProperty(value = "抵扣金") @ExcelProperty(value = "抵扣金")
private BigDecimal deductionFee; private BigDecimal deductionFee;
/** /**

View File

@@ -84,6 +84,17 @@ public class TzUserServiceImpl extends MPJBaseServiceImpl<TzUserMapper, TzUser>
return baseMapper.selectVoList(lqw); return baseMapper.selectVoList(lqw);
} }
/**
* 根据手机号查询用户信息
*
* @param userPhone 手机号
* @return 用户信息
*/
@Override
public TzUserVo queryUserInfoByPhone(String userPhone) {
return baseMapper.selectVoOne(new LambdaQueryWrapper<TzUser>().eq(TzUser::getUserMobile, userPhone));
}
private LambdaQueryWrapper<TzUser> buildQueryWrapper(TzUserBo bo) { private LambdaQueryWrapper<TzUser> buildQueryWrapper(TzUserBo bo) {
Map<String, Object> params = bo.getParams(); Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<TzUser> lqw = Wrappers.lambdaQuery(); LambdaQueryWrapper<TzUser> lqw = Wrappers.lambdaQuery();