operation_log_id AS "operationLogId", log_type AS "logType", log_name AS "logName", user_id AS "userId", class_name AS "className", method AS "method", create_time AS "createTime", succeed AS "succeed", message AS "message"
select
from sys_operation_log where 1 = 1
and (create_time between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
and log_name like CONCAT('%',#{logName},'%')
and log_type like CONCAT('%',#{logType},'%')
select
from sys_operation_log where 1 = 1
and create_time >= to_timestamp(#{beginTime}||' 00:00:00','yyyy-mm-dd hh24:mi:ss')
and create_time <= to_timestamp(#{endTime}||' 23:59:59','yyyy-mm-dd hh24:mi:ss')
and log_name like '%' || #{logName} || '%'
and log_type like '%' || #{logType} || '%'
select
from sys_operation_log where 1 = 1
and create_time >= to_date(#{beginTime}||' 00:00:00','yyyy-mm-dd hh24:mi:ss')
and create_time <= to_date(#{endTime}||' 23:59:59','yyyy-mm-dd hh24:mi:ss')
and log_name like '%' || #{logName} || '%'
and log_type like '%' || #{logType} || '%'