From f8014520171e6b2d308b6a8782f9732271aa0491 Mon Sep 17 00:00:00 2001
From: wxd <123@qq.com>
Date: Fri, 29 Mar 2024 17:49:02 +0800
Subject: [PATCH] Revert "333"
This reverts commit 10a804b01217f07df4da98cfccbe582b3843c93f.
---
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 e30e089..4bfda8b 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}");
}