feat(mall): 为 ApiGrowChargeDto 中的 amount 字段添加 NotNull 注解
- 在 ApiGrowChargeDto 类中,为 amount 字段添加了 NotNull 注解
- 这个修改将确保在进行支付操作时,必须提供有效的支付金额,提高数据的完整性验证
| | |
| | | @ApiModelProperty(value = "下一个等级", example = "123456") |
| | | private String levelNext; |
| | | |
| | | @NotNull(message = "请输入支付金额") |
| | | @ApiModelProperty(value = "支付金额", example = "123456") |
| | | private BigDecimal amount; |
| | | |
| | |
| | | if(runVipNext == null){ |
| | | throw new FebsException("无法升级会员权益"); |
| | | } |
| | | if(runVip.getOrderNumber() < runVipNext.getOrderNumber()){ |
| | | if(runVip.getOrderNumber() >= runVipNext.getOrderNumber()){ |
| | | throw new FebsException("用户无法升级"); |
| | | } |
| | | |