FsUserWxMapper.xml 736 B

12345678910111213141516171819
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.fs.his.mapper.FsUserWxMapper">
  6. <insert id="insertOrUpdateByUniqueKey">
  7. insert into fs_user_wx
  8. (fs_user_id, app_id, union_id, open_id, create_time, update_time)
  9. values
  10. (#{fsUserId}, #{appId}, #{unionId}, #{openId}, #{createTime, jdbcType=TIMESTAMP}, #{updateTime, jdbcType=TIMESTAMP})
  11. ON DUPLICATE KEY UPDATE
  12. <if test="unionId != null">
  13. union_id = VALUES(union_id),
  14. </if>
  15. open_id = VALUES(open_id),
  16. update_time = VALUES(update_time)
  17. </insert>
  18. </mapper>