From 6becb6b281b34e17197a25af86acd35628e88811 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 20 九月 2023 17:51:18 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS

---
 controllers/location.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/controllers/location.go b/controllers/location.go
index 128eb14..c4f3002 100644
--- a/controllers/location.go
+++ b/controllers/location.go
@@ -26,7 +26,7 @@
 	if params.Keyword != "" {
 		search.SetKeyword(params.Keyword)
 	}
-	if params.ParentId != 0 {
+	if params.ParentId != "" {
 		search.SetParentId(params.ParentId)
 	}
 	if params.CompanyId != 0 {
@@ -43,7 +43,7 @@
 	if params.Type == 0 {
 		return errors.New("璇烽�夋嫨姝g‘鐨勪綅缃被鍨�")
 	}
-	if params.ParentId < 0 {
+	if params.ParentId == "" {
 		return errors.New("閿欒鍙傛暟ParentId")
 	}
 	if params.CompanyId < 0 {

--
Gitblit v1.8.0