Merge pull request 'demand: 航线查询/导出按财务要求调整' (#44) from develop into master

Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/44
This commit is contained in:
heyu 2025-05-29 17:08:01 +08:00
commit b02453b134

View File

@ -171,12 +171,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="params.billCode != null and params.billCode != ''">
and EXISTS(
select 1 from emis_settle_bill x2,emis_settle_invoice_bill_rel x3,emis_settle_sub_bill x4
where x2.del_flag = '0' and x3.del_flag = '0' and x4.del_flag='0'
and a.apply_seq_no=x3.apply_seq_no
and x2.settle_bill_no=x3.settle_bill_no
and x4.settle_bill_no=x2.settle_bill_no
and FIND_IN_SET(x4.`bill_code`,#{params.billCode})
select 1 from
emis_settle_invoice_rel rel
where a.apply_seq_no=rel.apply_seq_no and
rel.del_flag = '0'
and FIND_IN_SET(rel.`bill_no`,#{params.billCode})
)
<!--
AND apply_seq_no IN (
@ -417,16 +416,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
<if test="params.billCode != null and params.billCode != ''">
AND EXISTS (
SELECT 1
FROM emis_settle_bill x2
INNER JOIN emis_settle_invoice_bill_rel x3 ON x2.settle_bill_no = x3.settle_bill_no
INNER JOIN emis_settle_sub_bill x4 ON x2.settle_bill_no = x4.settle_bill_no
WHERE x2.del_flag = '0'
AND x3.del_flag = '0'
AND x4.del_flag = '0'
AND a.apply_seq_no = x3.apply_seq_no
AND FIND_IN_SET(x4.bill_code, #{params.billCode})
and EXISTS(
select 1 from
emis_settle_invoice_rel rel
where a.apply_seq_no=rel.apply_seq_no and
rel.del_flag = '0'
and FIND_IN_SET(rel.`bill_no`,#{params.billCode})
)
</if>