|
|
@@ -6,14 +6,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<insert id="insertOrUpdateByUniqueKey">
|
|
|
insert into fs_user_wx
|
|
|
- (fs_user_id, app_id, union_id, open_id, create_time, update_time)
|
|
|
+ (fs_user_id, app_id, union_id, open_id, create_time, update_time,type)
|
|
|
values
|
|
|
- (#{fsUserId}, #{appId}, #{unionId}, #{openId}, #{createTime, jdbcType=TIMESTAMP}, #{updateTime, jdbcType=TIMESTAMP})
|
|
|
+ (#{fsUserId}, #{appId}, #{unionId}, #{openId}, #{createTime, jdbcType=TIMESTAMP}, #{updateTime, jdbcType=TIMESTAMP}, #{type})
|
|
|
ON DUPLICATE KEY UPDATE
|
|
|
<if test="unionId != null">
|
|
|
union_id = VALUES(union_id),
|
|
|
</if>
|
|
|
open_id = VALUES(open_id),
|
|
|
- update_time = VALUES(update_time)
|
|
|
+ update_time = VALUES(update_time),
|
|
|
+ `type` = VALUES(`type`)
|
|
|
</insert>
|
|
|
</mapper>
|