给单据增加订金字段和接口逻辑
This commit is contained in:
@@ -680,8 +680,23 @@
|
||||
)
|
||||
</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)
|
||||
< (dh.discount_last_money + dh.other_money - ifnull(dh.deposit,0))
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
order by dh.id desc
|
||||
</select>
|
||||
|
||||
<select id="getFinishDepositByNumber" resultType="java.math.BigDecimal">
|
||||
select ifnull(sum(dh.deposit),0)
|
||||
from jsh_depot_head dh
|
||||
where dh.link_number=#{number}
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
</select>
|
||||
|
||||
<select id="getFinishDepositByNumberExceptCurrent" resultType="java.math.BigDecimal">
|
||||
select ifnull(sum(dh.deposit),0)
|
||||
from jsh_depot_head dh
|
||||
where dh.link_number=#{linkNumber}
|
||||
and dh.number!=#{number}
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user