select id,
name,
gender,
sfzid,
tel_one,
tel_two,
tel_three,
birthday,
age,
marr_status, national, local, client_type, live_status, family_address, detail_address, house_address, house_detail_address, serviceid, oldmen_status, change_content, lose_month, treat_month, is_treat, service_type, treate_sure, money_come, money_month, card_code, slow_illness, blood_type, shi_status, disablity_status, disablity_entry, educa_level, special, title, unity, nature_heart, eat_point, speciality, hobby, photo, other_photo, remarks, createtime
from t_user_profile
insert into t_user_profile
name,
gender,
sfzid,
tel_one,
tel_two,
tel_three,
birthday,
age,
marr_status,
national,
local,
client_type,
live_status,
family_address,
detail_address,
house_address,
house_detail_address,
serviceid,
oldmen_status,
change_content,
lose_month,
treat_month,
is_treat,
service_type,
treate_sure,
money_come,
money_month,
card_code,
slow_illness,
blood_type,
shi_status,
disablity_status,
disablity_entry,
educa_level,
special,
title,
unity,
nature_heart,
eat_point,
speciality,
hobby,
photo,
other_photo,
remarks,
createtime,
#{name},
#{gender},
#{sfzid},
#{telOne},
#{telTwo},
#{telThree},
#{birthday},
#{age},
#{marrStatus},
#{national},
#{local},
#{clientType},
#{liveStatus},
#{familyAddress},
#{detailAddress},
#{houseAddress},
#{houseDetailAddress},
#{serviceid},
#{oldmenStatus},
#{changeContent},
#{loseMonth},
#{treatMonth},
#{isTreat},
#{serviceType},
#{treateSure},
#{moneyCome},
#{moneyMonth},
#{cardCode},
#{slowIllness},
#{bloodType},
#{shiStatus},
#{disablityStatus},
#{disablityEntry},
#{educaLevel},
#{special},
#{title},
#{unity},
#{natureHeart},
#{eatPoint},
#{speciality},
#{hobby},
#{photo},
#{otherPhoto},
#{remarks},
#{createTime},
update t_user_profile
name = #{name},
gender = #{gender},
sfzid = #{sfzid},
tel_one = #{telOne},
tel_two = #{telTwo},
tel_three = #{telThree},
birthday = #{birthday},
age = #{age},
marr_status = #{marrStatus},
national = #{national},
local = #{local},
client_type = #{clientType},
live_status = #{liveStatus},
family_address = #{familyAddress},
detail_address = #{detailAddress},
house_address = #{houseAddress},
house_detail_address = #{houseDetailAddress},
serviceid = #{serviceid},
oldmen_status = #{oldmenStatus},
change_content = #{changeContent},
lose_month = #{loseMonth},
treat_month = #{treatMonth},
is_treat = #{isTreat},
service_type = #{serviceType},
treate_sure = #{treateSure},
money_come = #{moneyCome},
money_month = #{moneyMonth},
card_code = #{cardCode},
slow_illness = #{slowIllness},
blood_type = #{bloodType},
shi_status = #{shiStatus},
disablity_status = #{disablityStatus},
disablity_entry = #{disablityEntry},
educa_level = #{educaLevel},
special = #{special},
title = #{title},
unity = #{unity},
nature_heart = #{natureHeart},
eat_point = #{eatPoint},
speciality = #{speciality},
hobby = #{hobby},
photo = #{photo},
other_photo = #{otherPhoto},
remarks = #{remarks},
createtime = #{createTime},
where id = #{id}
delete
from t_user_profile
where id = #{id}
delete from t_user_profile where id in
#{id}
delete from t_emergent_people where profile_id in
#{profileId}
delete
from t_emergent_people
where profile_id = #{profileId}
insert into t_emergent_people( id, profile_id, name, telno, relation, is_conn) values
( #{item.id}, #{item.profileId}, #{item.name}, #{item.telno}, #{item.relation}, #{item.isConn})