From b4df3376873ee54d1d7e8e52f779711fdce4f8cb Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Fri, 1 Sep 2023 16:06:48 +0800 Subject: [PATCH] fix --- server/info/internal/logic/infologic.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/info/internal/logic/infologic.go b/server/info/internal/logic/infologic.go index 311eeebc..1b91f99b 100644 --- a/server/info/internal/logic/infologic.go +++ b/server/info/internal/logic/infologic.go @@ -96,7 +96,7 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r } moduleName := mlist[1] - cond = "module = " + moduleName + " and " + cond + cond = fmt.Sprintf("module = '%s' and %s", moduleName, cond) if mquery, ok := mquerys[mtable]; ok { mquery.ModuleQuery[strings.Join(mlist[2:], ",")] = struct{}{} @@ -115,7 +115,6 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r raw := l.svcCtx.MysqlConn.Raw(sqlstr) - logx.Error(cond) if raw.Error != nil { if raw.Error == gorm.ErrRecordNotFound {