Showing
1 changed file
with
6 additions
and
0 deletions
@@ -24,6 +24,9 @@ | @@ -24,6 +24,9 @@ | ||
24 | <if test="params.endTime !=null && params.endTime !=''"> | 24 | <if test="params.endTime !=null && params.endTime !=''"> |
25 | and create_time <= #{params.endTime,jdbcType=TIMESTAMP} | 25 | and create_time <= #{params.endTime,jdbcType=TIMESTAMP} |
26 | </if> | 26 | </if> |
27 | + <if test="params.ip !=null && 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 && params.endTime !=''"> | 40 | <if test="params.endTime !=null && params.endTime !=''"> |
38 | and create_time <= #{params.endTime,jdbcType=TIMESTAMP} | 41 | and create_time <= #{params.endTime,jdbcType=TIMESTAMP} |
39 | </if> | 42 | </if> |
43 | + <if test="params.ip !=null && 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> |
-
Please register or login to post a comment