解决供应商对账单的明细查询接口的bug
This commit is contained in:
parent
44657a90bc
commit
0aa123c9fa
@ -1203,8 +1203,8 @@
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
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))
|
||||
and (ifnull(abs(dh.change_amount),0)+(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'))
|
||||
< (ifnull(dh.discount_last_money,0) + ifnull(dh.other_money,0) - ifnull(dh.deposit,0))
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
order by dh.oper_time desc
|
||||
<if test="offset != null and rows != null">
|
||||
@ -1257,8 +1257,8 @@
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
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))
|
||||
and (ifnull(abs(dh.change_amount),0)+(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'))
|
||||
< (ifnull(dh.discount_last_money,0) + ifnull(dh.other_money,0) - ifnull(dh.deposit,0))
|
||||
and ifnull(dh.delete_flag,'0') !='1' ) tb
|
||||
</select>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user