upd:优化清算列表

master
dulingling 4 years ago
parent c00a6945da
commit 054632661f

@ -593,8 +593,8 @@
<if test="client_ids==null and client_id !=null"> <if test="client_ids==null and client_id !=null">
and (sc.client_id=#{client_id} or sc.parent_client_id =#{client_id}) and (sc.client_id=#{client_id} or sc.parent_client_id =#{client_id})
</if> </if>
<if test="from!=null">and t.transaction_time &gt;= #{from}</if> <if test="from!=null">and cd.report_date &gt;= DATE_FORMAT(#{from},'%Y-%m-%d')</if>
<if test="to!=null">and t.transaction_time &lt; #{to}</if> <if test="to!=null">and cd.report_date &lt; DATE_FORMAT(#{to},'%Y-%m-%d')</if>
<if test="merge_settle!=null">GROUP BY report_date</if> <if test="merge_settle!=null">GROUP BY report_date</if>
<if test="merge_settle==null">GROUP BY t.order_id</if> <if test="merge_settle==null">GROUP BY t.order_id</if>
order by t.clearing_time desc order by t.clearing_time desc

Loading…
Cancel
Save