demand: tms-客户账单管理-业务出账确认-账单出账自动过滤掉有虚拟件标识且已绑定主单的运单

committer: heyu
This commit is contained in:
aike 2025-10-28 09:57:12 +08:00
parent 75a464ed76
commit 26b2a14a38

View File

@ -167,6 +167,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and not exists(
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` in(173,170,151)
)
<!-- 过滤掉emis_waybill中bl_virtual='1'且master_bill_code有值的虚拟单 -->
and not exists(
select 1 from emis_waybill ew where a.bill_code=ew.bill_code and ew.bl_virtual='1' and ew.master_bill_code is not null and ew.master_bill_code != ''
)
<if test="params.sendSiteCode != null and params.sendSiteCode != ''">
and a.send_site_code = #{params.sendSiteCode}
@ -323,6 +327,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and not exists(
select 1 from emis_waybill_problem_info ewpi where a.bill_code=ewpi.bill_code and ewpi.del_flag='0' and ewpi.`problem_type` in(173,170,151)
)
<!-- 过滤掉emis_waybill中bl_virtual='1'且master_bill_code有值的虚拟单 -->
and not exists(
select 1 from emis_waybill ew where a.bill_code=ew.bill_code and ew.bl_virtual='1' and ew.master_bill_code is not null and ew.master_bill_code != ''
)
<if test="params.sendSiteCode != null and params.sendSiteCode != ''">
and a.send_site_code = #{params.sendSiteCode}