refactor(tenant-balance): 将变动描述字段改为备注并自动生成描述

This commit is contained in:
2025-11-21 21:23:57 +08:00
parent 90039ad7ae
commit a65400b3e8
2 changed files with 4 additions and 4 deletions

View File

@@ -21,7 +21,6 @@ public class TenantBalanceAddReqVO {
@NotNull(message = "增加的余额不能为空")
private Integer amount;
@Schema(description = "变动描述", example = "充值")
@NotNull(message = "变动描述不能为空")
private String description;
@Schema(description = "备注", example = "备注")
private String remark;
}

View File

@@ -141,7 +141,8 @@ public class TenantBalanceServiceImpl implements TenantBalanceService {
tenantPointsDO.setBalance(newBalance);
tenantPointsDO.setOperatorId(loginUser.getId());
tenantPointsDO.setType(RECHARGE.getDesc()); // RECHARGE / BONUS / ...
tenantPointsDO.setDescription(addReqVO.getDescription());
tenantPointsDO.setDescription("总后台充值,金额:"+addReqVO.getAmount());
tenantPointsDO.setRemark(addReqVO.getRemark());
tenantPointsDO.setBizNo(recharge);
tenantPointsMapper.insert(tenantPointsDO);
}