demand: TMS系统 - 客户账单管理 - 月结账单核销 - 运单收款明细查询重复数据问题修复

committer: heyu
This commit is contained in:
aike 2025-10-10 13:58:12 +08:00
parent aa69391136
commit 8e9b75a875

View File

@ -32,10 +32,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.update_time,
a.create_site,
a.update_site,
r.apply_seq_no
(select r.apply_seq_no
from emis_settle_pay_invoice_rel r
where r.pay_id = a.pay_id and r.del_flag = '0'
limit 1) as apply_seq_no
from emis_settle_pay_rel a
left join emis_settle_pay_invoice_rel r
on r.pay_id = a.pay_id and r.del_flag = '0'
</sql>
<select id="selectEmisSettlePayRelList" parameterType="EmisSettlePayRel" resultMap="EmisSettlePayRelWithSubBillResult">