|
@@ -40,7 +40,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and date_format(login_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d')
|
|
|
</if>
|
|
|
</where>
|
|
|
- order by login_time desc limit 60000;
|
|
|
+ <choose>
|
|
|
+ <when test="ipaddr != null and ipaddr != ''
|
|
|
+ and (status != null and status != '')
|
|
|
+ and (userName != null and userName != '')
|
|
|
+ and (startTime == null or startTime == '')
|
|
|
+ and (endTime == null or endTime == '')">
|
|
|
+ WHERE login_time >= (
|
|
|
+ SELECT login_time FROM sys_oper_log
|
|
|
+ ORDER BY login_time DESC
|
|
|
+ LIMIT 60000, 1
|
|
|
+ )
|
|
|
+ ORDER BY login_time DESC
|
|
|
+ </when>
|
|
|
+ <!-- 有查询条件时使用正常排序和分页 -->
|
|
|
+ <otherwise>
|
|
|
+ ORDER BY login_time DESC LIMIT 60000
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</select>
|
|
|
|
|
|
<delete id="deleteLogininforByIds" parameterType="Long">
|