新增设备点位数据转换公式字段
This commit is contained in:
@ -26,10 +26,13 @@
|
||||
<result property="remark" column="remark" />
|
||||
<result property="isAlarm" column="is_alarm" />
|
||||
<result property="deviceId" column="device_id" />
|
||||
<result property="a" column="a" />
|
||||
<result property="k" column="k" />
|
||||
<result property="b" column="b" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmsPointMatchVo">
|
||||
select id, point_name, match_table, match_field, site_id, device_category, data_point, data_point_name, data_device, data_unit, ip_address, ip_port, data_type, need_diff_device_id, create_by, create_time, update_by, update_time, remark, is_alarm, device_id from ems_point_match
|
||||
select id, point_name, match_table, match_field, site_id, device_category, data_point, data_point_name, data_device, data_unit, ip_address, ip_port, data_type, need_diff_device_id, create_by, create_time, update_by, update_time, remark, is_alarm, device_id, a, k, b from ems_point_match
|
||||
</sql>
|
||||
|
||||
<select id="selectEmsPointMatchList" parameterType="EmsPointMatch" resultMap="EmsPointMatchResult">
|
||||
@ -79,6 +82,9 @@
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="isAlarm != null">is_alarm,</if>
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="a != null">a,</if>
|
||||
<if test="k != null">k,</if>
|
||||
<if test="b != null">b,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="pointName != null">#{pointName},</if>
|
||||
@ -101,6 +107,9 @@
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="isAlarm != null">#{isAlarm},</if>
|
||||
<if test="deviceId != null">#{deviceId},</if>
|
||||
<if test="a != null">#{a},</if>
|
||||
<if test="k != null">#{k},</if>
|
||||
<if test="b != null">#{b},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -127,6 +136,9 @@
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="isAlarm != null">is_alarm = #{isAlarm},</if>
|
||||
<if test="deviceId != null">device_id = #{deviceId},</if>
|
||||
<if test="a != null">a = #{a},</if>
|
||||
<if test="k != null">k = #{k},</if>
|
||||
<if test="b != null">b = #{b},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@ -522,7 +534,8 @@
|
||||
data_point_name as dataPointName,
|
||||
data_unit as dataUnit,
|
||||
is_alarm as isAlarm,
|
||||
ip_address as ipAddress
|
||||
ip_address as ipAddress,
|
||||
a, k, b
|
||||
from
|
||||
ems_point_match
|
||||
<where>
|
||||
|
||||
Reference in New Issue
Block a user