操作日志查询修改

This commit is contained in:
苏尹岚
2020-02-03 11:57:04 +08:00
parent 4439135bbd
commit ee27ef9519

View File

@@ -100,7 +100,7 @@ func GetOperateEvents(db *DaoDB, name string, apiFunctions []string, operateType
sql += "a.api_function IN (" + GenQuestionMarks(len(apiList)) + ") OR"
}
sql += " a.err_msg LIKE ? OR b.thing_id LIKE ? OR b.store_id LIKE ? OR c.name LIKE ?)"
sqlParams = append(sqlParams, "%"+keyword+"%")
sqlParams = append(sqlParams, "%"+keyword+"%", "%"+keyword+"%", "%"+keyword+"%", "%"+keyword+"%")
}
sql += `
ORDER BY a.created_at DESC