Antiloveg 8 years ago
parent
commit
9b95f4b4c3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/java/com/goafanti/common/mapper/UserAbilityMapper.xml

+ 2 - 0
src/main/java/com/goafanti/common/mapper/UserAbilityMapper.xml

@@ -30,6 +30,8 @@
     #{intellectRight,jdbcType=VARCHAR}, #{scienceAchievement,jdbcType=VARCHAR}, 
     #{researchInnovation,jdbcType=VARCHAR}, #{personnel,jdbcType=VARCHAR}
       )
+       ON DUPLICATE KEY UPDATE
+       uid = values(uid)
   </insert>
   <insert id="insertSelective" parameterType="com.goafanti.common.model.UserAbility" >
     insert into user_ability