t.tooth_id,
t.user_open_id,
t.product_id,
t.color_id,
t.tooth_color_id,
t.tooth_pattern_id,
t.tooth_position_id,
t.tooth_text,
t.tooth_avatar_img,
t.tooth_img,
t.tooth_code_img,
t.tooth_type,
t.tooth_status,
t.tooth_create_time
insert into
tb_iamberry_customized_tooth
(
tooth_id,
user_open_id,
product_id,
color_id,
tooth_color_id,
tooth_pattern_id,
tooth_position_id,
tooth_text,
tooth_avatar_img,
tooth_img,
tooth_code_img,
tooth_type,
tooth_status
)
values
(
#{toothId},
#{userOpenId},
#{productId},
#{colorId},
#{toothColorId},
#{toothPatternId},
#{toothPositionId},
#{toothText},
#{toothAvatarImg},
#{toothImg},
#{toothCodeImg},
#{toothType},
#{toothStatus}
)
update
tb_iamberry_customized_tooth
tooth_id = #{toothId},
user_open_id = #{userOpenId},
product_id = #{productId},
color_id = #{colorId},
tooth_color_id = #{toothColorId},
tooth_pattern_id = #{toothPatternId},
tooth_position_id = #{toothPositionId},
tooth_text = #{toothText},
tooth_avatar_img = #{toothAvatarImg},
tooth_img = #{toothImg},
tooth_type = #{toothType},
tooth_status = #{toothStatus},
where tooth_id= #{toothId}