select id,openid, weight, appid, phone, log_time, sleep_time, wakeup_time, sport, avatar_url, diet, insomnia, defecation, water, create_by, create_time, update_by, update_time, remark,
emotion,sly_eat_food,constipation,ingredient_describe,breakfast_images,lunch_images,dinner_images,extra_meal_images,body_images,suggest,execution_score,comment
from sys_wx_user_log
insert into sys_wx_user_log
openid,
weight,
appid,
phone,
log_time,
sleep_time,
wakeup_time,
sport,
avatar_url,
diet,
insomnia,
defecation,
water,
create_by,
create_time,
update_by,
update_time,
remark,
emotion,
sly_eat_food,
constipation,
ingredient_describe,
breakfast_images,
lunch_images,
dinner_images,
extra_meal_images,
body_images,
suggest,
target_weight,
execution_score,
comment,
del_flag,
#{openid},
#{weight},
#{appid},
#{phone},
#{logTime},
#{sleepTime},
#{wakeupTime},
#{sport},
#{avatarUrl},
#{diet},
#{insomnia},
#{defecation},
#{water},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{emotion},
#{slyEatFood},
#{constipation},
#{ingredientDescribe},
#{breakfastImages},
#{lunchImages},
#{dinnerImages},
#{extraMealImages},
#{bodyImages},
suggest = #{suggest},
target_weight = #{targetWeight},
execution_score = #{executionScore},
comment = #{comment},
del_flag = #{delFlag},
update sys_wx_user_log
openid = #{openid},
weight = #{weight},
appid = #{appid},
phone = #{phone},
log_time = #{logTime},
sleep_time = #{sleepTime},
wakeup_time = #{wakeupTime},
sport = #{sport},
avatar_url = #{avatarUrl},
diet = #{diet},
insomnia = #{insomnia},
defecation = #{defecation},
water = #{water},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
emotion = #{emotion},
sly_eat_food = #{slyEatFood},
constipation = #{constipation},
ingredient_describe = #{ingredientDescribe},
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},
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}