demand: tms-成本管理-运单利润统计-统计运单利润剔除问题件类型为面单删除的运单

This commit is contained in:
aike 2026-03-05 14:23:32 +08:00
parent ebba0584c6
commit a512286963

View File

@ -56,6 +56,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from emis_tms_cost_profit b,emis_waybill a
<where>
a.bill_code=b.bill_code and a.del_flag='0' and b.del_flag='0'
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(151)
)
<if test="id != null "> and b.id = #{id}</if>
<if test="billCode != null and billCode != ''">and ( FIND_IN_SET(b.`bill_code`,#{billCode}) )</if>
<if test="standardFee != null "> and b.standard_fee = #{standardFee}</if>