|
@@ -15,6 +15,7 @@
|
|
|
<result column="is_home" jdbcType="VARCHAR" property="isHome" />
|
|
|
<result column="certificate" jdbcType="VARCHAR" property="certificate" />
|
|
|
<result column="position" jdbcType="VARCHAR" property="position" />
|
|
|
+ <result column="sort_index" jdbcType="VARCHAR" property="sortIndex" />
|
|
|
</resultMap>
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.huaihai.core.expert.model.Expert">
|
|
|
<!--
|
|
@@ -95,7 +96,7 @@
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
-->
|
|
|
id, name, department_id, phone, create_time, create_user_id, is_home, certificate,
|
|
|
- position
|
|
|
+ position, sort_index
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
<!--
|
|
@@ -182,11 +183,11 @@
|
|
|
insert into expert (id, name, department_id,
|
|
|
phone, create_time, create_user_id,
|
|
|
is_home, certificate, position,
|
|
|
- expert_text)
|
|
|
+ sort_index, expert_text)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{departmentId,jdbcType=VARCHAR},
|
|
|
#{phone,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{createUserId,jdbcType=VARCHAR},
|
|
|
#{isHome,jdbcType=VARCHAR}, #{certificate,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR},
|
|
|
- #{expertText,jdbcType=LONGVARCHAR})
|
|
|
+ #{sortIndex,jdbcType=VARCHAR}, #{expertText,jdbcType=LONGVARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.huaihai.core.expert.model.Expert">
|
|
|
<!--
|
|
@@ -222,6 +223,9 @@
|
|
|
<if test="position != null">
|
|
|
position,
|
|
|
</if>
|
|
|
+ <if test="sortIndex != null">
|
|
|
+ sort_index,
|
|
|
+ </if>
|
|
|
<if test="expertText != null">
|
|
|
expert_text,
|
|
|
</if>
|
|
@@ -254,6 +258,9 @@
|
|
|
<if test="position != null">
|
|
|
#{position,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="sortIndex != null">
|
|
|
+ #{sortIndex,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="expertText != null">
|
|
|
#{expertText,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
@@ -303,6 +310,9 @@
|
|
|
<if test="record.position != null">
|
|
|
position = #{record.position,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.sortIndex != null">
|
|
|
+ sort_index = #{record.sortIndex,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.expertText != null">
|
|
|
expert_text = #{record.expertText,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
@@ -326,6 +336,7 @@
|
|
|
is_home = #{record.isHome,jdbcType=VARCHAR},
|
|
|
certificate = #{record.certificate,jdbcType=VARCHAR},
|
|
|
position = #{record.position,jdbcType=VARCHAR},
|
|
|
+ sort_index = #{record.sortIndex,jdbcType=VARCHAR},
|
|
|
expert_text = #{record.expertText,jdbcType=LONGVARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -345,7 +356,8 @@
|
|
|
create_user_id = #{record.createUserId,jdbcType=VARCHAR},
|
|
|
is_home = #{record.isHome,jdbcType=VARCHAR},
|
|
|
certificate = #{record.certificate,jdbcType=VARCHAR},
|
|
|
- position = #{record.position,jdbcType=VARCHAR}
|
|
|
+ position = #{record.position,jdbcType=VARCHAR},
|
|
|
+ sort_index = #{record.sortIndex,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -381,6 +393,9 @@
|
|
|
<if test="position != null">
|
|
|
position = #{position,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="sortIndex != null">
|
|
|
+ sort_index = #{sortIndex,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="expertText != null">
|
|
|
expert_text = #{expertText,jdbcType=LONGVARCHAR},
|
|
|
</if>
|
|
@@ -401,6 +416,7 @@
|
|
|
is_home = #{isHome,jdbcType=VARCHAR},
|
|
|
certificate = #{certificate,jdbcType=VARCHAR},
|
|
|
position = #{position,jdbcType=VARCHAR},
|
|
|
+ sort_index = #{sortIndex,jdbcType=VARCHAR},
|
|
|
expert_text = #{expertText,jdbcType=LONGVARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
@@ -417,7 +433,8 @@
|
|
|
create_user_id = #{createUserId,jdbcType=VARCHAR},
|
|
|
is_home = #{isHome,jdbcType=VARCHAR},
|
|
|
certificate = #{certificate,jdbcType=VARCHAR},
|
|
|
- position = #{position,jdbcType=VARCHAR}
|
|
|
+ position = #{position,jdbcType=VARCHAR},
|
|
|
+ sort_index = #{sortIndex,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<resultMap extends="BaseResultMap" id="MapTypeResultMap" type="java.util.Map">
|
|
@@ -434,8 +451,6 @@
|
|
|
<select id="getExpertList" parameterType="com.huaihai.core.expert.dto.ExpertDto" resultMap="MapTypeResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
- ,
|
|
|
- <include refid="Blob_Column_List" />
|
|
|
from expert
|
|
|
<where>
|
|
|
<if test="name!=null">
|