select scps.id,scps.customer_id,scps.sex, scps.age, scps.tall, scps.weight, scps.physical_signs_id, scps.dishes_ingredient_id, scps.photo, scps.constipation,
scps.stayLate, scps.motion, scps.make_food_type, scps.make_food_taste, scps.walk, scps.difficulty, scps.weakness, scps.rebound, scps.crux, scps.position,
scps.sleep_time, scps.getup_time, scps.connect_time, scps.remarks, scps.remark, scps.avoid_food, scps.blood_data, scps.moisture_date, scps.vocation,
scps.night, scps.experience, scps.comments, scps.create_time, sc.name, sc.phone
from sys_customer_physical_signs scps
left join sys_customer sc on scps.customer_id = sc.id
insert into sys_customer_physical_signs
customer_id,
sex,
age,
tall,
weight,
physical_signs_id,
dishes_ingredient_id,
photo,
constipation,
stayLate,
motion,
make_food_type,
make_food_taste,
walk,
difficulty,
weakness,
rebound,
crux,
position,
sleep_time,
getup_time,
connect_time,
remarks,
remark,
blood_data,
moisture_date,
vocation,
night,
experience,
comments,
create_time,
create_by,
update_time,
update_by,
avoid_food,
#{customerId},
#{sex},
#{age},
#{tall},
#{weight},
#{physicalSignsId},
#{dishesIngredientId},
#{photo},
#{constipation},
#{staylate},
#{motion},
#{makeFoodType},
#{makeFoodTaste},
#{walk},
#{difficulty},
#{weakness},
#{rebound},
#{crux},
#{position},
#{sleepTime},
#{getupTime},
#{connectTime},
#{remarks},
#{remark},
#{bloodData},
#{moistureDate},
#{vocation},
#{night},
#{experience},
#{comments},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
#{avoid_food, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler},
update sys_customer_physical_signs
customer_id = #{customerId},
sex = #{sex},
age = #{age},
tall = #{tall},
weight = #{weight},
physical_signs_id = #{physicalSignsId},
dishes_ingredient_id = #{dishesIngredientId},
photo = #{photo},
constipation = #{constipation},
stayLate = #{staylate},
motion = #{motion},
make_food_type = #{makeFoodType},
make_food_taste = #{makeFoodTaste},
walk = #{walk},
difficulty = #{difficulty},
weakness = #{weakness},
rebound = #{rebound},
crux = #{crux},
position = #{position},
sleep_time = #{sleepTime},
getup_time = #{getupTime},
connect_time = #{connectTime},
remarks = #{remarks},
remark = #{remark},
blood_data = #{bloodData},
moisture_date = #{moistureDate},
vocation = #{vocation},
night = #{night},
experience = #{experience},
comments = #{comments},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
avoid_food = #{avoidFood, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler},
where id = #{id}
update sys_customer_physical_signs set del_flag = 1 where id = #{id}
update sys_customer_physical_signs set del_flag = 1 where id in
#{id}
update sys_customer_physical_signs set del_flag = 1 where customer_id = #{customerId}