Authored by qinchao

支持日期查询到时分秒

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