|  |  |  | @ -668,16 +668,24 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="diType != '' and diType != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND diType = #{diType} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="filterType != null and filterType == 1"> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="filterType != null and filterType == 1 and productsType == 1"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or | 
			
		
	
		
			
				
					|  |  |  |  |                 thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '') | 
			
		
	
		
			
				
					|  |  |  |  |                 <if test="productsType == 1"> | 
			
		
	
		
			
				
					|  |  |  |  |                     and basic_products.originUuid <![CDATA[<>]]> '' | 
			
		
	
		
			
				
					|  |  |  |  |                 </if> | 
			
		
	
		
			
				
					|  |  |  |  |                 and basic_products.originUuid <![CDATA[<>]]> '' | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="filterType != null and filterType == 2"> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="filterType != null and filterType == 1 and productsType == 2"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND (thirdId <![CDATA[<>]]> '' or thirdId1 <![CDATA[<>]]> '' or thirdId2 <![CDATA[<>]]> '' or | 
			
		
	
		
			
				
					|  |  |  |  |                 thirdId3 <![CDATA[<>]]> '' or thirdId4 <![CDATA[<>]]> '') | 
			
		
	
		
			
				
					|  |  |  |  |                 and mainId <![CDATA[<>]]> '' | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="filterType != null and filterType == 2  and productsType == 1"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND basic_products.originUuid is NULL | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="filterType != null and filterType == 2 and productsType == 2"> | 
			
		
	
		
			
				
					|  |  |  |  |                 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)) AND (mainId = '' or mainId is null) | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="filterType != null and filterType == 3"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND (mainId is NULL or mainId = '') | 
			
		
	
		
			
				
					|  |  |  |  |                 <if test="productsType == 1"> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |