insert into psdc_device(user_id,device_type,device_sn,device_name,hard_version,soft_version,device_address,start_time,device_status,photo_url,create_by,create_time,update_by,update_time)
values (#{userId},#{deviceType},#{deviceSn},#{deviceName},#{hardVersion},#{softVersion},#{deviceAddress},#{startTime},#{deviceStatus},#{photoUrl},#{createBy},#{createTime},#{updateBy},#{updateTime})
update psdc_device
device_id = #{deviceId},
user_id = #{userId},
device_type = #{deviceType},
device_sn = #{deviceSn},
device_name = #{deviceName},
hard_version = #{hardVersion},
soft_version = #{softVersion},
device_address = #{deviceAddress},
start_time = #{startTime},
device_status = #{deviceStatus},
photo_url = #{photoUrl},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where device_id = #{deviceId}
delete from psdc_device where device_id = #{deviceId}