id, open_id, union_id, phone, avatar_url, nickname, gender, birthday, birth_hour,
province, city, district, points, pinned_daily_card_id, profile_edit_count, created_at, updated_at
INSERT INTO hera_user (
open_id, union_id, phone, avatar_url, nickname, gender, birthday, birth_hour,
province, city, district, points, pinned_daily_card_id, profile_edit_count, created_at, updated_at
) VALUES (
#{openId}, #{unionId}, #{phone}, #{avatarUrl}, #{nickname}, #{gender}, #{birthday}, #{birthHour},
#{province}, #{city}, #{district}, #{points}, #{pinnedDailyCardId}, #{profileEditCount},
#{createdAt}, #{updatedAt}
)
UPDATE hera_user
SET union_id = #{unionId},
phone = #{phone},
avatar_url = #{avatarUrl},
nickname = #{nickname},
gender = #{gender},
birthday = #{birthday},
birth_hour = #{birthHour},
province = #{province},
city = #{city},
district = #{district},
points = #{points},
pinned_daily_card_id = #{pinnedDailyCardId},
profile_edit_count = #{profileEditCount},
updated_at = #{updatedAt}
WHERE id = #{id}