会员管理-积分余额:支持小数点后3位,修复用户列表积分不显示

- 后台:UserOperateIntegralMoneyRequest.integralValue 改为 BigDecimal,支持3位小数
- 后台:UserServiceImpl 积分操作逻辑改为 BigDecimal,支持小数
- 后台:UserResponse.integral 改为 BigDecimal,修复 BeanUtils 复制导致列表积分不显示
- 前端:积分输入框增加 precision=3、step=0.001,支持3位小数输入

Made-with: Cursor
This commit is contained in:
apple
2026-03-12 15:40:02 +08:00
parent 5432904bcb
commit 31c5426641
4 changed files with 30 additions and 25 deletions

View File

@@ -41,10 +41,11 @@ public class UserOperateIntegralMoneyRequest implements Serializable {
@Range(min = 1, max = 2, message = "请选择正确的类型, 【1 = 增加, 2 = 减少】")
private Integer integralType;
@ApiModelProperty(value = "积分")
@Min(value = 0)
@Max(value = 999999)
private Integer integralValue;
@ApiModelProperty(value = "积分支持小数点后3位")
@DecimalMin(value = "0", message = "积分不能小于0")
@DecimalMax(value = "999999.999", message = "积分不能大于999999.999")
@Digits(integer = 6, fraction = 3, message = "积分最多保留小数点后3位")
private BigDecimal integralValue;
@ApiModelProperty(value = "余额类型, 1 = 增加, 2 = 减少")
@NotNull

View File

@@ -89,8 +89,8 @@ public class UserResponse {
@ApiModelProperty(value = "佣金金额")
private BigDecimal brokeragePrice;
@ApiModelProperty(value = "用户剩余积分")
private Integer integral;
@ApiModelProperty(value = "用户剩余积分支持小数点后3位")
private BigDecimal integral;
@ApiModelProperty(value = "用户剩余经验")
private Integer experience;