...
|
...
|
@@ -15,10 +15,10 @@ |
|
|
select count(1) from malicious_ips_record
|
|
|
where 1=1
|
|
|
<if test="params.beginTime !=null && params.beginTime !=''">
|
|
|
and create_time >= CONCAT(#{params.beginTime,jdbcType=TIMESTAMP},' 00:00:00')
|
|
|
and create_time >= #{params.beginTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="params.endTime !=null && params.endTime !=''">
|
|
|
and create_time <= CONCAT(#{params.endTime,jdbcType=TIMESTAMP},' 23:59:59')
|
|
|
and create_time <= #{params.endTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
</select>
|
|
|
|
...
|
...
|
@@ -28,10 +28,10 @@ |
|
|
from malicious_ips_record
|
|
|
where 1=1
|
|
|
<if test="params.beginTime !=null && params.beginTime !=''">
|
|
|
and create_time >= CONCAT(#{params.beginTime,jdbcType=TIMESTAMP},' 00:00:00')
|
|
|
and create_time >= #{params.beginTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
<if test="params.endTime !=null && params.endTime !=''">
|
|
|
and create_time <= CONCAT(#{params.endTime,jdbcType=TIMESTAMP},' 23:59:59')
|
|
|
and create_time <= #{params.endTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
order by id desc
|
|
|
limit #{startIndex},#{pageSize}
|
...
|
...
|
|