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