| 
						
						
							
								
							
						
						
					 | 
					@ -661,7 +661,14 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            ppc.public_reply | 
					 | 
					 | 
					            ppc.public_reply | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        FROM | 
					 | 
					 | 
					        FROM | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            project p | 
					 | 
					 | 
					            project p | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        INNER JOIN project_category pc ON p.id = pc.project_id | 
					 | 
					 | 
					            <!-- 项目分类现在是只能选一个二类,查询只查一个分类数据 --> | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        INNER JOIN ( | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            select PROJECT_ID,category_pids,category_id | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            from project_category | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            where del_flag = '0' and customer_id = #{customerId} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            group by project_id | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            ORDER BY created_time desc | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        )pc ON p.id = pc.project_id | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <if test="firstIdList != null and firstIdList.size() > 0"><!-- 一类查询条件 --> | 
					 | 
					 | 
					        <if test="firstIdList != null and firstIdList.size() > 0"><!-- 一类查询条件 --> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <foreach collection="firstIdList" item="firstId" open="AND pc.category_pids IN (" separator="," close=")"> | 
					 | 
					 | 
					            <foreach collection="firstIdList" item="firstId" open="AND pc.category_pids IN (" separator="," close=")"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                #{firstId} | 
					 | 
					 | 
					                #{firstId} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -682,6 +689,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        </if> | 
					 | 
					 | 
					        </if> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        WHERE | 
					 | 
					 | 
					        WHERE | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            p.del_flag = '0' | 
					 | 
					 | 
					            p.del_flag = '0' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        AND p.customer_id = #{customerId} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <if test="orgType != null and orgType != ''"><!-- 组织/网格对应查询条件 --> | 
					 | 
					 | 
					        <if test="orgType != null and orgType != ''"><!-- 组织/网格对应查询条件 --> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <choose> | 
					 | 
					 | 
					            <choose> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                <when test="orgType == 'agency'"> | 
					 | 
					 | 
					                <when test="orgType == 'agency'"> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |