This commit is contained in:
雷欧(林平凡)
2025-09-12 13:52:33 +08:00
parent 73a420738d
commit ca18865a2d

View File

@@ -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') &gt;= date_format(#{params.beginTime},'%y%m%d')
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
and order_time &gt;= #{params.beginTime}
</if>
<if test="params.endTime != null and params.endTime != ''">
and date_format(order_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and order_time &lt;= #{params.endTime}
</if>
</where>
order by order_time desc, id desc