1
This commit is contained in:
@@ -41,11 +41,11 @@
|
||||
<if test="buyer != null and buyer != ''"> and buyer like concat('%', #{buyer}, '%')</if>
|
||||
<if test="orderTime != null"> and order_time = #{orderTime}</if>
|
||||
<if test="status != null and status != ''"> and status like concat('%', #{status}, '%')</if>
|
||||
<if test="params.beginTime != null and params.beginTime != ''">
|
||||
and date_format(order_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||
and order_time >= #{params.beginTime}
|
||||
</if>
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
and date_format(order_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||
and order_time <= #{params.endTime}
|
||||
</if>
|
||||
</where>
|
||||
order by order_time desc, id desc
|
||||
|
||||
Reference in New Issue
Block a user