select id, customer_id, product_id, fence_name, fence_alias, fence_start_address, fence_start_location,fence_end_address,fence_end_location, status, deltag, create_by, create_time, update_by, update_time, remark from bk_fence
insert into bk_fence
customer_id,
product_id,
fence_name,
fence_alias,
fence_start_address,
fence_start_location,
fence_end_address,
fence_end_location,
status,
deltag,
create_by,
create_time,
update_by,
update_time,
remark,
#{customerId},
#{productId},
#{fenceName},
#{fenceAlias},
#{fenceStartAddress},
#{fenceStartLocation},
#{fenceEndAddress},
#{fenceEndLocation},
#{status},
#{deltag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update bk_fence
customer_id = #{customerId},
product_id = #{productId},
fence_name = #{fenceName},
fence_alias = #{fenceAlias},
fence_start_address = #{fenceStartAddress},
fence_start_location = #{fenceStartLocation},
fence_end_address = #{fenceEndAddress},
fence_end_location = #{fenceEndLocation},
status = #{status},
deltag = #{deltag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where id = #{id}
delete from bk_fence where id = #{id}
delete from bk_fence where id in
#{id}