|  | @@ -110,5 +110,14 @@
 | 
	
		
			
				|  |  |          FROM replacement_instrument_activity
 | 
	
		
			
				|  |  |          GROUP BY cooperation_organ_id_
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  | +    <select id="findByCooperationOrganIdAndTopicId" resultMap="ReplacementInstrumentCooperation">
 | 
	
		
			
				|  |  | +        SELECT *
 | 
	
		
			
				|  |  | +        FROM replacement_instrument_cooperation
 | 
	
		
			
				|  |  | +        WHERE cooperation_organ_id_ = #{cooperationOrganId}
 | 
	
		
			
				|  |  | +        <if test="topicId != null">
 | 
	
		
			
				|  |  | +            AND topic_id_ = #{topicId}
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  | +        LIMIT 1
 | 
	
		
			
				|  |  | +    </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  </mapper>
 |