fix
This commit is contained in:
parent
f3f47d0ead
commit
b4df337687
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user