From ea25d0bb100a95d043b420e5c32f86300bf19df4 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期六, 21 十月 2023 17:43:50 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS

---
 controllers/product_controller.go |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/controllers/product_controller.go b/controllers/product_controller.go
index 7bd1f90..9dee846 100644
--- a/controllers/product_controller.go
+++ b/controllers/product_controller.go
@@ -38,10 +38,6 @@
 		util.ResponseFormat(c, code.RequestParamError, "浜у搧鍚嶇О涓嶈兘涓虹┖")
 		return
 	}
-	if params.SalePrice.IntPart() <= 0 {
-		util.ResponseFormat(c, code.RequestParamError, "浜у搧鍞环涓嶈兘灏忎簬绛変簬闆�")
-		return
-	}
 	if params.Model == "" {
 		util.ResponseFormat(c, code.RequestParamError, "鐗╂枡绫诲瀷涓嶈兘涓虹┖")
 		return
@@ -137,10 +133,6 @@
 	}
 	if params.Name == "" {
 		util.ResponseFormat(c, code.RequestParamError, "浜у搧鍚嶇О涓嶈兘涓虹┖")
-		return
-	}
-	if params.SalePrice.IntPart() <= 0 {
-		util.ResponseFormat(c, code.RequestParamError, "浜у搧鍞环涓嶈兘灏忎簬绛変簬闆�")
 		return
 	}
 	if params.Model == "" {

--
Gitblit v1.8.0