This commit is contained in:
admin
2024-05-08 21:21:29 +08:00
parent 2919029b81
commit 5838b2df35
138 changed files with 2861 additions and 1179 deletions

View File

@@ -5,6 +5,7 @@ import com.starry.admin.common.exception.CustomException;
/**
* 金额辅助类
* @author admin
*/
public class MoneyUtils {
@@ -24,7 +25,7 @@ public class MoneyUtils {
} catch (Exception e) {
throw new CustomException("金额类型异常");
}
if (item < 0f) {
if (item < 0) {
throw new CustomException("金额不能小于0");
}
if (item > Integer.MAX_VALUE) {