This commit is contained in:
eson 2023-09-01 16:06:48 +08:00
parent f3f47d0ead
commit b4df337687

View File

@ -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 {