and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} id, device_id, device_sn, type_id, wsclient_id, space_id, device_name, remark, building_id, asset_id, flag, company_id, created_by, created_timestamp, updated_by, updated_timestamp, project_id, floor_id, monitoring_point_name, monitoring_point_category_id, data_provider_id, gateway_info_id, alarm_level, retain_alert, unit data_mapping delete from device_info where id = #{id,jdbcType=INTEGER} delete from device_info SELECT LAST_INSERT_ID() insert into device_info (device_id, device_sn, type_id, wsclient_id, space_id, device_name, remark, building_id, asset_id, flag, company_id, created_by, created_timestamp, updated_by, updated_timestamp, project_id, floor_id, monitoring_point_name, monitoring_point_category_id, data_provider_id, gateway_info_id, alarm_level, retain_alert, unit, data_mapping) values (#{deviceId,jdbcType=VARCHAR}, #{deviceSn,jdbcType=VARCHAR}, #{typeId,jdbcType=INTEGER}, #{wsclientId,jdbcType=INTEGER}, #{spaceId,jdbcType=BIGINT}, #{deviceName,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{buildingId,jdbcType=BIGINT}, #{assetId,jdbcType=BIGINT}, #{flag,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, #{createdBy,jdbcType=BIGINT}, #{createdTimestamp,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}, #{updatedTimestamp,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{floorId,jdbcType=BIGINT}, #{monitoringPointName,jdbcType=VARCHAR}, #{monitoringPointCategoryId,jdbcType=BIGINT}, #{dataProviderId,jdbcType=BIGINT}, #{gatewayInfoId,jdbcType=BIGINT}, #{alarmLevel,jdbcType=INTEGER}, #{retainAlert,jdbcType=INTEGER}, #{unit,jdbcType=VARCHAR}, #{dataMapping,jdbcType=LONGVARCHAR}) SELECT LAST_INSERT_ID() insert into device_info device_id, device_sn, type_id, wsclient_id, space_id, device_name, remark, building_id, asset_id, flag, company_id, created_by, created_timestamp, updated_by, updated_timestamp, project_id, floor_id, monitoring_point_name, monitoring_point_category_id, data_provider_id, gateway_info_id, alarm_level, retain_alert, unit, data_mapping, #{deviceId,jdbcType=VARCHAR}, #{deviceSn,jdbcType=VARCHAR}, #{typeId,jdbcType=INTEGER}, #{wsclientId,jdbcType=INTEGER}, #{spaceId,jdbcType=BIGINT}, #{deviceName,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{buildingId,jdbcType=BIGINT}, #{assetId,jdbcType=BIGINT}, #{flag,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, #{createdBy,jdbcType=BIGINT}, #{createdTimestamp,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}, #{updatedTimestamp,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{floorId,jdbcType=BIGINT}, #{monitoringPointName,jdbcType=VARCHAR}, #{monitoringPointCategoryId,jdbcType=BIGINT}, #{dataProviderId,jdbcType=BIGINT}, #{gatewayInfoId,jdbcType=BIGINT}, #{alarmLevel,jdbcType=INTEGER}, #{retainAlert,jdbcType=INTEGER}, #{unit,jdbcType=VARCHAR}, #{dataMapping,jdbcType=LONGVARCHAR}, update device_info id = #{record.id,jdbcType=INTEGER}, device_id = #{record.deviceId,jdbcType=VARCHAR}, device_sn = #{record.deviceSn,jdbcType=VARCHAR}, type_id = #{record.typeId,jdbcType=INTEGER}, wsclient_id = #{record.wsclientId,jdbcType=INTEGER}, space_id = #{record.spaceId,jdbcType=BIGINT}, device_name = #{record.deviceName,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR}, building_id = #{record.buildingId,jdbcType=BIGINT}, asset_id = #{record.assetId,jdbcType=BIGINT}, flag = #{record.flag,jdbcType=INTEGER}, company_id = #{record.companyId,jdbcType=BIGINT}, created_by = #{record.createdBy,jdbcType=BIGINT}, created_timestamp = #{record.createdTimestamp,jdbcType=TIMESTAMP}, updated_by = #{record.updatedBy,jdbcType=BIGINT}, updated_timestamp = #{record.updatedTimestamp,jdbcType=BIGINT}, project_id = #{record.projectId,jdbcType=BIGINT}, floor_id = #{record.floorId,jdbcType=BIGINT}, monitoring_point_name = #{record.monitoringPointName,jdbcType=VARCHAR}, monitoring_point_category_id = #{record.monitoringPointCategoryId,jdbcType=BIGINT}, data_provider_id = #{record.dataProviderId,jdbcType=BIGINT}, gateway_info_id = #{record.gatewayInfoId,jdbcType=BIGINT}, alarm_level = #{record.alarmLevel,jdbcType=INTEGER}, retain_alert = #{record.retainAlert,jdbcType=INTEGER}, unit = #{record.unit,jdbcType=VARCHAR}, data_mapping = #{record.dataMapping,jdbcType=LONGVARCHAR}, update device_info set id = #{record.id,jdbcType=INTEGER}, device_id = #{record.deviceId,jdbcType=VARCHAR}, device_sn = #{record.deviceSn,jdbcType=VARCHAR}, type_id = #{record.typeId,jdbcType=INTEGER}, wsclient_id = #{record.wsclientId,jdbcType=INTEGER}, space_id = #{record.spaceId,jdbcType=BIGINT}, device_name = #{record.deviceName,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR}, building_id = #{record.buildingId,jdbcType=BIGINT}, asset_id = #{record.assetId,jdbcType=BIGINT}, flag = #{record.flag,jdbcType=INTEGER}, company_id = #{record.companyId,jdbcType=BIGINT}, created_by = #{record.createdBy,jdbcType=BIGINT}, created_timestamp = #{record.createdTimestamp,jdbcType=TIMESTAMP}, updated_by = #{record.updatedBy,jdbcType=BIGINT}, updated_timestamp = #{record.updatedTimestamp,jdbcType=BIGINT}, project_id = #{record.projectId,jdbcType=BIGINT}, floor_id = #{record.floorId,jdbcType=BIGINT}, monitoring_point_name = #{record.monitoringPointName,jdbcType=VARCHAR}, monitoring_point_category_id = #{record.monitoringPointCategoryId,jdbcType=BIGINT}, data_provider_id = #{record.dataProviderId,jdbcType=BIGINT}, gateway_info_id = #{record.gatewayInfoId,jdbcType=BIGINT}, alarm_level = #{record.alarmLevel,jdbcType=INTEGER}, retain_alert = #{record.retainAlert,jdbcType=INTEGER}, unit = #{record.unit,jdbcType=VARCHAR}, data_mapping = #{record.dataMapping,jdbcType=LONGVARCHAR} update device_info set id = #{record.id,jdbcType=INTEGER}, device_id = #{record.deviceId,jdbcType=VARCHAR}, device_sn = #{record.deviceSn,jdbcType=VARCHAR}, type_id = #{record.typeId,jdbcType=INTEGER}, wsclient_id = #{record.wsclientId,jdbcType=INTEGER}, space_id = #{record.spaceId,jdbcType=BIGINT}, device_name = #{record.deviceName,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR}, building_id = #{record.buildingId,jdbcType=BIGINT}, asset_id = #{record.assetId,jdbcType=BIGINT}, flag = #{record.flag,jdbcType=INTEGER}, company_id = #{record.companyId,jdbcType=BIGINT}, created_by = #{record.createdBy,jdbcType=BIGINT}, created_timestamp = #{record.createdTimestamp,jdbcType=TIMESTAMP}, updated_by = #{record.updatedBy,jdbcType=BIGINT}, updated_timestamp = #{record.updatedTimestamp,jdbcType=BIGINT}, project_id = #{record.projectId,jdbcType=BIGINT}, floor_id = #{record.floorId,jdbcType=BIGINT}, monitoring_point_name = #{record.monitoringPointName,jdbcType=VARCHAR}, monitoring_point_category_id = #{record.monitoringPointCategoryId,jdbcType=BIGINT}, data_provider_id = #{record.dataProviderId,jdbcType=BIGINT}, gateway_info_id = #{record.gatewayInfoId,jdbcType=BIGINT}, alarm_level = #{record.alarmLevel,jdbcType=INTEGER}, retain_alert = #{record.retainAlert,jdbcType=INTEGER}, unit = #{record.unit,jdbcType=VARCHAR} update device_info device_id = #{deviceId,jdbcType=VARCHAR}, device_sn = #{deviceSn,jdbcType=VARCHAR}, type_id = #{typeId,jdbcType=INTEGER}, wsclient_id = #{wsclientId,jdbcType=INTEGER}, space_id = #{spaceId,jdbcType=BIGINT}, device_name = #{deviceName,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR}, building_id = #{buildingId,jdbcType=BIGINT}, asset_id = #{assetId,jdbcType=BIGINT}, flag = #{flag,jdbcType=INTEGER}, company_id = #{companyId,jdbcType=BIGINT}, created_by = #{createdBy,jdbcType=BIGINT}, created_timestamp = #{createdTimestamp,jdbcType=TIMESTAMP}, updated_by = #{updatedBy,jdbcType=BIGINT}, updated_timestamp = #{updatedTimestamp,jdbcType=BIGINT}, project_id = #{projectId,jdbcType=BIGINT}, floor_id = #{floorId,jdbcType=BIGINT}, monitoring_point_name = #{monitoringPointName,jdbcType=VARCHAR}, monitoring_point_category_id = #{monitoringPointCategoryId,jdbcType=BIGINT}, data_provider_id = #{dataProviderId,jdbcType=BIGINT}, gateway_info_id = #{gatewayInfoId,jdbcType=BIGINT}, alarm_level = #{alarmLevel,jdbcType=INTEGER}, retain_alert = #{retainAlert,jdbcType=INTEGER}, unit = #{unit,jdbcType=VARCHAR}, data_mapping = #{dataMapping,jdbcType=LONGVARCHAR}, where id = #{id,jdbcType=INTEGER} update device_info set device_id = #{deviceId,jdbcType=VARCHAR}, device_sn = #{deviceSn,jdbcType=VARCHAR}, type_id = #{typeId,jdbcType=INTEGER}, wsclient_id = #{wsclientId,jdbcType=INTEGER}, space_id = #{spaceId,jdbcType=BIGINT}, device_name = #{deviceName,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR}, building_id = #{buildingId,jdbcType=BIGINT}, asset_id = #{assetId,jdbcType=BIGINT}, flag = #{flag,jdbcType=INTEGER}, company_id = #{companyId,jdbcType=BIGINT}, created_by = #{createdBy,jdbcType=BIGINT}, created_timestamp = #{createdTimestamp,jdbcType=TIMESTAMP}, updated_by = #{updatedBy,jdbcType=BIGINT}, updated_timestamp = #{updatedTimestamp,jdbcType=BIGINT}, project_id = #{projectId,jdbcType=BIGINT}, floor_id = #{floorId,jdbcType=BIGINT}, monitoring_point_name = #{monitoringPointName,jdbcType=VARCHAR}, monitoring_point_category_id = #{monitoringPointCategoryId,jdbcType=BIGINT}, data_provider_id = #{dataProviderId,jdbcType=BIGINT}, gateway_info_id = #{gatewayInfoId,jdbcType=BIGINT}, alarm_level = #{alarmLevel,jdbcType=INTEGER}, retain_alert = #{retainAlert,jdbcType=INTEGER}, unit = #{unit,jdbcType=VARCHAR}, data_mapping = #{dataMapping,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=INTEGER} update device_info set device_id = #{deviceId,jdbcType=VARCHAR}, device_sn = #{deviceSn,jdbcType=VARCHAR}, type_id = #{typeId,jdbcType=INTEGER}, wsclient_id = #{wsclientId,jdbcType=INTEGER}, space_id = #{spaceId,jdbcType=BIGINT}, device_name = #{deviceName,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR}, building_id = #{buildingId,jdbcType=BIGINT}, asset_id = #{assetId,jdbcType=BIGINT}, flag = #{flag,jdbcType=INTEGER}, company_id = #{companyId,jdbcType=BIGINT}, created_by = #{createdBy,jdbcType=BIGINT}, created_timestamp = #{createdTimestamp,jdbcType=TIMESTAMP}, updated_by = #{updatedBy,jdbcType=BIGINT}, updated_timestamp = #{updatedTimestamp,jdbcType=BIGINT}, project_id = #{projectId,jdbcType=BIGINT}, floor_id = #{floorId,jdbcType=BIGINT}, monitoring_point_name = #{monitoringPointName,jdbcType=VARCHAR}, monitoring_point_category_id = #{monitoringPointCategoryId,jdbcType=BIGINT}, data_provider_id = #{dataProviderId,jdbcType=BIGINT}, gateway_info_id = #{gatewayInfoId,jdbcType=BIGINT}, alarm_level = #{alarmLevel,jdbcType=INTEGER}, retain_alert = #{retainAlert,jdbcType=INTEGER}, unit = #{unit,jdbcType=VARCHAR} where id = #{id,jdbcType=INTEGER}