操作日志查询修改

This commit is contained in:
苏尹岚
2020-02-03 13:34:13 +08:00
parent ee27ef9519
commit 1645dda5d4

View File

@@ -98,6 +98,7 @@ func GetOperateEvents(db *DaoDB, name string, apiFunctions []string, operateType
}
if len(apiList) > 0 {
sql += "a.api_function IN (" + GenQuestionMarks(len(apiList)) + ") OR"
sqlParams = append(sqlParams, apiList)
}
sql += " a.err_msg LIKE ? OR b.thing_id LIKE ? OR b.store_id LIKE ? OR c.name LIKE ?)"
sqlParams = append(sqlParams, "%"+keyword+"%", "%"+keyword+"%", "%"+keyword+"%", "%"+keyword+"%")