From cf43a22c33939ff249f3479870994d69da635bd4 Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Fri, 29 Mar 2024 17:49:32 +0800 Subject: [PATCH] Revert "Revert "333"" This reverts commit f8014520171e6b2d308b6a8782f9732271aa0491. --- src/Shentun.Peis.Domain/DataHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Shentun.Peis.Domain/DataHelper.cs b/src/Shentun.Peis.Domain/DataHelper.cs index 4bfda8b..e30e089 100644 --- a/src/Shentun.Peis.Domain/DataHelper.cs +++ b/src/Shentun.Peis.Domain/DataHelper.cs @@ -449,7 +449,7 @@ namespace Shentun.Peis /// 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 /// public static void CheckDecimalIsGeaterThanZero(decimal value, string parameterName, string ExceptionMessage = "值只能大于0") { - if (value > 0) + if (value <= 0) { throw new UserFriendlyException($"{parameterName}{ExceptionMessage}"); }