|  |  |  | @ -2,7 +2,11 @@ | 
			
		
	
		
			
				
					|  |  |  |  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 
			
		
	
		
			
				
					|  |  |  |  | <mapper namespace="com.glxp.api.dao.basic.SysWorkplacePutRelMapper"> | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="filterList" resultType="com.glxp.api.res.basic.SysWorkplacePutRelResponse"> | 
			
		
	
		
			
				
					|  |  |  |  |         select sw.workplaceName as collectName,swd.busName as busTypeName,sw.workplaceId as collectWorkPlaceCode,swd.documentTypeCode as collectBusTypeCode | 
			
		
	
		
			
				
					|  |  |  |  |         select swpr.id, sw.workplaceName as collectName, | 
			
		
	
		
			
				
					|  |  |  |  |                swd.busName as busTypeName, | 
			
		
	
		
			
				
					|  |  |  |  |                sw.workplaceId as collectWorkPlaceCode, | 
			
		
	
		
			
				
					|  |  |  |  |                swd.documentTypeCode as collectBusTypeCode, | 
			
		
	
		
			
				
					|  |  |  |  |                CONCAT(sw.workplaceId,swd.documentTypeCode) as collectAndTypeCodes | 
			
		
	
		
			
				
					|  |  |  |  |             from sys_workplace_put_rel swpr | 
			
		
	
		
			
				
					|  |  |  |  |                  left join sys_workplace sw on swpr.collectWorkCode = sw.workplaceId | 
			
		
	
		
			
				
					|  |  |  |  |                  left join sys_workplace_document swd on swpr.collectBusType = swd.documentTypeCode | 
			
		
	
	
		
			
				
					|  |  |  | @ -10,6 +14,10 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="workPlaceCode != '' and workPlaceCode != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND swpr.workPlaceCode =#{workPlaceCode} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="keyWords != null and keyWords != ''"> | 
			
		
	
		
			
				
					|  |  |  |  |                 and (sw.workplaceName like concat('%', #{keyWords}, '%') | 
			
		
	
		
			
				
					|  |  |  |  |                 or swd.busName like concat('%', #{keyWords}, '%')) | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |         </where> | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | </mapper> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |