select id,openid, weight, appid, phone, log_time, sleep_time, wakeup_time, sport, sport_desc, avatar_url, diet, insomnia, defecation, defecation_desc, water, create_by, create_time, update_by, update_time, remark,
emotion, emotion_desc,sly_eat_food,constipation,ingredient_desc,breakfast_images,lunch_images,dinner_images,extra_meal_images,body_images,suggest,execution_score,comment,health_manifesto
from sys_wx_user_log
insert into sys_wx_user_log
openid,
weight,
appid,
phone,
log_time,
sleep_time,
wakeup_time,
sport,
sport_desc,
avatar_url,
diet,
insomnia,
defecation,
defecation_desc,
water,
create_by,
create_time,
update_by,
update_time,
remark,
emotion,
emotion_desc,
sly_eat_food,
constipation,
ingredient_desc,
breakfast_images,
lunch_images,
dinner_images,
extra_meal_images,
body_images,
suggest,
target_weight,
execution_score,
comment,
thumbsup_num,
health_manifesto,
del_flag,
#{openid},
#{weight},
#{appid},
#{phone},
now(),
#{sleepTime},
#{wakeupTime},
#{sport},
#{sportDesc},
#{avatarUrl},
#{diet},
#{insomnia},
#{defecation},
#{defecationDesc},
#{water},
#{createBy},
now(),
#{updateBy},
now(),
#{remark},
#{emotion},
#{emotionDesc},
#{slyEatFood},
#{constipation},
#{ingredientDesc},
#{breakfastImages},
#{lunchImages},
#{dinnerImages},
#{extraMealImages},
#{bodyImages},
suggest = #{suggest},
target_weight = #{targetWeight},
execution_score = #{executionScore},
comment = #{comment},
#{thumbsupNum},
#{healthManifesto},
del_flag = #{delFlag},
update sys_wx_user_log
openid = #{openid},
weight = #{weight},
appid = #{appid},
phone = #{phone},
sleep_time = #{sleepTime},
wakeup_time = #{wakeupTime},
sport = #{sport},
sport_desc = #{sportDesc},
avatar_url = #{avatarUrl},
diet = #{diet},
insomnia = #{insomnia},
defecation = #{defecation},
defecation_desc = #{defecationDesc},
water = #{water},
update_by = #{updateBy},
update_time = now(),
remark = #{remark},
emotion = #{emotion},
emotion_desc = #{emotionDesc},
sly_eat_food = #{slyEatFood},
constipation = #{constipation},
ingredient_desc = #{ingredientDesc},
breakfast_images = #{breakfastImages},
lunch_images = #{lunchImages},
dinner_images = #{dinnerImages},
extra_meal_images = #{extraMealImages},
body_images = #{bodyImages},
suggest = #{suggest},
target_weight = #{targetWeight},
execution_score = #{executionScore},
comment = #{comment},
thumbsup_num = #{thumbsupNum},
health_manifesto = #{healthManifesto},
del_flag = #{delFlag},
where id = #{id}
update sys_wx_user_log set del_flag = 1 where id = #{id}
update sys_wx_user_log set del_flag = 1 where id in
#{id}