|
|
@@ -47,22 +47,23 @@
|
|
|
<if test="userId != null ">and t.user_id = #{userId}</if>
|
|
|
<if test="createBy != null ">and t.create_by = #{createBy}</if>
|
|
|
<if test="searchValue != null and searchValue != ''">
|
|
|
- and
|
|
|
- (t.classify_name like concat('%', #{classifyName}, '%') )
|
|
|
+ and (
|
|
|
+ t.classify_name like concat('%', #{searchValue}, '%')
|
|
|
+ )
|
|
|
</if>
|
|
|
<if test="beginTime != null ">
|
|
|
- and t.create_time >= str_to_date(#{beginTime}, '%Y-%m-%d')
|
|
|
+ and date_format(t.create_time, '%Y-%m-%d') >= date_format(#{beginTime}, '%Y-%m-%d')
|
|
|
</if>
|
|
|
<if test="endTime != null ">
|
|
|
- and t.create_time <= str_to_date(#{endTime}, '%Y-%m-%d')
|
|
|
- </if>
|
|
|
- <if test="remark == 'time' ">
|
|
|
- order by t.create_time desc
|
|
|
- </if>
|
|
|
- <if test="remark == 'sort' ">
|
|
|
- order by t.sort
|
|
|
+ and date_format(t.create_time, '%Y-%m-%d') <= date_format(#{endTime}, '%Y-%m-%d')
|
|
|
</if>
|
|
|
</where>
|
|
|
+ <if test="remark == 'time' ">
|
|
|
+ order by t.create_time desc
|
|
|
+ </if>
|
|
|
+ <if test="remark == 'sort' ">
|
|
|
+ order by t.sort desc
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectXxpClassifyById" resultMap="XxpClassifyResult">
|