select id, api_name, url, method, request, response, is_success , create_time from api_log
select id, api_name, url, method, is_success , create_time from api_log
and api_name like concat('%', #{apiName}, '%')
and url like concat('%', #{url}, '%')
and method like concat('%', #{method}, '%')
and request like concat('%', #{request}, '%')
and response like concat('%', #{response}, '%')
and is_success = #{isSuccess}
and create_time between #{createTime} and #{endCreateTime}
order by create_time desc
select request, response from api_log
where id = #{id}
select api_name ,count(api_name) count FROM
(select api_name from api_log where
create_time BETWEEN #{startDate} and #{endDate}) t
GROUP BY api_name
SELECT
id,api_name,url,method,is_success,create_time
FROM
api_log a
JOIN ( SELECT id bid FROM api_log
and api_name like concat('%', #{apiLog.apiName}, '%')
and url like concat('%', #{apiLog.url}, '%')
and method like concat('%', #{apiLog.method}, '%')
and request like concat('%', #{apiLog.request}, '%')
and response like concat('%', #{apiLog.response}, '%')
and is_success = #{apiLog.isSuccess}
and create_time between #{apiLog.createTime} and #{apiLog.endCreateTime}
ORDER BY id desc LIMIT #{pageNum}, #{pageSize} ) b ON a.id = b.bid
SELECT COUNT( * )
FROM api_log
and api_name like concat('%', #{apiName}, '%')
and url like concat('%', #{url}, '%')
and method like concat('%', #{method}, '%')
and request like concat('%', #{request}, '%')
and response like concat('%', #{response}, '%')
and is_success = #{isSuccess}
and create_time between #{createTime} and #{endCreateTime}
delete from api_log where id = #{id}
delete from api_log where id in
#{id}