|
|
|
@ -449,7 +449,7 @@ namespace Shentun.Peis |
|
|
|
/// <exception cref="ArgumentException"></exception>
|
|
|
|
public static void CheckIntIsGeaterThanZero(int value, string parameterName, string ExceptionMessage = "只能为大于0的值") |
|
|
|
{ |
|
|
|
if (value <= 0) |
|
|
|
if (value > 0) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException($"{parameterName}{ExceptionMessage}"); |
|
|
|
} |
|
|
|
@ -496,7 +496,7 @@ namespace Shentun.Peis |
|
|
|
/// <exception cref="ArgumentException"></exception>
|
|
|
|
public static void CheckDecimalIsGeaterThanZero(decimal value, string parameterName, string ExceptionMessage = "值只能大于0") |
|
|
|
{ |
|
|
|
if (value <= 0) |
|
|
|
if (value > 0) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException($"{parameterName}{ExceptionMessage}"); |
|
|
|
} |
|
|
|
|