|
|
|
|
@ -35,16 +35,19 @@ |
|
|
|
|
WHERE |
|
|
|
|
create_by != '' |
|
|
|
|
<if test="logType == 1"> |
|
|
|
|
and method_name = 'token' |
|
|
|
|
and method_name = 'token2' |
|
|
|
|
</if> |
|
|
|
|
<if test="logType == 2"> |
|
|
|
|
and method_name != 'token' |
|
|
|
|
and method_name != 'token2' |
|
|
|
|
</if> |
|
|
|
|
<if test="startTime != null and endTime != null"> |
|
|
|
|
AND create_time BETWEEN #{startTime} AND #{endTime} |
|
|
|
|
<if test="startTime != null and startTime != ''"> |
|
|
|
|
AND create_time <![CDATA[>=]]> CONCAT(#{startTime},' 00:00:00') |
|
|
|
|
</if> |
|
|
|
|
<if test="userId != '' and userId != null"> |
|
|
|
|
and create_by = #{userId} |
|
|
|
|
<if test="endTime != null and endTime != ''"> |
|
|
|
|
AND create_time <![CDATA[<=]]> CONCAT(#{endTime},' 23:59:59') |
|
|
|
|
</if> |
|
|
|
|
<if test="userName != '' and userName != null"> |
|
|
|
|
and create_by = #{userName} |
|
|
|
|
</if> |
|
|
|
|
ORDER BY |
|
|
|
|
create_time DESC |
|
|
|
|
|