insert into watch_user
user_id,
sex,
birthday,
w_company_id,
height,
weight,
target_step,
target_calorie,
target_activity,
target_sport,
device_id,
other_device,
monitor_data_type_order,
create_time,
update_time,
is_del,
#{userId},
#{sex},
#{birthday},
#{wCompanyId},
#{height},
#{weight},
#{targetStep},
#{targetCalorie},
#{targetActivity},
#{targetSport},
#{deviceId},
#{otherDevice},
#{monitorDataTypeOrder},
#{createTime},
#{updateTime},
#{isDel},
update watch_user
sex = #{sex},
birthday = #{birthday},
w_company_id = #{wCompanyId},
height = #{height},
weight = #{weight},
target_step = #{targetStep},
target_calorie = #{targetCalorie},
target_activity = #{targetActivity},
target_sport = #{targetSport},
device_id = #{deviceId},
other_device = #{otherDevice},
monitor_data_type_order = #{monitorDataTypeOrder},
create_time = #{createTime},
update_time = #{updateTime},
is_del = #{isDel},
nick_name = #{nickName},
where user_id = #{userId}
update watch_user
sex = #{sex},
birthday = #{birthday},
update_time = #{updateTime},
w_company_id = #{wCompanyId},
height = #{height},
weight = #{weight},
target_step = #{targetStep},
target_calorie = #{targetCalorie},
target_activity = #{targetActivity},
target_sport = #{targetSport},
other_device = #{otherDevice},
monitor_data_type_order = #{monitorDataTypeOrder},
nick_name = #{nickName},
where device_id like concat('%',#{deviceId},'%') and user_id = #{userId}
delete from watch_user where user_id = #{userId}