select id, com_id, project_id, name, tag, scene_guid, source, device_no, addition, bind_default_scene, force_empty_device, password, device_model, device_state, rec_type, online_state, version_no, last_active_time, has_register, state, remark, is_del, create_by, create_time, update_by, update_time from attendance_ubi_device
insert into attendance_ubi_device
id,
com_id,
project_id,
name,
tag,
scene_guid,
source,
device_no,
addition,
bind_default_scene,
force_empty_device,
password,
device_model,
device_state,
rec_type,
online_state,
version_no,
last_active_time,
has_register,
state,
remark,
is_del,
create_by,
create_time,
update_by,
update_time,
#{id},
#{comId},
#{projectId},
#{name},
#{tag},
#{sceneGuid},
#{source},
#{deviceNo},
#{addition},
#{bindDefaultScene},
#{forceEmptyDevice},
#{password},
#{deviceModel},
#{deviceState},
#{recType},
#{onlineState},
#{versionNo},
#{lastActiveTime},
#{hasRegister},
#{state},
#{remark},
#{isDel},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update attendance_ubi_device
com_id = #{comId},
project_id = #{projectId},
name = #{name},
tag = #{tag},
scene_guid = #{sceneGuid},
source = #{source},
device_no = #{deviceNo},
addition = #{addition},
bind_default_scene = #{bindDefaultScene},
force_empty_device = #{forceEmptyDevice},
password = #{password},
device_model = #{deviceModel},
device_state = #{deviceState},
rec_type = #{recType},
online_state = #{onlineState},
version_no = #{versionNo},
last_active_time = #{lastActiveTime},
has_register = #{hasRegister},
state = #{state},
remark = #{remark},
is_del = #{isDel},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}
delete from attendance_ubi_device where id = #{id}
delete from attendance_ubi_device where id in
#{id}