@ -19,6 +19,8 @@
<result column= "data_amount_threshold_alarm" jdbcType= "INTEGER" property= "dataAmountThresholdAlarm" />
<result column= "data_amount_threshold_alarm" jdbcType= "INTEGER" property= "dataAmountThresholdAlarm" />
<result column= "data_accumulated_totals" jdbcType= "INTEGER" property= "dataAccumulatedTotals" />
<result column= "data_accumulated_totals" jdbcType= "INTEGER" property= "dataAccumulatedTotals" />
<result column= "alert_switch" jdbcType= "INTEGER" property= "alertSwitch" />
<result column= "alert_switch" jdbcType= "INTEGER" property= "alertSwitch" />
<result column= "project_id" jdbcType= "BIGINT" property= "projectId" />
<result column= "building_id" jdbcType= "BIGINT" property= "buildingId" />
</resultMap>
</resultMap>
<sql id= "Example_Where_Clause" >
<sql id= "Example_Where_Clause" >
<!--
<!--
@ -93,7 +95,7 @@
-->
-->
id, client_id, client_name, address, online_status, last_updata_ts, create_ts, flag,
id, client_id, client_name, address, online_status, last_updata_ts, create_ts, flag,
company_id, data_amount_threshold, data_amount_threshold_alarm, data_accumulated_totals,
company_id, data_amount_threshold, data_amount_threshold_alarm, data_accumulated_totals,
alert_switch
alert_switch, project_id, building_id
</sql>
</sql>
<select id= "selectByExample" parameterType= "com.techsor.datacenter.business.model.GatewayClientsExample" resultMap= "BaseResultMap" >
<select id= "selectByExample" parameterType= "com.techsor.datacenter.business.model.GatewayClientsExample" resultMap= "BaseResultMap" >
<!--
<!--
@ -154,12 +156,14 @@
online_status, last_updata_ts, create_ts,
online_status, last_updata_ts, create_ts,
flag, company_id, data_amount_threshold,
flag, company_id, data_amount_threshold,
data_amount_threshold_alarm, data_accumulated_totals,
data_amount_threshold_alarm, data_accumulated_totals,
alert_switch)
alert_switch, project_id, building_id
)
values (#{clientId,jdbcType=VARCHAR}, #{clientName,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
values (#{clientId,jdbcType=VARCHAR}, #{clientName,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
#{onlineStatus,jdbcType=INTEGER}, #{lastUpdataTs,jdbcType=BIGINT}, #{createTs,jdbcType=BIGINT},
#{onlineStatus,jdbcType=INTEGER}, #{lastUpdataTs,jdbcType=BIGINT}, #{createTs,jdbcType=BIGINT},
#{flag,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, #{dataAmountThreshold,jdbcType=INTEGER},
#{flag,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, #{dataAmountThreshold,jdbcType=INTEGER},
#{dataAmountThresholdAlarm,jdbcType=INTEGER}, #{dataAccumulatedTotals,jdbcType=INTEGER},
#{dataAmountThresholdAlarm,jdbcType=INTEGER}, #{dataAccumulatedTotals,jdbcType=INTEGER},
#{alertSwitch,jdbcType=INTEGER})
#{alertSwitch,jdbcType=INTEGER}, #{projectId,jdbcType=BIGINT}, #{buildingId,jdbcType=BIGINT}
)
</insert>
</insert>
<insert id= "insertSelective" parameterType= "com.techsor.datacenter.business.model.GatewayClients" >
<insert id= "insertSelective" parameterType= "com.techsor.datacenter.business.model.GatewayClients" >
<!--
<!--
@ -207,6 +211,12 @@
<if test= "alertSwitch != null" >
<if test= "alertSwitch != null" >
alert_switch,
alert_switch,
</if>
</if>
<if test= "projectId != null" >
project_id,
</if>
<if test= "buildingId != null" >
building_id,
</if>
</trim>
</trim>
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "clientId != null" >
<if test= "clientId != null" >
@ -245,6 +255,12 @@
<if test= "alertSwitch != null" >
<if test= "alertSwitch != null" >
#{alertSwitch,jdbcType=INTEGER},
#{alertSwitch,jdbcType=INTEGER},
</if>
</if>
<if test= "projectId != null" >
#{projectId,jdbcType=BIGINT},
</if>
<if test= "buildingId != null" >
#{buildingId,jdbcType=BIGINT},
</if>
</trim>
</trim>
</insert>
</insert>
<select id= "countByExample" parameterType= "com.techsor.datacenter.business.model.GatewayClientsExample" resultType= "java.lang.Long" >
<select id= "countByExample" parameterType= "com.techsor.datacenter.business.model.GatewayClientsExample" resultType= "java.lang.Long" >
@ -303,6 +319,12 @@
<if test= "record.alertSwitch != null" >
<if test= "record.alertSwitch != null" >
alert_switch = #{record.alertSwitch,jdbcType=INTEGER},
alert_switch = #{record.alertSwitch,jdbcType=INTEGER},
</if>
</if>
<if test= "record.projectId != null" >
project_id = #{record.projectId,jdbcType=BIGINT},
</if>
<if test= "record.buildingId != null" >
building_id = #{record.buildingId,jdbcType=BIGINT},
</if>
</set>
</set>
<if test= "_parameter != null" >
<if test= "_parameter != null" >
<include refid= "Update_By_Example_Where_Clause" />
<include refid= "Update_By_Example_Where_Clause" />
@ -326,7 +348,9 @@
data_amount_threshold = #{record.dataAmountThreshold,jdbcType=INTEGER},
data_amount_threshold = #{record.dataAmountThreshold,jdbcType=INTEGER},
data_amount_threshold_alarm = #{record.dataAmountThresholdAlarm,jdbcType=INTEGER},
data_amount_threshold_alarm = #{record.dataAmountThresholdAlarm,jdbcType=INTEGER},
data_accumulated_totals = #{record.dataAccumulatedTotals,jdbcType=INTEGER},
data_accumulated_totals = #{record.dataAccumulatedTotals,jdbcType=INTEGER},
alert_switch = #{record.alertSwitch,jdbcType=INTEGER}
alert_switch = #{record.alertSwitch,jdbcType=INTEGER},
project_id = #{record.projectId,jdbcType=BIGINT},
building_id = #{record.buildingId,jdbcType=BIGINT}
<if test= "_parameter != null" >
<if test= "_parameter != null" >
<include refid= "Update_By_Example_Where_Clause" />
<include refid= "Update_By_Example_Where_Clause" />
</if>
</if>
@ -374,6 +398,12 @@
<if test= "alertSwitch != null" >
<if test= "alertSwitch != null" >
alert_switch = #{alertSwitch,jdbcType=INTEGER},
alert_switch = #{alertSwitch,jdbcType=INTEGER},
</if>
</if>
<if test= "projectId != null" >
project_id = #{projectId,jdbcType=BIGINT},
</if>
<if test= "buildingId != null" >
building_id = #{buildingId,jdbcType=BIGINT},
</if>
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
@ -394,7 +424,9 @@
data_amount_threshold = #{dataAmountThreshold,jdbcType=INTEGER},
data_amount_threshold = #{dataAmountThreshold,jdbcType=INTEGER},
data_amount_threshold_alarm = #{dataAmountThresholdAlarm,jdbcType=INTEGER},
data_amount_threshold_alarm = #{dataAmountThresholdAlarm,jdbcType=INTEGER},
data_accumulated_totals = #{dataAccumulatedTotals,jdbcType=INTEGER},
data_accumulated_totals = #{dataAccumulatedTotals,jdbcType=INTEGER},
alert_switch = #{alertSwitch,jdbcType=INTEGER}
alert_switch = #{alertSwitch,jdbcType=INTEGER},
project_id = #{projectId,jdbcType=BIGINT},
building_id = #{buildingId,jdbcType=BIGINT}
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
</mapper>
</mapper>