Commit 45ff2e5b authored by 季圣华's avatar 季圣华
Browse files

给欠款详情优化排序,改为按单据时间倒序

parent e59a700c
...@@ -897,7 +897,7 @@ ...@@ -897,7 +897,7 @@
and (abs(dh.change_amount)+(select ifnull(sum(abs(ai.each_amount)),0) from jsh_account_item ai where ai.bill_id=dh.id and ifnull(ai.delete_flag,'0') !='1')) and (abs(dh.change_amount)+(select ifnull(sum(abs(ai.each_amount)),0) from jsh_account_item ai where ai.bill_id=dh.id and ifnull(ai.delete_flag,'0') !='1'))
< (dh.discount_last_money + dh.other_money - ifnull(dh.deposit,0)) < (dh.discount_last_money + dh.other_money - ifnull(dh.deposit,0))
and ifnull(dh.delete_flag,'0') !='1' and ifnull(dh.delete_flag,'0') !='1'
order by dh.id desc order by dh.oper_time desc
</select> </select>
<select id="getFinishDepositByNumber" resultType="java.math.BigDecimal"> <select id="getFinishDepositByNumber" resultType="java.math.BigDecimal">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment