|
|
@ -675,22 +675,25 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 1 and productsType == 1">
|
|
|
|
<if test="filterType != null and filterType == 1 and productsType == 1">
|
|
|
|
AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or
|
|
|
|
AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or
|
|
|
|
thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '')
|
|
|
|
thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '')
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
and basic_products.originUuid <![CDATA[<>]]> ''
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 1 and productsType == 2">
|
|
|
|
<if test="filterType != null and filterType == 1 and productsType == 2">
|
|
|
|
AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or
|
|
|
|
AND (thirdId is not null or thirdId1 is not null)
|
|
|
|
thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '')
|
|
|
|
</if>
|
|
|
|
and mainId <![CDATA[<>]]> ''
|
|
|
|
<if test="filterType != null and filterType == 1 and productsType == 2">
|
|
|
|
|
|
|
|
AND basic_products.nameCode is not null
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 2 and productsType == 1">
|
|
|
|
<if test="filterType != null and filterType == 2 and productsType == 1">
|
|
|
|
AND basic_products.originUuid is NULL
|
|
|
|
AND basic_products.originUuid is NULL
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 2 and productsType == 2">
|
|
|
|
<if test="filterType != null and filterType == 2 and productsType == 2">
|
|
|
|
AND ((thirdId = '' or thirdId is null) or (thirdId1 = '' or thirdId1 is null)
|
|
|
|
AND ((thirdId = '' or thirdId is null) or (thirdId1 = '' or thirdId1 is null)
|
|
|
|
or (thirdId2 = '' or thirdId2 is null) or (thirdId3 = '' or thirdId3 is null)
|
|
|
|
)
|
|
|
|
or (thirdId4 = '' or thirdId4 is null))
|
|
|
|
</if>
|
|
|
|
AND (mainId = '' or mainId is null)
|
|
|
|
<if test="filterType != null and filterType == 2 and productsType == 2">
|
|
|
|
|
|
|
|
AND ( (mainId = '' or mainId is null) or (basic_products.nameCode = '' or basic_products.nameCode is null)
|
|
|
|
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="filterType != null and filterType == 3">
|
|
|
|
<if test="filterType != null and filterType == 3">
|
|
|
|
AND (mainId is NULL or mainId = '')
|
|
|
|
AND (mainId is NULL or mainId = '')
|
|
|
|