|
|
@@ -5,9 +5,13 @@
|
|
|
<id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
<result column="uid" property="uid" jdbcType="VARCHAR" />
|
|
|
<result column="ability_label" property="abilityLabel" jdbcType="VARCHAR" />
|
|
|
+ <result column="intellect_right" property="intellectRight" jdbcType="VARCHAR" />
|
|
|
+ <result column="science_achievement" property="scienceAchievement" jdbcType="VARCHAR" />
|
|
|
+ <result column="research_innovation" property="researchInnovation" jdbcType="VARCHAR" />
|
|
|
+ <result column="personnel" property="personnel" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
- id, uid, ability_label
|
|
|
+ id, uid, ability_label, intellect_right, science_achievement, research_innovation, personnel
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
@@ -20,9 +24,11 @@
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.goafanti.common.model.UserAbility" >
|
|
|
- insert into user_ability (id, uid, ability_label
|
|
|
+ insert into user_ability (id, uid, ability_label, intellect_right, science_achievement, research_innovation, personnel
|
|
|
)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{abilityLabel,jdbcType=VARCHAR}
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{abilityLabel,jdbcType=VARCHAR},
|
|
|
+ #{intellectRight,jdbcType=VARCHAR}, #{scienceAchievement,jdbcType=VARCHAR},
|
|
|
+ #{researchInnovation,jdbcType=VARCHAR}, #{personnel,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.UserAbility" >
|
|
|
@@ -37,6 +43,19 @@
|
|
|
<if test="abilityLabel != null" >
|
|
|
ability_label,
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="intellectRight != null" >
|
|
|
+ intellect_right,
|
|
|
+ </if>
|
|
|
+ <if test="scienceAchievement != null" >
|
|
|
+ science_achievement,
|
|
|
+ </if>
|
|
|
+ <if test="researchInnovation != null" >
|
|
|
+ research_innovation,
|
|
|
+ </if>
|
|
|
+ <if test="personnel != null" >
|
|
|
+ personnel,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
@@ -48,6 +67,19 @@
|
|
|
<if test="abilityLabel != null" >
|
|
|
#{abilityLabel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="intellectRight != null" >
|
|
|
+ #{intellectRight,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="scienceAchievement != null" >
|
|
|
+ #{scienceAchievement,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="researchInnovation != null" >
|
|
|
+ #{researchInnovation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="personnel != null" >
|
|
|
+ #{personnel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.UserAbility" >
|
|
|
@@ -59,13 +91,30 @@
|
|
|
<if test="abilityLabel != null" >
|
|
|
ability_label = #{abilityLabel,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+
|
|
|
+ <if test="intellectRight != null" >
|
|
|
+ intellect_right = #{intellectRight,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="scienceAchievement != null" >
|
|
|
+ science_achievement = #{scienceAchievement,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="researchInnovation != null" >
|
|
|
+ research_innovation = #{researchInnovation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="personnel != null" >
|
|
|
+ personnel = #{personnel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.UserAbility" >
|
|
|
update user_ability
|
|
|
set uid = #{uid,jdbcType=VARCHAR},
|
|
|
- ability_label = #{abilityLabel,jdbcType=VARCHAR}
|
|
|
+ ability_label = #{abilityLabel,jdbcType=VARCHAR},
|
|
|
+ intellect_right = #{intellectRight,jdbcType=VARCHAR},
|
|
|
+ science_achievement = #{scienceAchievement,jdbcType=VARCHAR},
|
|
|
+ research_innovation = #{researchInnovation,jdbcType=VARCHAR},
|
|
|
+ personnel = #{personnel,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|