增加接口:根据出入库单据id查询收付款单号

This commit is contained in:
季圣华
2022-06-04 17:26:20 +08:00
parent 6e94686a12
commit 9883501a2a
4 changed files with 38 additions and 0 deletions

View File

@@ -176,4 +176,11 @@
)
and ifnull(delete_flag,'0') !='1'
</select>
<select id="getFinancialBillNoByBillId" resultType="com.jsh.erp.datasource.entities.AccountHead">
select ah.bill_no from jsh_account_head ah
left join jsh_account_item ai on ah.id=ai.header_id and ifnull(ai.delete_flag,'0') !='1'
where bill_id=#{billId}
and ifnull(ah.delete_flag,'0') !='1'
</select>
</mapper>