diff --git a/emis-biz/src/main/resources/mapper/EmisTmsCostProfitMapper.xml b/emis-biz/src/main/resources/mapper/EmisTmsCostProfitMapper.xml index b8a255def..ab85bc8ba 100644 --- a/emis-biz/src/main/resources/mapper/EmisTmsCostProfitMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisTmsCostProfitMapper.xml @@ -56,6 +56,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" from emis_tms_cost_profit b,emis_waybill a 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) + ) and b.id = #{id} and ( FIND_IN_SET(b.`bill_code`,#{billCode}) ) and b.standard_fee = #{standardFee}