demand: TMS系统 - 客户账单管理 - 月结账单核销 - 运单收款明细查询重复数据问题修复
committer: heyu
This commit is contained in:
parent
8e9b75a875
commit
fae230d502
@ -32,10 +32,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
a.update_time,
|
a.update_time,
|
||||||
a.create_site,
|
a.create_site,
|
||||||
a.update_site,
|
a.update_site,
|
||||||
(select r.apply_seq_no
|
(
|
||||||
from emis_settle_pay_invoice_rel r
|
select r.apply_seq_no
|
||||||
where r.pay_id = a.pay_id and r.del_flag = '0'
|
from emis_settle_invoice_rel r
|
||||||
limit 1) as apply_seq_no
|
where r.bill_no = a.bill_no
|
||||||
|
and r.del_flag = '0'
|
||||||
|
and exists (
|
||||||
|
select 1 from emis_settle_pay_invoice_rel p
|
||||||
|
where p.apply_seq_no = r.apply_seq_no
|
||||||
|
and p.pay_id = a.pay_id
|
||||||
|
and p.del_flag = '0'
|
||||||
|
)
|
||||||
|
limit 1
|
||||||
|
) as apply_seq_no
|
||||||
from emis_settle_pay_rel a
|
from emis_settle_pay_rel a
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user