|
|
|
|
@ -20,6 +20,10 @@
|
|
|
|
|
<result property="updatedTime" column="updated_time"/>
|
|
|
|
|
<result property="deviceName" column="device_name"/>
|
|
|
|
|
<result property="productLineName" column="PRODUCT_LINE_NAME"/>
|
|
|
|
|
<result property="upperLimit" column="upper_limit"/>
|
|
|
|
|
<result property="lowerLimit" column="lower_limit"/>
|
|
|
|
|
<result property="alertLevel" column="alert_level"/>
|
|
|
|
|
<result property="alertEnabled" column="alert_enabled"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBaseDeviceParamVo">
|
|
|
|
|
@ -31,6 +35,10 @@
|
|
|
|
|
dp.param_type,
|
|
|
|
|
dp.device_code,
|
|
|
|
|
dp.read_frequency,
|
|
|
|
|
dp.upper_limit,
|
|
|
|
|
dp.lower_limit,
|
|
|
|
|
dp.alert_level,
|
|
|
|
|
dp.alert_enabled,
|
|
|
|
|
dp.is_flag,
|
|
|
|
|
dp.created_by,
|
|
|
|
|
dp.created_time,
|
|
|
|
|
@ -96,6 +104,10 @@
|
|
|
|
|
<if test="paramType != null">param_type,</if>
|
|
|
|
|
<if test="deviceCode != null">device_code,</if>
|
|
|
|
|
<if test="readFrequency != null">read_frequency,</if>
|
|
|
|
|
<if test="upperLimit != null">upper_limit,</if>
|
|
|
|
|
<if test="lowerLimit != null">lower_limit,</if>
|
|
|
|
|
<if test="alertLevel != null">alert_level,</if>
|
|
|
|
|
<if test="alertEnabled != null">alert_enabled,</if>
|
|
|
|
|
<if test="isFlag != null">is_flag,</if>
|
|
|
|
|
<if test="createdBy != null">created_by,</if>
|
|
|
|
|
<if test="createdTime != null">created_time,</if>
|
|
|
|
|
@ -111,6 +123,10 @@
|
|
|
|
|
<if test="paramType != null">#{paramType},</if>
|
|
|
|
|
<if test="deviceCode != null">#{deviceCode},</if>
|
|
|
|
|
<if test="readFrequency != null">#{readFrequency},</if>
|
|
|
|
|
<if test="upperLimit != null">#{upperLimit},</if>
|
|
|
|
|
<if test="lowerLimit != null">#{lowerLimit},</if>
|
|
|
|
|
<if test="alertLevel != null">#{alertLevel},</if>
|
|
|
|
|
<if test="alertEnabled != null">#{alertEnabled},</if>
|
|
|
|
|
<if test="isFlag != null">#{isFlag},</if>
|
|
|
|
|
<if test="createdBy != null">#{createdBy},</if>
|
|
|
|
|
<if test="createdTime != null">#{createdTime},</if>
|
|
|
|
|
@ -129,6 +145,10 @@
|
|
|
|
|
<if test="paramType != null">param_type = #{paramType},</if>
|
|
|
|
|
<if test="deviceCode != null">device_code = #{deviceCode},</if>
|
|
|
|
|
<if test="readFrequency != null">read_frequency = #{readFrequency},</if>
|
|
|
|
|
<if test="upperLimit != null">upper_limit = #{upperLimit},</if>
|
|
|
|
|
<if test="lowerLimit != null">lower_limit = #{lowerLimit},</if>
|
|
|
|
|
<if test="alertLevel != null">alert_level = #{alertLevel},</if>
|
|
|
|
|
<if test="alertEnabled != null">alert_enabled = #{alertEnabled},</if>
|
|
|
|
|
<if test="isFlag != null">is_flag = #{isFlag},</if>
|
|
|
|
|
<if test="createdBy != null">created_by = #{createdBy},</if>
|
|
|
|
|
<if test="createdTime != null">created_time = #{createdTime},</if>
|
|
|
|
|
|