订单
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user