|  | @@ -2,8 +2,6 @@
 | 
	
		
			
				|  |  |  <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 | 
	
		
			
				|  |  |  <mapper namespace="com.ym.mec.biz.dal.dao.ReplacementInstrumentCooperationDao">
 | 
	
		
			
				|  |  |      <resultMap id="ReplacementInstrumentCooperation" type="com.ym.mec.biz.dal.entity.ReplacementInstrumentCooperation">
 | 
	
		
			
				|  |  | -        <!--@mbg.generated-->
 | 
	
		
			
				|  |  | -        <!--@Table replacement_instrument_cooperation-->
 | 
	
		
			
				|  |  |          <result column="id_" property="id"/>
 | 
	
		
			
				|  |  |          <result column="organ_id_" property="organId"/>
 | 
	
		
			
				|  |  |          <result column="cooperation_organ_id_" property="cooperationOrganId"/>
 | 
	
	
		
			
				|  | @@ -13,6 +11,7 @@
 | 
	
		
			
				|  |  |          <result column="show_question_" property="showQuestion" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
 | 
	
		
			
				|  |  |          <result column="organName" property="organName"/>
 | 
	
		
			
				|  |  |          <result column="cooperationOrganName" property="cooperationOrganName"/>
 | 
	
		
			
				|  |  | +        <result column="title_" property="title"/>
 | 
	
		
			
				|  |  |          <result column="create_time_" property="createTime"/>
 | 
	
		
			
				|  |  |          <result column="update_time_" property="updateTime"/>
 | 
	
		
			
				|  |  |      </resultMap>
 | 
	
	
		
			
				|  | @@ -27,11 +26,11 @@
 | 
	
		
			
				|  |  |              useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 | 
	
		
			
				|  |  |          <!--@mbg.generated-->
 | 
	
		
			
				|  |  |          insert into replacement_instrument_cooperation (organ_id_, cooperation_organ_id_, open_pay_,show_question_,topic_id_, create_time_,
 | 
	
		
			
				|  |  | -        update_time_
 | 
	
		
			
				|  |  | +        update_time_,title_
 | 
	
		
			
				|  |  |          )
 | 
	
		
			
				|  |  |          values (#{organId}, #{cooperationOrganId},
 | 
	
		
			
				|  |  |          #{openPay,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{showQuestion,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
 | 
	
		
			
				|  |  | -        #{topicId}, #{createTime}, #{updateTime}
 | 
	
		
			
				|  |  | +        #{topicId}, NOW(), NOW(),#{title}
 | 
	
		
			
				|  |  |          )
 | 
	
		
			
				|  |  |      </insert>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -43,6 +42,9 @@
 | 
	
		
			
				|  |  |          <!--@mbg.generated-->
 | 
	
		
			
				|  |  |          update replacement_instrument_cooperation
 | 
	
		
			
				|  |  |          <set>
 | 
	
		
			
				|  |  | +            <if test="title != null">
 | 
	
		
			
				|  |  | +                title_ = #{title},
 | 
	
		
			
				|  |  | +            </if>
 | 
	
		
			
				|  |  |              <if test="topicId != null">
 | 
	
		
			
				|  |  |                  topic_id_ = #{topicId},
 | 
	
		
			
				|  |  |              </if>
 | 
	
	
		
			
				|  | @@ -84,7 +86,7 @@
 | 
	
		
			
				|  |  |                  AND ric.show_question_ = #{showQuestion,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  |              <if test="search != null and search != ''">
 | 
	
		
			
				|  |  | -                AND (ric.cooperation_organ_id_ = #{search} OR co.name_ LIKE CONCAT('%',#{search},'%'))
 | 
	
		
			
				|  |  | +                AND (ric.cooperation_organ_id_ = #{search} OR co.name_ LIKE CONCAT('%',#{search},'%') OR ric.title_ LIKE CONCAT('%',#{search},'%'))
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  |          </where>
 | 
	
		
			
				|  |  |      </sql>
 |