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 {