first commit
This commit is contained in:
@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="scada.MPointHistoryMapper" >
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.scada.MPointHistory" >
|
||||
<id column="ItemID" property="itemid" jdbcType="BIGINT" />
|
||||
<!-- <result column="ParmValue" property="parmvalue" jdbcType="DECIMAL" />-->
|
||||
<result column="MeasureDT" property="measuredt" jdbcType="TIMESTAMP" />
|
||||
<result column="memotype" property="memotype" jdbcType="VARCHAR" />
|
||||
<result column="memo" property="memo" jdbcType="VARCHAR" />
|
||||
<result column="userid" property="userid" jdbcType="VARCHAR" />
|
||||
<result column="insdt" property="insdt" jdbcType="VARCHAR" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List" >
|
||||
ItemID, ParmValue, MeasureDT, memotype, memo, userid, insdt
|
||||
</sql>
|
||||
<!-- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" statementType="STATEMENT">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from ${table}
|
||||
where ItemID = ${itemid,jdbcType=BIGINT}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
||||
delete from TB_MP_modbust
|
||||
where ItemID = #{itemid,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.scada.MPointHistory" >
|
||||
insert into TB_MP_modbust (ItemID, ParmValue, MeasureDT,
|
||||
memotype, memo, userid,
|
||||
insdt)
|
||||
values (#{itemid,jdbcType=BIGINT}, #{parmvalue,jdbcType=DECIMAL}, #{measuredt,jdbcType=TIMESTAMP},
|
||||
#{memotype,jdbcType=VARCHAR}, #{memo,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR},
|
||||
#{insdt,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.scada.MPointHistory" >
|
||||
insert into TB_MP_modbust
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="itemid != null" >
|
||||
ItemID,
|
||||
</if>
|
||||
<if test="parmvalue != null" >
|
||||
ParmValue,
|
||||
</if>
|
||||
<if test="measuredt != null" >
|
||||
MeasureDT,
|
||||
</if>
|
||||
<if test="memotype != null" >
|
||||
memotype,
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
memo,
|
||||
</if>
|
||||
<if test="userid != null" >
|
||||
userid,
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="itemid != null" >
|
||||
#{itemid,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="parmvalue != null" >
|
||||
#{parmvalue,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="measuredt != null" >
|
||||
#{measuredt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="memotype != null" >
|
||||
#{memotype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
#{memo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userid != null" >
|
||||
#{userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
#{insdt,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.scada.MPointHistory" >
|
||||
update TB_MP_modbust
|
||||
<set >
|
||||
<if test="parmvalue != null" >
|
||||
ParmValue = #{parmvalue,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="measuredt != null" >
|
||||
MeasureDT = #{measuredt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="memotype != null" >
|
||||
memotype = #{memotype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="memo != null" >
|
||||
memo = #{memo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userid != null" >
|
||||
userid = #{userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insdt != null" >
|
||||
insdt = #{insdt,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where ItemID = #{itemid,jdbcType=BIGINT}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.scada.MPointHistory" >
|
||||
update TB_MP_modbust
|
||||
set ParmValue = #{parmvalue,jdbcType=DECIMAL},
|
||||
MeasureDT = #{measuredt,jdbcType=TIMESTAMP},
|
||||
memotype = #{memotype,jdbcType=VARCHAR},
|
||||
memo = #{memo,jdbcType=VARCHAR},
|
||||
userid = #{userid,jdbcType=VARCHAR},
|
||||
insdt = #{insdt,jdbcType=VARCHAR}
|
||||
where ItemID = #{itemid,jdbcType=BIGINT}
|
||||
</update> -->
|
||||
<select id="selectListByTableAWhere" parameterType="java.lang.String" resultMap="BaseResultMap" statementType="STATEMENT" >
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from ${table}
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByTableAWhere" parameterType="java.lang.String" statementType="STATEMENT">
|
||||
delete from ${table}
|
||||
${where}
|
||||
</delete>
|
||||
<update id="dropTable">
|
||||
drop table ${table}
|
||||
</update>
|
||||
</mapper>
|
||||
612
bin/target/classes/com/sipai/mapper/scada/MPointMapper.xml
Normal file
612
bin/target/classes/com/sipai/mapper/scada/MPointMapper.xml
Normal file
@ -0,0 +1,612 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="scada.MPointMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sipai.entity.scada.MPoint">
|
||||
<id column="ID" jdbcType="VARCHAR" property="id" />
|
||||
<result column="MPointCode" jdbcType="VARCHAR" property="mpointcode" />
|
||||
<result column="ParmName" jdbcType="VARCHAR" property="parmname" />
|
||||
<result column="Unit" jdbcType="VARCHAR" property="unit" />
|
||||
<result column="alarmmax" jdbcType="DECIMAL" property="alarmmax" />
|
||||
<result column="alarmmin" jdbcType="DECIMAL" property="alarmmin" />
|
||||
<result column="ParmValue" jdbcType="VARCHAR" property="parmvalue" />
|
||||
<result column="MeasureDT" jdbcType="TIMESTAMP" property="measuredt" />
|
||||
<result column="Rate" jdbcType="DECIMAL" property="rate" />
|
||||
<result column="Freq" jdbcType="INTEGER" property="freq" />
|
||||
<result column="SignalType" jdbcType="VARCHAR" property="signaltype" />
|
||||
<result column="LEDType" jdbcType="CHAR" property="ledtype" />
|
||||
<result column="LEDColor" jdbcType="CHAR" property="ledcolor" />
|
||||
<result column="DirectType" jdbcType="CHAR" property="directtype" />
|
||||
<result column="BizType" jdbcType="VARCHAR" property="biztype" />
|
||||
<result column="NumTail" jdbcType="VARCHAR" property="numtail" />
|
||||
<result column="prochour" jdbcType="VARCHAR" property="prochour" />
|
||||
<result column="procday" jdbcType="VARCHAR" property="procday" />
|
||||
<result column="procmonth" jdbcType="VARCHAR" property="procmonth" />
|
||||
<result column="ShowName" jdbcType="CHAR" property="showname" />
|
||||
<result column="exp" jdbcType="VARCHAR" property="exp" />
|
||||
<result column="forcemin" jdbcType="DECIMAL" property="forcemin" />
|
||||
<result column="forcemax" jdbcType="DECIMAL" property="forcemax" />
|
||||
<result column="avgmax" jdbcType="DECIMAL" property="avgmax" />
|
||||
<result column="avgmin" jdbcType="DECIMAL" property="avgmin" />
|
||||
<result column="remoteup" jdbcType="CHAR" property="remoteup" />
|
||||
<result column="morder" jdbcType="INTEGER" property="morder" />
|
||||
<result column="TriggerAlarm" jdbcType="CHAR" property="triggeralarm" />
|
||||
<result column="ConfirmAlarm" jdbcType="CHAR" property="confirmalarm" />
|
||||
<result column="flowset" jdbcType="DECIMAL" property="flowset" />
|
||||
<result column="triggerCycle" jdbcType="CHAR" property="triggercycle" />
|
||||
<result column="cyclemax" jdbcType="DECIMAL" property="cyclemax" />
|
||||
<result column="cyclemin" jdbcType="DECIMAL" property="cyclemin" />
|
||||
<result column="triggerMutation" jdbcType="CHAR" property="triggermutation" />
|
||||
<result column="mutationset" jdbcType="DECIMAL" property="mutationset" />
|
||||
<result column="causeset" jdbcType="DECIMAL" property="causeset" />
|
||||
<result column="operateset" jdbcType="DECIMAL" property="operateset" />
|
||||
<result column="resultset" jdbcType="DECIMAL" property="resultset" />
|
||||
<result column="triggerEquOff" jdbcType="CHAR" property="triggerequoff" />
|
||||
<result column="mathop" jdbcType="CHAR" property="mathop" />
|
||||
<result column="valuetype" jdbcType="CHAR" property="valuetype" />
|
||||
<result column="active" jdbcType="VARCHAR" property="active" />
|
||||
<result column="SoundAlarm" jdbcType="CHAR" property="soundalarm" />
|
||||
<result column="scdtype" jdbcType="VARCHAR" property="scdtype" />
|
||||
<result column="spanrange" jdbcType="DECIMAL" property="spanrange" />
|
||||
<result column="modbusfigid" jdbcType="VARCHAR" property="modbusfigid" />
|
||||
<result column="register" jdbcType="VARCHAR" property="register" />
|
||||
<result column="pointfunctiondefinition" jdbcType="VARCHAR" property="pointfunctiondefinition" />
|
||||
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
ID, MPointCode, ParmName, Unit, alarmmax, alarmmin, ParmValue, MeasureDT, Rate,
|
||||
Freq, SignalType, LEDType, LEDColor, DirectType, BizType, NumTail, prochour, procday,
|
||||
procmonth, ShowName, exp, forcemin, forcemax, avgmax, avgmin, remoteup, morder, TriggerAlarm,
|
||||
ConfirmAlarm, flowset, triggerCycle, cyclemax, cyclemin, triggerMutation, mutationset,
|
||||
causeset, operateset, resultset, triggerEquOff, mathop, valuetype, active, SoundAlarm,
|
||||
scdtype, spanrange, modbusfigid, register,pointfunctiondefinition
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from TB_MeasurePoint
|
||||
where ID = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from TB_MeasurePoint
|
||||
where ID = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sipai.entity.scada.MPoint">
|
||||
insert into TB_MeasurePoint (ID, MPointCode, ParmName,
|
||||
Unit, alarmmax, alarmmin,
|
||||
ParmValue, MeasureDT, Rate,
|
||||
Freq, SignalType, LEDType,
|
||||
LEDColor, DirectType, BizType,
|
||||
NumTail, prochour, procday,
|
||||
procmonth, ShowName, exp,
|
||||
forcemin, forcemax, avgmax,
|
||||
avgmin, remoteup, morder,
|
||||
TriggerAlarm, ConfirmAlarm, flowset,
|
||||
triggerCycle, cyclemax, cyclemin,
|
||||
triggerMutation, mutationset, causeset,
|
||||
operateset, resultset, triggerEquOff,
|
||||
mathop, valuetype, active,
|
||||
SoundAlarm, scdtype, spanrange,
|
||||
modbusfigid, register,pointfunctiondefinition)
|
||||
values (#{id,jdbcType=VARCHAR}, #{mpointcode,jdbcType=VARCHAR}, #{parmname,jdbcType=VARCHAR},
|
||||
#{unit,jdbcType=VARCHAR}, #{alarmmax,jdbcType=DECIMAL}, #{alarmmin,jdbcType=DECIMAL},
|
||||
#{parmvalue,jdbcType=DECIMAL}, #{measuredt,jdbcType=TIMESTAMP}, #{rate,jdbcType=DECIMAL},
|
||||
#{freq,jdbcType=INTEGER}, #{signaltype,jdbcType=VARCHAR}, #{ledtype,jdbcType=CHAR},
|
||||
#{ledcolor,jdbcType=CHAR}, #{directtype,jdbcType=CHAR}, #{biztype,jdbcType=VARCHAR},
|
||||
#{numtail,jdbcType=VARCHAR}, #{prochour,jdbcType=VARCHAR}, #{procday,jdbcType=VARCHAR},
|
||||
#{procmonth,jdbcType=VARCHAR}, #{showname,jdbcType=CHAR}, #{exp,jdbcType=VARCHAR},
|
||||
#{forcemin,jdbcType=DECIMAL}, #{forcemax,jdbcType=DECIMAL}, #{avgmax,jdbcType=DECIMAL},
|
||||
#{avgmin,jdbcType=DECIMAL}, #{remoteup,jdbcType=CHAR}, #{morder,jdbcType=INTEGER},
|
||||
#{triggeralarm,jdbcType=CHAR}, #{confirmalarm,jdbcType=CHAR}, #{flowset,jdbcType=DECIMAL},
|
||||
#{triggercycle,jdbcType=CHAR}, #{cyclemax,jdbcType=DECIMAL}, #{cyclemin,jdbcType=DECIMAL},
|
||||
#{triggermutation,jdbcType=CHAR}, #{mutationset,jdbcType=DECIMAL}, #{causeset,jdbcType=DECIMAL},
|
||||
#{operateset,jdbcType=DECIMAL}, #{resultset,jdbcType=DECIMAL}, #{triggerequoff,jdbcType=CHAR},
|
||||
#{mathop,jdbcType=CHAR}, #{valuetype,jdbcType=CHAR}, #{active,jdbcType=VARCHAR},
|
||||
#{soundalarm,jdbcType=CHAR}, #{scdtype,jdbcType=VARCHAR}, #{spanrange,jdbcType=DECIMAL},
|
||||
#{modbusfigid,jdbcType=VARCHAR}, #{register,jdbcType=VARCHAR},#{pointfunctiondefinition,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sipai.entity.scada.MPoint">
|
||||
insert into TB_MeasurePoint
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
ID,
|
||||
</if>
|
||||
<if test="mpointcode != null">
|
||||
MPointCode,
|
||||
</if>
|
||||
<if test="parmname != null">
|
||||
ParmName,
|
||||
</if>
|
||||
<if test="unit != null">
|
||||
Unit,
|
||||
</if>
|
||||
<if test="alarmmax != null">
|
||||
alarmmax,
|
||||
</if>
|
||||
<if test="alarmmin != null">
|
||||
alarmmin,
|
||||
</if>
|
||||
<if test="parmvalue != null">
|
||||
ParmValue,
|
||||
</if>
|
||||
<if test="measuredt != null">
|
||||
MeasureDT,
|
||||
</if>
|
||||
<if test="rate != null">
|
||||
Rate,
|
||||
</if>
|
||||
<if test="freq != null">
|
||||
Freq,
|
||||
</if>
|
||||
<if test="signaltype != null">
|
||||
SignalType,
|
||||
</if>
|
||||
<if test="ledtype != null">
|
||||
LEDType,
|
||||
</if>
|
||||
<if test="ledcolor != null">
|
||||
LEDColor,
|
||||
</if>
|
||||
<if test="directtype != null">
|
||||
DirectType,
|
||||
</if>
|
||||
<if test="biztype != null">
|
||||
BizType,
|
||||
</if>
|
||||
<if test="numtail != null">
|
||||
NumTail,
|
||||
</if>
|
||||
<if test="prochour != null">
|
||||
prochour,
|
||||
</if>
|
||||
<if test="procday != null">
|
||||
procday,
|
||||
</if>
|
||||
<if test="procmonth != null">
|
||||
procmonth,
|
||||
</if>
|
||||
<if test="showname != null">
|
||||
ShowName,
|
||||
</if>
|
||||
<if test="exp != null">
|
||||
exp,
|
||||
</if>
|
||||
<if test="forcemin != null">
|
||||
forcemin,
|
||||
</if>
|
||||
<if test="forcemax != null">
|
||||
forcemax,
|
||||
</if>
|
||||
<if test="avgmax != null">
|
||||
avgmax,
|
||||
</if>
|
||||
<if test="avgmin != null">
|
||||
avgmin,
|
||||
</if>
|
||||
<if test="remoteup != null">
|
||||
remoteup,
|
||||
</if>
|
||||
<if test="morder != null">
|
||||
morder,
|
||||
</if>
|
||||
<if test="triggeralarm != null">
|
||||
TriggerAlarm,
|
||||
</if>
|
||||
<if test="confirmalarm != null">
|
||||
ConfirmAlarm,
|
||||
</if>
|
||||
<if test="flowset != null">
|
||||
flowset,
|
||||
</if>
|
||||
<if test="triggercycle != null">
|
||||
triggerCycle,
|
||||
</if>
|
||||
<if test="cyclemax != null">
|
||||
cyclemax,
|
||||
</if>
|
||||
<if test="cyclemin != null">
|
||||
cyclemin,
|
||||
</if>
|
||||
<if test="triggermutation != null">
|
||||
triggerMutation,
|
||||
</if>
|
||||
<if test="mutationset != null">
|
||||
mutationset,
|
||||
</if>
|
||||
<if test="causeset != null">
|
||||
causeset,
|
||||
</if>
|
||||
<if test="operateset != null">
|
||||
operateset,
|
||||
</if>
|
||||
<if test="resultset != null">
|
||||
resultset,
|
||||
</if>
|
||||
<if test="triggerequoff != null">
|
||||
triggerEquOff,
|
||||
</if>
|
||||
<if test="mathop != null">
|
||||
mathop,
|
||||
</if>
|
||||
<if test="valuetype != null">
|
||||
valuetype,
|
||||
</if>
|
||||
<if test="active != null">
|
||||
active,
|
||||
</if>
|
||||
<if test="soundalarm != null">
|
||||
SoundAlarm,
|
||||
</if>
|
||||
<if test="scdtype != null">
|
||||
scdtype,
|
||||
</if>
|
||||
<if test="spanrange != null">
|
||||
spanrange,
|
||||
</if>
|
||||
<if test="modbusfigid != null">
|
||||
modbusfigid,
|
||||
</if>
|
||||
<if test="register != null">
|
||||
register,
|
||||
</if>
|
||||
<if test="pointfunctiondefinition != null">
|
||||
pointfunctiondefinition,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mpointcode != null">
|
||||
#{mpointcode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="parmname != null">
|
||||
#{parmname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="unit != null">
|
||||
#{unit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="alarmmax != null">
|
||||
#{alarmmax,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="alarmmin != null">
|
||||
#{alarmmin,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="parmvalue != null">
|
||||
#{parmvalue,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="measuredt != null">
|
||||
#{measuredt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="rate != null">
|
||||
#{rate,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="freq != null">
|
||||
#{freq,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="signaltype != null">
|
||||
#{signaltype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ledtype != null">
|
||||
#{ledtype,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="ledcolor != null">
|
||||
#{ledcolor,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="directtype != null">
|
||||
#{directtype,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="biztype != null">
|
||||
#{biztype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="numtail != null">
|
||||
#{numtail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="prochour != null">
|
||||
#{prochour,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="procday != null">
|
||||
#{procday,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="procmonth != null">
|
||||
#{procmonth,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="showname != null">
|
||||
#{showname,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="exp != null">
|
||||
#{exp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="forcemin != null">
|
||||
#{forcemin,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="forcemax != null">
|
||||
#{forcemax,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="avgmax != null">
|
||||
#{avgmax,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="avgmin != null">
|
||||
#{avgmin,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="remoteup != null">
|
||||
#{remoteup,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="morder != null">
|
||||
#{morder,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="triggeralarm != null">
|
||||
#{triggeralarm,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="confirmalarm != null">
|
||||
#{confirmalarm,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="flowset != null">
|
||||
#{flowset,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="triggercycle != null">
|
||||
#{triggercycle,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="cyclemax != null">
|
||||
#{cyclemax,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="cyclemin != null">
|
||||
#{cyclemin,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="triggermutation != null">
|
||||
#{triggermutation,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="mutationset != null">
|
||||
#{mutationset,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="causeset != null">
|
||||
#{causeset,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="operateset != null">
|
||||
#{operateset,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="resultset != null">
|
||||
#{resultset,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="triggerequoff != null">
|
||||
#{triggerequoff,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="mathop != null">
|
||||
#{mathop,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="valuetype != null">
|
||||
#{valuetype,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="active != null">
|
||||
#{active,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="soundalarm != null">
|
||||
#{soundalarm,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="scdtype != null">
|
||||
#{scdtype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="spanrange != null">
|
||||
#{spanrange,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="modbusfigid != null">
|
||||
#{modbusfigid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="register != null">
|
||||
#{register,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="pointfunctiondefinition != null">
|
||||
#{pointfunctiondefinition,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sipai.entity.scada.MPoint">
|
||||
update TB_MeasurePoint
|
||||
<set>
|
||||
<if test="mpointcode != null">
|
||||
MPointCode = #{mpointcode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="parmname != null">
|
||||
ParmName = #{parmname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="unit != null">
|
||||
Unit = #{unit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="alarmmax != null">
|
||||
alarmmax = #{alarmmax,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="alarmmin != null">
|
||||
alarmmin = #{alarmmin,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="parmvalue != null">
|
||||
ParmValue = #{parmvalue,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="measuredt != null">
|
||||
MeasureDT = #{measuredt,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="rate != null">
|
||||
Rate = #{rate,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="freq != null">
|
||||
Freq = #{freq,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="signaltype != null">
|
||||
SignalType = #{signaltype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="ledtype != null">
|
||||
LEDType = #{ledtype,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="ledcolor != null">
|
||||
LEDColor = #{ledcolor,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="directtype != null">
|
||||
DirectType = #{directtype,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="biztype != null">
|
||||
BizType = #{biztype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="numtail != null">
|
||||
NumTail = #{numtail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="prochour != null">
|
||||
prochour = #{prochour,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="procday != null">
|
||||
procday = #{procday,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="procmonth != null">
|
||||
procmonth = #{procmonth,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="showname != null">
|
||||
ShowName = #{showname,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="exp != null">
|
||||
exp = #{exp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="forcemin != null">
|
||||
forcemin = #{forcemin,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="forcemax != null">
|
||||
forcemax = #{forcemax,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="avgmax != null">
|
||||
avgmax = #{avgmax,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="avgmin != null">
|
||||
avgmin = #{avgmin,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="remoteup != null">
|
||||
remoteup = #{remoteup,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="morder != null">
|
||||
morder = #{morder,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="triggeralarm != null">
|
||||
TriggerAlarm = #{triggeralarm,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="confirmalarm != null">
|
||||
ConfirmAlarm = #{confirmalarm,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="flowset != null">
|
||||
flowset = #{flowset,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="triggercycle != null">
|
||||
triggerCycle = #{triggercycle,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="cyclemax != null">
|
||||
cyclemax = #{cyclemax,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="cyclemin != null">
|
||||
cyclemin = #{cyclemin,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="triggermutation != null">
|
||||
triggerMutation = #{triggermutation,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="mutationset != null">
|
||||
mutationset = #{mutationset,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="causeset != null">
|
||||
causeset = #{causeset,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="operateset != null">
|
||||
operateset = #{operateset,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="resultset != null">
|
||||
resultset = #{resultset,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="triggerequoff != null">
|
||||
triggerEquOff = #{triggerequoff,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="mathop != null">
|
||||
mathop = #{mathop,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="valuetype != null">
|
||||
valuetype = #{valuetype,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="active != null">
|
||||
active = #{active,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="soundalarm != null">
|
||||
SoundAlarm = #{soundalarm,jdbcType=CHAR},
|
||||
</if>
|
||||
<if test="scdtype != null">
|
||||
scdtype = #{scdtype,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="spanrange != null">
|
||||
spanrange = #{spanrange,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="modbusfigid != null">
|
||||
modbusfigid = #{modbusfigid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="register != null">
|
||||
register = #{register,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test=" pointfunctiondefinition != null">
|
||||
pointfunctiondefinition = #{ pointfunctiondefinition,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where ID = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sipai.entity.scada.MPoint">
|
||||
update TB_MeasurePoint
|
||||
set MPointCode = #{mpointcode,jdbcType=VARCHAR},
|
||||
ParmName = #{parmname,jdbcType=VARCHAR},
|
||||
Unit = #{unit,jdbcType=VARCHAR},
|
||||
alarmmax = #{alarmmax,jdbcType=DECIMAL},
|
||||
alarmmin = #{alarmmin,jdbcType=DECIMAL},
|
||||
ParmValue = #{parmvalue,jdbcType=DECIMAL},
|
||||
MeasureDT = #{measuredt,jdbcType=TIMESTAMP},
|
||||
Rate = #{rate,jdbcType=DECIMAL},
|
||||
Freq = #{freq,jdbcType=INTEGER},
|
||||
SignalType = #{signaltype,jdbcType=VARCHAR},
|
||||
LEDType = #{ledtype,jdbcType=CHAR},
|
||||
LEDColor = #{ledcolor,jdbcType=CHAR},
|
||||
DirectType = #{directtype,jdbcType=CHAR},
|
||||
BizType = #{biztype,jdbcType=VARCHAR},
|
||||
NumTail = #{numtail,jdbcType=VARCHAR},
|
||||
prochour = #{prochour,jdbcType=VARCHAR},
|
||||
procday = #{procday,jdbcType=VARCHAR},
|
||||
procmonth = #{procmonth,jdbcType=VARCHAR},
|
||||
ShowName = #{showname,jdbcType=CHAR},
|
||||
exp = #{exp,jdbcType=VARCHAR},
|
||||
forcemin = #{forcemin,jdbcType=DECIMAL},
|
||||
forcemax = #{forcemax,jdbcType=DECIMAL},
|
||||
avgmax = #{avgmax,jdbcType=DECIMAL},
|
||||
avgmin = #{avgmin,jdbcType=DECIMAL},
|
||||
remoteup = #{remoteup,jdbcType=CHAR},
|
||||
morder = #{morder,jdbcType=INTEGER},
|
||||
TriggerAlarm = #{triggeralarm,jdbcType=CHAR},
|
||||
ConfirmAlarm = #{confirmalarm,jdbcType=CHAR},
|
||||
flowset = #{flowset,jdbcType=DECIMAL},
|
||||
triggerCycle = #{triggercycle,jdbcType=CHAR},
|
||||
cyclemax = #{cyclemax,jdbcType=DECIMAL},
|
||||
cyclemin = #{cyclemin,jdbcType=DECIMAL},
|
||||
triggerMutation = #{triggermutation,jdbcType=CHAR},
|
||||
mutationset = #{mutationset,jdbcType=DECIMAL},
|
||||
causeset = #{causeset,jdbcType=DECIMAL},
|
||||
operateset = #{operateset,jdbcType=DECIMAL},
|
||||
resultset = #{resultset,jdbcType=DECIMAL},
|
||||
triggerEquOff = #{triggerequoff,jdbcType=CHAR},
|
||||
mathop = #{mathop,jdbcType=CHAR},
|
||||
valuetype = #{valuetype,jdbcType=CHAR},
|
||||
active = #{active,jdbcType=VARCHAR},
|
||||
SoundAlarm = #{soundalarm,jdbcType=CHAR},
|
||||
scdtype = #{scdtype,jdbcType=VARCHAR},
|
||||
spanrange = #{spanrange,jdbcType=DECIMAL},
|
||||
modbusfigid = #{modbusfigid,jdbcType=VARCHAR},
|
||||
register = #{register,jdbcType=VARCHAR},
|
||||
pointfunctiondefinition = #{pointfunctiondefinition,jdbcType=VARCHAR}
|
||||
where ID = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<select id="selectListByWhere" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_measurepoint
|
||||
${where}
|
||||
</select>
|
||||
<delete id="deleteByWhere" parameterType="java.lang.String">
|
||||
delete from
|
||||
tb_measurepoint
|
||||
${where}
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user