|  |  | @ -2,7 +2,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |  |  |  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 
			
		
	
		
		
			
				
					
					|  |  |  | <mapper namespace="com.glxp.api.dao.collect.IoCollectCodeMapper"> |  |  |  | <mapper namespace="com.glxp.api.dao.collect.IoCollectCodeMapper"> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="filterList" resultType="com.glxp.api.res.collect.IoCollectCodeResponse"> |  |  |  |     <select id="filterList" resultType="com.glxp.api.res.collect.IoCollectCodeResponse"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         SELECT icc.*,sw.workplaceName, |  |  |  |         SELECT iccb.*,sw.workplaceName, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         COALESCE(thr_bustype_origin.name, basic_bussiness_type.name) as busTypeName, |  |  |  |         COALESCE(thr_bustype_origin.name, basic_bussiness_type.name) as busTypeName, | 
			
		
	
		
		
			
				
					
					|  |  |  |         bp.nameCode, |  |  |  |         bp.nameCode, | 
			
		
	
		
		
			
				
					
					|  |  |  |         bp.cpmctymc, |  |  |  |         bp.cpmctymc, | 
			
		
	
	
		
		
			
				
					|  |  | @ -10,29 +10,29 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         bp.zczbhhzbapzbh, |  |  |  |         bp.zczbhhzbapzbh, | 
			
		
	
		
		
			
				
					
					|  |  |  |         bp.ylqxzcrbarmc, |  |  |  |         bp.ylqxzcrbarmc, | 
			
		
	
		
		
			
				
					
					|  |  |  |         bp.manufactory |  |  |  |         bp.manufactory | 
			
		
	
		
		
			
				
					
					|  |  |  |         from io_collect_code icc |  |  |  |         from io_collect_code_backup iccb | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         left join sys_workplace sw on sw.workplaceId = icc.workPlaceCode |  |  |  |         left join sys_workplace sw on sw.workplaceId = iccb.workPlaceCode | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         left join thr_bustype_origin on icc.busType = thr_bustype_origin.action |  |  |  |         left join thr_bustype_origin on iccb.busType = thr_bustype_origin.action | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         left join basic_bussiness_type on icc.busType = basic_bussiness_type.action |  |  |  |         left join basic_bussiness_type on iccb.busType = basic_bussiness_type.action | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         left join basic_udirel bu on icc.relId = bu.id |  |  |  |         left join basic_udirel bu on iccb.relId = bu.id | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         left join basic_products bp on bu.uuid = bp.uuid |  |  |  |         left join basic_products bp on bu.uuid = bp.uuid | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="workPlaceCode != '' and workPlaceCode != null"> |  |  |  |             <if test="workPlaceCode != '' and workPlaceCode != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND icc.workPlaceCode LIKE concat('%', #{workPlaceCode}, '%') |  |  |  |                 AND iccb.workPlaceCode LIKE concat('%', #{workPlaceCode}, '%') | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="code != '' and code != null"> |  |  |  |             <if test="code != '' and code != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND icc.code LIKE concat('%', #{code}, '%') |  |  |  |                 AND iccb.code LIKE concat('%', #{code}, '%') | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="billNo != null and billNo != ''"> |  |  |  |             <if test="billNo != null and billNo != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND icc.billNo LIKE concat('%', #{billNo}, '%') |  |  |  |                 AND iccb.billNo LIKE concat('%', #{billNo}, '%') | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="fromType != null and fromType != ''"> |  |  |  |             <if test="fromType != null and fromType != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND icc.fromType LIKE concat('%', #{fromType}, '%') |  |  |  |                 AND iccb.fromType LIKE concat('%', #{fromType}, '%') | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="fromCorp != null and fromCorp != ''"> |  |  |  |             <if test="fromCorp != null and fromCorp != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND icc.fromCorp LIKE concat('%', #{fromCorp}, '%') |  |  |  |                 AND iccb.fromCorp LIKE concat('%', #{fromCorp}, '%') | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |         group by icc.id |  |  |  |         group by iccb.id | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | </mapper> |  |  |  | </mapper> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |