Authored by qinchao

恶意ip增加查询条件

... ... @@ -24,6 +24,9 @@
<if test="params.endTime !=null &amp;&amp; params.endTime !=''">
and create_time &lt;= #{params.endTime,jdbcType=TIMESTAMP}
</if>
<if test="params.ip !=null &amp;&amp; params.ip !=''">
and ip like concat(#{params.ip},'%')
</if>
</select>
<select id="selectByPage" resultMap="BaseResultMap">
... ... @@ -37,6 +40,9 @@
<if test="params.endTime !=null &amp;&amp; params.endTime !=''">
and create_time &lt;= #{params.endTime,jdbcType=TIMESTAMP}
</if>
<if test="params.ip !=null &amp;&amp; params.ip !=''">
and ip like concat(#{params.ip},'%')
</if>
order by id desc
limit #{startIndex},#{pageSize}
</select>
... ...