Antiloveg 9 年之前
父节点
当前提交
9b95f4b4c3
共有 1 个文件被更改,包括 2 次插入0 次删除
  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