Authored by qinchao

恶意ip增加查询条件

@@ -24,6 +24,9 @@ @@ -24,6 +24,9 @@
24 <if test="params.endTime !=null &amp;&amp; params.endTime !=''"> 24 <if test="params.endTime !=null &amp;&amp; params.endTime !=''">
25 and create_time &lt;= #{params.endTime,jdbcType=TIMESTAMP} 25 and create_time &lt;= #{params.endTime,jdbcType=TIMESTAMP}
26 </if> 26 </if>
  27 + <if test="params.ip !=null &amp;&amp; params.ip !=''">
  28 + and ip like concat(#{params.ip},'%')
  29 + </if>
27 </select> 30 </select>
28 31
29 <select id="selectByPage" resultMap="BaseResultMap"> 32 <select id="selectByPage" resultMap="BaseResultMap">
@@ -37,6 +40,9 @@ @@ -37,6 +40,9 @@
37 <if test="params.endTime !=null &amp;&amp; params.endTime !=''"> 40 <if test="params.endTime !=null &amp;&amp; params.endTime !=''">
38 and create_time &lt;= #{params.endTime,jdbcType=TIMESTAMP} 41 and create_time &lt;= #{params.endTime,jdbcType=TIMESTAMP}
39 </if> 42 </if>
  43 + <if test="params.ip !=null &amp;&amp; params.ip !=''">
  44 + and ip like concat(#{params.ip},'%')
  45 + </if>
40 order by id desc 46 order by id desc
41 limit #{startIndex},#{pageSize} 47 limit #{startIndex},#{pageSize}
42 </select> 48 </select>