| 
						
						
							
								
							
						
						
					 | 
					@ -382,7 +382,9 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            rt.topic_content AS topicContent, | 
					 | 
					 | 
					            rt.topic_content AS topicContent, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            rt.created_by AS publishedUser, | 
					 | 
					 | 
					            rt.created_by AS publishedUser, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            UNIX_TIMESTAMP(rt.created_time) AS publishedTime, | 
					 | 
					 | 
					            UNIX_TIMESTAMP(rt.created_time) AS publishedTime, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            rg.group_type AS groupType | 
					 | 
					 | 
					            rg.group_type AS groupType, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            rg.id as groupId, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            rg.GROUP_NAME as groupName | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        FROM | 
					 | 
					 | 
					        FROM | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            resi_topic rt | 
					 | 
					 | 
					            resi_topic rt | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        LEFT JOIN resi_group rg ON rt.group_id = rg.id | 
					 | 
					 | 
					        LEFT JOIN resi_group rg ON rt.group_id = rg.id | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -414,6 +416,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <result property="topicContent" column="TOPIC_CONTENT"/> | 
					 | 
					 | 
					        <result property="topicContent" column="TOPIC_CONTENT"/> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <result property="createdBy" column="CREATED_BY" /> | 
					 | 
					 | 
					        <result property="createdBy" column="CREATED_BY" /> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <result property="groupId" column="GROUP_ID" /> | 
					 | 
					 | 
					        <result property="groupId" column="GROUP_ID" /> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        <result property="groupName" column="groupName" /> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <result property="createdTime" column="CREATED_TIME" /> | 
					 | 
					 | 
					        <result property="createdTime" column="CREATED_TIME" /> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        <collection property="photoList" ofType="java.lang.String"> | 
					 | 
					 | 
					        <collection property="photoList" ofType="java.lang.String"> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            <constructor> | 
					 | 
					 | 
					            <constructor> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -424,29 +427,26 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <!-- 查询话题和附件信息 --> | 
					 | 
					 | 
					    <!-- 查询话题和附件信息 --> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <select id="selectTopicAndAttachments" resultMap="govTopicIssueInfoResultMap"> | 
					 | 
					 | 
					    <select id="selectTopicAndAttachments" resultMap="govTopicIssueInfoResultMap"> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
												SELECT | 
					 | 
					 | 
					        SELECT | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												topic.ID AS TOPIC_ID, | 
					 | 
					 | 
					            topic.ID AS TOPIC_ID, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												topic.TOPIC_CONTENT , | 
					 | 
					 | 
					            topic.TOPIC_CONTENT, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												topic.CREATED_BY , | 
					 | 
					 | 
					            topic.CREATED_BY, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												topic.GROUP_ID , | 
					 | 
					 | 
					            topic.GROUP_ID, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												topic.CREATED_TIME , | 
					 | 
					 | 
					            rg.GROUP_NAME as groupName, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												attachment.ATTACHMENT_URL | 
					 | 
					 | 
					            topic.CREATED_TIME, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												FROM | 
					 | 
					 | 
					            attachment.ATTACHMENT_URL | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												resi_topic topic | 
					 | 
					 | 
					        FROM | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												LEFT JOIN | 
					 | 
					 | 
					            resi_topic topic | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												resi_topic_attachment attachment | 
					 | 
					 | 
					            left join resi_group rg | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												ON | 
					 | 
					 | 
					            on(topic.GROUP_ID=rg.id and rg.DEL_FLAG='0') | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												topic.ID = attachment.TOPIC_ID | 
					 | 
					 | 
					            LEFT JOIN resi_topic_attachment attachment ON topic.ID = attachment.TOPIC_ID | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												AND | 
					 | 
					 | 
					            AND attachment.DEL_FLAG = '0' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												attachment.DEL_FLAG = '0' | 
					 | 
					 | 
					            AND attachment.ATTACHMENT_TYPE = 'image' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												AND | 
					 | 
					 | 
					        WHERE | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												attachment.ATTACHMENT_TYPE = 'image' | 
					 | 
					 | 
					            topic.DEL_FLAG = '0' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												WHERE | 
					 | 
					 | 
					            AND topic.ID = #{topicId} | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												topic.DEL_FLAG = '0' | 
					 | 
					 | 
					        ORDER BY | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
												AND | 
					 | 
					 | 
					            attachment.SORT ASC | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
												topic.ID = #{topicId} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
												ORDER BY | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
												attachment.SORT ASC | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    </select> | 
					 | 
					 | 
					    </select> | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    <!-- 校验本人是不是话题发起人 --> | 
					 | 
					 | 
					    <!-- 校验本人是不是话题发起人 --> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |