fix: 安全日志查询类型

This commit is contained in:
TsMask
2023-09-27 19:59:18 +08:00
parent 1807cb9214
commit 209eb4377e
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ export async function listSecurityLog(query: Record<string, any>) {
querySQL += ` and account_name like '%${query.accountName}%' `;
}
if (query.opType) {
querySQL += ` and op_type = ${query.opType} `;
querySQL += ` and op_type = '${query.opType}' `;
}
if (query.beginTime) {
querySQL += ` and op_time >= '${query.beginTime}' `;