@ -70,8 +70,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where dict_type = 'processType'
) as p
on s.instance_type = p.dict_value
left join sys_customer_quotechild as c
on s.supplierCode = c.quoteId
<where>
<iftest="businessMembers != null and businessMembers != ''"> and s.business_members = #{businessMembers}</if>
<iftest="supplierCode!= null and supplierCode != ''"> and s.supplierCode like concat('%', #{supplierCode}, '%')</if>
@ -94,14 +92,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and s.create_time between #{params.beginCreateTime} and #{params.endCreateTime}
</if>
<iftest="keyword != null and keyword != ''"> and ((s.customerCode like concat('%',#{keyword},'%') or s.customerName like concat('%',#{keyword},'%')))</if>
<iftest="materialCode != null and materialCode != ''">
and c.materialCode like concat('%',#{materialCode},'%')
</if>
<iftest="materialName != null and materialName != ''">
and c.materialName like concat('%',#{materialName},'%')
<iftest="materialCode != null and materialCode != '' || materialName!= null and materialName !=''">
and s.supplierCode in (
select quoteId from sys_customer_quotechild as child where
quoteId = s.supplierCode
<iftest="materialCode != null and materialCode != ''">
and child.materialCode like concat('%',#{materialCode},'%')
</if>
<iftest="materialName != null and materialName != ''">
and child.materialName like concat('%',#{materialName},'%')