update applet_table_head
set is_del=1
where id=#{id}
delete from applet_table_head where id=#{id}
update applet_table_head
id = #{id},
table_name = #{table_name},
table_code = #{table_code},
head_jason = #{head_jason},
create_time = #{create_time}::timestamp,
is_del = #{is_del},
update_time = current_timestamp
where id = #{id}