insert into psdc_device(user_id, device_type, device_sn, device_name, hard_version, soft_version, device_address, start_time, device_status, device_runstatus, photo_url, create_by, create_time, update_by, update_time) values (#{userId}, #{deviceType}, #{deviceSn}, #{deviceName}, #{hardVersion}, #{softVersion}, #{deviceAddress}, #{startTime}, #{deviceStatus}, #{deviceRunstatus}, #{photoUrl}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}) Insert into psdc_device(user_id, device_type, device_sn, device_name, hard_version, soft_version, device_address, start_time, device_status, device_runstatus, photo_url, create_by, create_time, update_by, update_time) Values (NULL, #{entity.deviceType}, #{entity.deviceSn}, #{entity.deviceName}, #{entity.hardVersion}, #{entity.softVersion}, #{entity.deviceAddress}, #{entity.startTime}, #{entity.deviceStatus}, #{entity.deviceRunstatus}, #{entity.photoUrl}, #{entity.createBy}, #{entity.createTime}, NULL, NULL) 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}, device_runstatus = #{deviceRunstatus}, 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 in #{id} update psdc_device set device_runstatus = #{runStatus} where device_id = #{deviceId}