Showing
1 changed file
with
4 additions
and
4 deletions
@@ -42,10 +42,10 @@ | @@ -42,10 +42,10 @@ | ||
42 | and user_name like CONCAT('%',#{params.userName,jdbcType=VARCHAR},'%') | 42 | and user_name like CONCAT('%',#{params.userName,jdbcType=VARCHAR},'%') |
43 | </if> | 43 | </if> |
44 | <if test="params.beginTime !=null && params.beginTime !=''"> | 44 | <if test="params.beginTime !=null && params.beginTime !=''"> |
45 | - and create_time >= #{params.beginTime,jdbcType=TIMESTAMP} | 45 | + and create_time >= CONCAT(#{params.beginTime,jdbcType=TIMESTAMP},' 00:00:00') |
46 | </if> | 46 | </if> |
47 | <if test="params.endTime !=null && params.endTime !=''"> | 47 | <if test="params.endTime !=null && params.endTime !=''"> |
48 | - and create_time <= #{params.endTime,jdbcType=TIMESTAMP} | 48 | + and create_time <= CONCAT(#{params.endTime,jdbcType=TIMESTAMP},' 23:59:59') |
49 | </if> | 49 | </if> |
50 | order by create_time desc | 50 | order by create_time desc |
51 | </select> | 51 | </select> |
@@ -57,10 +57,10 @@ | @@ -57,10 +57,10 @@ | ||
57 | and user_name like CONCAT('%',#{params.userName,jdbcType=VARCHAR},'%') | 57 | and user_name like CONCAT('%',#{params.userName,jdbcType=VARCHAR},'%') |
58 | </if> | 58 | </if> |
59 | <if test="params.beginTime !=null && params.beginTime !=''"> | 59 | <if test="params.beginTime !=null && params.beginTime !=''"> |
60 | - and create_time >= #{params.beginTime,jdbcType=TIMESTAMP} | 60 | + and create_time >= CONCAT(#{params.beginTime,jdbcType=TIMESTAMP},' 00:00:00') |
61 | </if> | 61 | </if> |
62 | <if test="params.endTime !=null && params.endTime !=''"> | 62 | <if test="params.endTime !=null && params.endTime !=''"> |
63 | - and create_time <= #{params.endTime,jdbcType=TIMESTAMP} | 63 | + and create_time <= CONCAT(#{params.endTime,jdbcType=TIMESTAMP},' 23:59:59') |
64 | </if> | 64 | </if> |
65 | order by create_time desc | 65 | order by create_time desc |
66 | limit #{startIndex},#{pageSize} | 66 | limit #{startIndex},#{pageSize} |
-
Please register or login to post a comment