优化收款单

This commit is contained in:
季圣华
2021-06-30 00:53:56 +08:00
parent dc2ba7237c
commit 4e66aeb98b
23 changed files with 693 additions and 37 deletions

View File

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