demand: 根据输入单号、主单号自动完成虚拟单、主单的绑定 新增员工提成方案时选择多个线路无法获取对应产品bug修复 TMS系统 - 提成管理 - 销售计提比例配置 - 增加开始时间、结束时间”、增加“启用已过期、启用未过期”状态

committer: heyu
This commit is contained in:
aike 2025-07-29 14:53:09 +08:00
parent 72bd2b0e11
commit d6902a1e78

View File

@ -3858,8 +3858,11 @@
<select id="selectHistoryVirtualWaybill" resultMap="EmisWaybillResult">
select a.id, a.bill_code,a.master_bill_code,a.problem_type, a.remark,a.fee_remark
from emis_waybill a
where a.del_flag = '0' and
a.problem_type in (173,170)
where a.del_flag = '0'
and exists (
select 1 from emis_waybill_problem_info c where a.bill_code = c.bill_code and c.problem_type in (173,170)
and c.del_flag = '0'
)
and (master_bill_code is null or master_bill_code='' or master_bill_code=' ')
order by a.create_time desc
limit #{offset}, #{pageSize}