| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -21,7 +21,8 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <trim prefix="dept_id_qx =(case" suffix="end),"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <foreach collection="list" item="item"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <if test='null != item.deptIdQx'> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        when grid_code = #{item.gridCode} then #{item.deptIdQx} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                       <!--  when grid_code = #{item.gridCode} then #{item.deptIdQx} --> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        when dept_name_qx = #{item.deptNameQx} then #{item.deptIdQx} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </foreach> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </trim> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -29,7 +30,8 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <trim prefix="dept_name_qx =(case" suffix="end),"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <foreach collection="list" item="item"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <if test='null != item.deptNameQx'> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        when grid_code = #{item.gridCode} then #{item.deptNameQx} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        when dept_name_qx = #{item.deptNameQx} then #{item.deptIdQx} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                       <!--  when grid_code = #{item.gridCode} then #{item.deptNameQx} --> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    </if> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                </foreach> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            </trim> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -38,7 +40,8 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        WHERE | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        1=1 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <foreach collection="list" item="item" open="AND(  " separator=" OR " index="index" close=")"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            grid_code = #{item.gridCode} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <!-- grid_code = #{item.gridCode} --> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            dept_name_qx = #{item.deptNameQx} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </foreach> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </update> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |