From 36aed39c24e2b6e56d2f8ecea0839e179ec0981e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=81=B0=E7=81=B0?= Date: Sat, 24 Sep 2022 21:54:01 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E6=A0=B9?= =?UTF-8?q?=E6=8D=AE=E7=94=A8=E6=88=B7=E5=8F=8D=E6=98=A0=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=A7=84=E6=A0=BC=EF=BC=8C=E5=BA=93=E5=AD=98=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E8=AE=BE=E7=BD=AE=E4=B8=BA0=EF=BC=8C=E5=B8=82?= =?UTF-8?q?=E5=9C=BA=E4=BB=B7=E6=A0=BC=E5=8F=AF=E8=AE=BE=E7=BD=AE=E4=B8=BA?= =?UTF-8?q?0=EF=BC=8C=E6=88=90=E6=9C=AC=E4=BB=B7=E6=A0=BC=E5=8F=AF?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BA0=EF=BC=8C=E7=94=B1=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=87=AA=E8=A1=8C=E6=8E=A7=E5=88=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Good/CoreCmsGoodsRepository.cs | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs b/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs index 01e5394b..b9bee871 100644 --- a/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs +++ b/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs @@ -78,7 +78,7 @@ namespace CoreCms.Net.Repository jm.msg = "请键入货品货号!货号为SN英文开头"; return jm; } - else if (item.stock <= 0) + else if (item.stock < 0) { jm.msg = "库存不能为0!"; return jm; @@ -88,14 +88,14 @@ namespace CoreCms.Net.Repository jm.msg = "货品销售价格不能为0!"; return jm; } - else if (item.mktprice <= 0 || item.mktprice < item.price) + else if (item.mktprice < 0) { - jm.msg = "货品市场价格不能为0并且不能小于销售价格!"; + jm.msg = "市场价格不能小于0!"; return jm; } - else if (item.costprice <= 0 || item.costprice > item.price) + else if (item.costprice < 0) { - jm.msg = "成本价格不能为0并且不能大于销售价格!"; + jm.msg = "成本价格不能小于0!"; return jm; } else if (item.levelOne < 0 || item.levelTwo < 0 || item.levelThree < 0) @@ -328,7 +328,7 @@ namespace CoreCms.Net.Repository jm.msg = "请键入货品货号!货号为SN英文开头"; return jm; } - else if (item.stock <= 0) + else if (item.stock < 0) { jm.msg = "库存不能为0!"; return jm; @@ -338,14 +338,14 @@ namespace CoreCms.Net.Repository jm.msg = "货品销售价格不能为0!"; return jm; } - else if (item.mktprice <= 0 || item.mktprice < item.price) + else if (item.mktprice < 0) { - jm.msg = "货品市场价格不能为0并且不能小于销售价格!"; + jm.msg = "市场价格不能小于0!"; return jm; } - else if (item.costprice <= 0 || item.costprice > item.price) + else if (item.costprice < 0) { - jm.msg = "成本价格不能为0并且不能大于销售价格!"; + jm.msg = "成本价格不能小于0!"; return jm; } else if (item.levelOne < 0 || item.levelTwo < 0 || item.levelThree < 0)