From cfb6fbce3687230ccb4704dbc0c87fd411b39af1 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期三, 20 九月 2023 17:37:22 +0800 Subject: [PATCH] 仓库字段添加与功能修改 --- 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