|  |  |  | @ -20,25 +20,26 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="filterAll" parameterType="com.glxp.api.admin.req.basic.BusTypeChangeFilterRequest" | 
			
		
	
		
			
				
					|  |  |  |  |             resultType="com.glxp.api.admin.entity.basic.BussinessChangeTypeEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT basic_bustype_pre.*,invA.name defautSubInvName,invB.name locSubInvName , | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT  basic_bustype_pre.*,invA.name defautSubInvName,invB.name locSubInvName , | 
			
		
	
		
			
				
					|  |  |  |  |         busTypeA.name originName,busTypeB.name targetName | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         FROM basic_bustype_pre | 
			
		
	
		
			
				
					|  |  |  |  |         left JOIN inv_warehouse_sub invA on basic_bustype_pre.defaultSubInv = invA.code | 
			
		
	
		
			
				
					|  |  |  |  |         left JOIN inv_warehouse_sub invB on basic_bustype_pre.locSubInv = invB.code | 
			
		
	
		
			
				
					|  |  |  |  |         left JOIN basic_bustype_local busTypeA on basic_bustype_pre.originAction = busTypeA.action | 
			
		
	
		
			
				
					|  |  |  |  |         left JOIN basic_bustype_local busTypeB on basic_bustype_pre.action = busTypeB.action | 
			
		
	
		
			
				
					|  |  |  |  |         left JOIN basic_bustype_local busTypeA on basic_bustype_pre.originAction  = busTypeA.action | 
			
		
	
		
			
				
					|  |  |  |  |         left JOIN basic_bustype_local busTypeB on basic_bustype_pre.action  = busTypeB.action | 
			
		
	
		
			
				
					|  |  |  |  |         <where> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="action != ''and action != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND basic_bustype_pre.`action` = #{action} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="originName != ''and originName != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND busTypeA.NAME LIKE CONCAT(#{originName},'%') | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="targetName != ''and targetName != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND busTypeB.name LIKE CONCAT(#{targetName},'%') | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="originAction != ''and originAction != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND basic_bustype_pre.`originAction` = #{originAction} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="name != '' and name != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND  busTypeB.`name` like concat('%',#{name},'%') | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         </where> | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |