|
|
@ -16,6 +16,7 @@ |
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
<result column="building_id" jdbcType="BIGINT" property="buildingId" /> |
|
|
<result column="building_id" jdbcType="BIGINT" property="buildingId" /> |
|
|
<result column="asset_id" jdbcType="BIGINT" property="assetId" /> |
|
|
<result column="asset_id" jdbcType="BIGINT" property="assetId" /> |
|
|
|
|
|
<result column="gateway_client_id" jdbcType="INTEGER" property="gatewayClientId" /> |
|
|
<result column="flag" jdbcType="INTEGER" property="flag" /> |
|
|
<result column="flag" jdbcType="INTEGER" property="flag" /> |
|
|
<result column="company_id" jdbcType="BIGINT" property="companyId" /> |
|
|
<result column="company_id" jdbcType="BIGINT" property="companyId" /> |
|
|
<result column="created_by" jdbcType="BIGINT" property="createdBy" /> |
|
|
<result column="created_by" jdbcType="BIGINT" property="createdBy" /> |
|
|
@ -111,9 +112,9 @@ |
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
--> |
|
|
--> |
|
|
id, device_id, device_sn, type_id, wsclient_id, space_id, device_name, remark, building_id, |
|
|
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, |
|
|
asset_id, gateway_client_id, flag, company_id, created_by, created_timestamp, updated_by, |
|
|
project_id, floor_id, monitoring_point_name, monitoring_point_category_id, data_provider_id, |
|
|
updated_timestamp, project_id, floor_id, monitoring_point_name, monitoring_point_category_id, |
|
|
gateway_info_id, alarm_level, retain_alert, unit |
|
|
data_provider_id, gateway_info_id, alarm_level, retain_alert, unit |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Blob_Column_List"> |
|
|
<sql id="Blob_Column_List"> |
|
|
<!-- |
|
|
<!-- |
|
|
@ -203,21 +204,23 @@ |
|
|
insert into device_info (device_id, device_sn, type_id, |
|
|
insert into device_info (device_id, device_sn, type_id, |
|
|
wsclient_id, space_id, device_name, |
|
|
wsclient_id, space_id, device_name, |
|
|
remark, building_id, asset_id, |
|
|
remark, building_id, asset_id, |
|
|
flag, company_id, created_by, |
|
|
gateway_client_id, flag, company_id, |
|
|
created_timestamp, updated_by, updated_timestamp, |
|
|
created_by, created_timestamp, updated_by, |
|
|
project_id, floor_id, monitoring_point_name, |
|
|
updated_timestamp, project_id, floor_id, |
|
|
monitoring_point_category_id, data_provider_id, |
|
|
monitoring_point_name, monitoring_point_category_id, |
|
|
gateway_info_id, alarm_level, retain_alert, |
|
|
data_provider_id, gateway_info_id, alarm_level, |
|
|
unit, data_mapping) |
|
|
retain_alert, unit, data_mapping |
|
|
|
|
|
) |
|
|
values (#{deviceId,jdbcType=VARCHAR}, #{deviceSn,jdbcType=VARCHAR}, #{typeId,jdbcType=INTEGER}, |
|
|
values (#{deviceId,jdbcType=VARCHAR}, #{deviceSn,jdbcType=VARCHAR}, #{typeId,jdbcType=INTEGER}, |
|
|
#{wsclientId,jdbcType=INTEGER}, #{spaceId,jdbcType=BIGINT}, #{deviceName,jdbcType=VARCHAR}, |
|
|
#{wsclientId,jdbcType=INTEGER}, #{spaceId,jdbcType=BIGINT}, #{deviceName,jdbcType=VARCHAR}, |
|
|
#{remark,jdbcType=VARCHAR}, #{buildingId,jdbcType=BIGINT}, #{assetId,jdbcType=BIGINT}, |
|
|
#{remark,jdbcType=VARCHAR}, #{buildingId,jdbcType=BIGINT}, #{assetId,jdbcType=BIGINT}, |
|
|
#{flag,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, #{createdBy,jdbcType=BIGINT}, |
|
|
#{gatewayClientId,jdbcType=INTEGER}, #{flag,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, |
|
|
#{createdTimestamp,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}, #{updatedTimestamp,jdbcType=BIGINT}, |
|
|
#{createdBy,jdbcType=BIGINT}, #{createdTimestamp,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}, |
|
|
#{projectId,jdbcType=BIGINT}, #{floorId,jdbcType=BIGINT}, #{monitoringPointName,jdbcType=VARCHAR}, |
|
|
#{updatedTimestamp,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{floorId,jdbcType=BIGINT}, |
|
|
#{monitoringPointCategoryId,jdbcType=BIGINT}, #{dataProviderId,jdbcType=BIGINT}, |
|
|
#{monitoringPointName,jdbcType=VARCHAR}, #{monitoringPointCategoryId,jdbcType=BIGINT}, |
|
|
#{gatewayInfoId,jdbcType=BIGINT}, #{alarmLevel,jdbcType=INTEGER}, #{retainAlert,jdbcType=INTEGER}, |
|
|
#{dataProviderId,jdbcType=BIGINT}, #{gatewayInfoId,jdbcType=BIGINT}, #{alarmLevel,jdbcType=INTEGER}, |
|
|
#{unit,jdbcType=VARCHAR}, #{dataMapping,jdbcType=LONGVARCHAR}) |
|
|
#{retainAlert,jdbcType=INTEGER}, #{unit,jdbcType=VARCHAR}, #{dataMapping,jdbcType=LONGVARCHAR} |
|
|
|
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.techsor.datacenter.business.model.DeviceInfo"> |
|
|
<insert id="insertSelective" parameterType="com.techsor.datacenter.business.model.DeviceInfo"> |
|
|
<!-- |
|
|
<!-- |
|
|
@ -256,6 +259,9 @@ |
|
|
<if test="assetId != null"> |
|
|
<if test="assetId != null"> |
|
|
asset_id, |
|
|
asset_id, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="gatewayClientId != null"> |
|
|
|
|
|
gateway_client_id, |
|
|
|
|
|
</if> |
|
|
<if test="flag != null"> |
|
|
<if test="flag != null"> |
|
|
flag, |
|
|
flag, |
|
|
</if> |
|
|
</if> |
|
|
@ -333,6 +339,9 @@ |
|
|
<if test="assetId != null"> |
|
|
<if test="assetId != null"> |
|
|
#{assetId,jdbcType=BIGINT}, |
|
|
#{assetId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="gatewayClientId != null"> |
|
|
|
|
|
#{gatewayClientId,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
<if test="flag != null"> |
|
|
<if test="flag != null"> |
|
|
#{flag,jdbcType=INTEGER}, |
|
|
#{flag,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
@ -430,6 +439,9 @@ |
|
|
<if test="record.assetId != null"> |
|
|
<if test="record.assetId != null"> |
|
|
asset_id = #{record.assetId,jdbcType=BIGINT}, |
|
|
asset_id = #{record.assetId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.gatewayClientId != null"> |
|
|
|
|
|
gateway_client_id = #{record.gatewayClientId,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
<if test="record.flag != null"> |
|
|
<if test="record.flag != null"> |
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
@ -499,6 +511,7 @@ |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
building_id = #{record.buildingId,jdbcType=BIGINT}, |
|
|
building_id = #{record.buildingId,jdbcType=BIGINT}, |
|
|
asset_id = #{record.assetId,jdbcType=BIGINT}, |
|
|
asset_id = #{record.assetId,jdbcType=BIGINT}, |
|
|
|
|
|
gateway_client_id = #{record.gatewayClientId,jdbcType=INTEGER}, |
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
created_by = #{record.createdBy,jdbcType=BIGINT}, |
|
|
created_by = #{record.createdBy,jdbcType=BIGINT}, |
|
|
@ -535,6 +548,7 @@ |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
building_id = #{record.buildingId,jdbcType=BIGINT}, |
|
|
building_id = #{record.buildingId,jdbcType=BIGINT}, |
|
|
asset_id = #{record.assetId,jdbcType=BIGINT}, |
|
|
asset_id = #{record.assetId,jdbcType=BIGINT}, |
|
|
|
|
|
gateway_client_id = #{record.gatewayClientId,jdbcType=INTEGER}, |
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
created_by = #{record.createdBy,jdbcType=BIGINT}, |
|
|
created_by = #{record.createdBy,jdbcType=BIGINT}, |
|
|
@ -588,6 +602,9 @@ |
|
|
<if test="assetId != null"> |
|
|
<if test="assetId != null"> |
|
|
asset_id = #{assetId,jdbcType=BIGINT}, |
|
|
asset_id = #{assetId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="gatewayClientId != null"> |
|
|
|
|
|
gateway_client_id = #{gatewayClientId,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
<if test="flag != null"> |
|
|
<if test="flag != null"> |
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
@ -654,6 +671,7 @@ |
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
building_id = #{buildingId,jdbcType=BIGINT}, |
|
|
building_id = #{buildingId,jdbcType=BIGINT}, |
|
|
asset_id = #{assetId,jdbcType=BIGINT}, |
|
|
asset_id = #{assetId,jdbcType=BIGINT}, |
|
|
|
|
|
gateway_client_id = #{gatewayClientId,jdbcType=INTEGER}, |
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
company_id = #{companyId,jdbcType=BIGINT}, |
|
|
company_id = #{companyId,jdbcType=BIGINT}, |
|
|
created_by = #{createdBy,jdbcType=BIGINT}, |
|
|
created_by = #{createdBy,jdbcType=BIGINT}, |
|
|
@ -687,6 +705,7 @@ |
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
building_id = #{buildingId,jdbcType=BIGINT}, |
|
|
building_id = #{buildingId,jdbcType=BIGINT}, |
|
|
asset_id = #{assetId,jdbcType=BIGINT}, |
|
|
asset_id = #{assetId,jdbcType=BIGINT}, |
|
|
|
|
|
gateway_client_id = #{gatewayClientId,jdbcType=INTEGER}, |
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
company_id = #{companyId,jdbcType=BIGINT}, |
|
|
company_id = #{companyId,jdbcType=BIGINT}, |
|
|
created_by = #{createdBy,jdbcType=BIGINT}, |
|
|
created_by = #{createdBy,jdbcType=BIGINT}, |
|
|
|