Browse Source

Revert "333"

This reverts commit 10a804b012.
bjmzak
wxd 2 years ago
parent
commit
f801452017
  1. 4
      src/Shentun.Peis.Domain/DataHelper.cs

4
src/Shentun.Peis.Domain/DataHelper.cs

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

Loading…
Cancel
Save