select a.id, a.name, a.type, a.place, a.activity_volume, a.exercise_time, a.start_time, a.end_time, a.harvest, a.foods, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag, a.remark, a.total_cost, a.partner, a.cost_detail, a.attachment from health_activity a
insert into health_activity
id,
name,
type,
place,
activity_volume,
exercise_time,
start_time,
end_time,
harvest,
foods,
create_by,
create_time,
update_by,
update_time,
del_flag,
remark,
total_cost,
partner,
cost_detail,
attachment,
#{id},
#{name},
#{type},
#{place},
#{activityVolume},
#{exerciseTime},
#{startTime},
#{endTime},
#{harvest},
#{foods},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{delFlag},
#{remark},
#{totalCost},
#{partner},
#{costDetail},
#{attachment},
update health_activity
name = #{name},
type = #{type},
place = #{place},
activity_volume = #{activityVolume},
exercise_time = #{exerciseTime},
start_time = #{startTime},
end_time = #{endTime},
harvest = #{harvest},
foods = #{foods},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
del_flag = #{delFlag},
remark = #{remark},
total_cost = #{totalCost},
partner = #{partner},
cost_detail = #{costDetail},
attachment = #{attachment},
where id = #{id}
delete from health_activity where id = #{id}
delete from health_activity where id in
#{id}
update health_activity set del_flag='1' where id = #{id}
update health_activity set del_flag='1' where id in
#{id}