select id, device_id, area_id, canteen_id, stall_id, if_use_print, create_by, create_time, update_by, update_time from device_bind
insert into device_bind
device_id,
area_id,
canteen_id,
stall_id,
if_use_print,
create_by,
create_time,
update_by,
update_time,
#{deviceId},
#{areaId},
#{canteenId},
#{stallId},
#{ifUsePrint},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update device_bind
device_id = #{deviceId},
area_id = #{areaId},
canteen_id = #{canteenId},
stall_id = #{stallId},
if_use_print = #{ifUsePrint},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}
delete from device_bind where id = #{id}
delete from device_bind where id in
#{id}