优化收款单
This commit is contained in:
@@ -102,6 +102,7 @@
|
||||
)
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
</select>
|
||||
|
||||
<update id="batchDeleteAccountItemByHeadIds">
|
||||
update jsh_account_item
|
||||
set delete_flag='1'
|
||||
@@ -112,4 +113,15 @@
|
||||
</foreach>
|
||||
)
|
||||
</update>
|
||||
|
||||
<select id="getEachAmountByBillId" resultType="java.math.BigDecimal">
|
||||
select
|
||||
ifnull(sum(each_amount),0)
|
||||
from jsh_account_item
|
||||
where 1=1
|
||||
<if test="billId != null">
|
||||
and bill_id=#{billId}
|
||||
</if>
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user