fix(系统设置): 配额选择默认设置未生效

--bug=1024623 --user=李玉号 【系统设置】配额选择“默认设置”,没有生效
https://www.tapd.cn/55049933/s/1352806
This commit is contained in:
shiziyuan9527 2023-03-20 14:26:01 +08:00 committed by lyh
parent 2609e67f02
commit 78a8e7bc27
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ public class QuotaManagementService {
BigDecimal vumTotal = quota.getVumTotal(); BigDecimal vumTotal = quota.getVumTotal();
BigDecimal max = BigDecimal.valueOf(99999999.00); BigDecimal max = BigDecimal.valueOf(99999999.00);
if (vumTotal.compareTo(max) > 0) { if (vumTotal != null && vumTotal.compareTo(max) > 0) {
MSException.throwException("总vum数量不能超过99999999"); MSException.throwException("总vum数量不能超过99999999");
} }
quotaMapper.insert(quota); quotaMapper.insert(quota);