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

This commit is contained in:
季圣华
2022-10-22 12:23:27 +08:00
parent e59a700c42
commit 45ff2e5b23

View File

@@ -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">