Fix system log can not sort by start_time when search by url bug

This commit is contained in:
2024-01-02 18:23:39 +08:00
parent 41a9cecdf5
commit af134f04e0

View File

@@ -28,9 +28,9 @@
#{item} #{item}
</foreach> </foreach>
<if test="searchRequestUrl != null"> <if test="searchRequestUrl != null">
and t_sys_log.request_server_address || t_sys_log.request_uri || and ((t_sys_log.request_server_address || t_sys_log.request_uri ||
case when length(t_sys_log.request_params) != 0 then '?' || t_sys_log.request_params else '' end like (case when length(t_sys_log.request_params) != 0 then '?' || t_sys_log.request_params else '' end))
'%'||#{searchRequestUrl}||'%' like #{searchRequestUrl})
</if> </if>
<if test="searchStartTime != null and searchEndTime != null"> <if test="searchStartTime != null and searchEndTime != null">
and t_sys_log.start_time between #{searchStartTime} and #{searchEndTime} and t_sys_log.start_time between #{searchStartTime} and #{searchEndTime}