|
|
@@ -23,10 +23,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="wiModifieddate" column="wiModifieddate" />
|
|
|
<result property="wiModifier" column="wiModifier" />
|
|
|
<result property="tid" column="tid" />
|
|
|
+ <result property="wiOptiontype" column="wiOptiontype" />
|
|
|
+ <result property="wiParentbid" column="wiParentbid" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectIotWarnindicatorVo">
|
|
|
- select id, wiBid, wcBid, wdBid, wiAddress, wiCode, wiName, wiUnit,wiStatus,wiExpression, wiValue, wiCreator, wiCreateddate, wiModifieddate, wiModifier, tid from IotWarnindicator
|
|
|
+ select id, wiBid, wcBid, wdBid, wiAddress, wiCode, wiName, wiUnit,wiStatus,wiExpression, wiValue, wiCreator,
|
|
|
+ wiCreateddate, wiModifieddate, wiModifier, tid, wiOptiontype, wiParentbid
|
|
|
+ from IotWarnindicator
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectIotWarnindicatorList" parameterType="IotWarnindicator" resultMap="IotWarnindicatorResult">
|
|
|
@@ -47,6 +51,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="wiModifieddate != null and wiModifieddate != ''"> and wiModifieddate = #{wiModifieddate}</if>
|
|
|
<if test="wiModifier != null and wiModifier != ''"> and wiModifier = #{wiModifier}</if>
|
|
|
<if test="tid != null and tid != ''"> and tid = #{tid}</if>
|
|
|
+ <if test="wiOptiontype != null and wiOptiontype != ''"> and wiOptiontype = #{wiOptiontype}</if>
|
|
|
+ <if test="wiParentbid != null and wiParentbid != ''"> and wiParentbid = #{wiParentbid}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -93,6 +99,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
+ <insert id="insertIotWarnindicatorBatch" parameterType="IotWarnindicator">
|
|
|
+ insert into IotWarnindicator (
|
|
|
+ wiBid, wcBid, wdBid, wiAddress, wiCode, wiName, wiUnit, wiStatus,
|
|
|
+ wiExpression, wiValue, wiCreator, wiCreateddate, wiModifieddate, wiModifier,
|
|
|
+ tid, wiOptiontype, wiParentbid
|
|
|
+ )
|
|
|
+ values
|
|
|
+ <foreach collection="list" item="item" index="index" separator=",">
|
|
|
+ (
|
|
|
+ #{item.wiBid}, #{item.wcBid}, #{item.wdBid}, #{item.wiAddress}, #{item.wiCode}, #{item.wiName},
|
|
|
+ #{item.wiUnit}, #{item.wiStatus}, #{item.wiExpression}, #{item.wiValue}, #{item.wiCreator},
|
|
|
+ #{item.wiCreateddate}, #{item.wiModifieddate}, #{item.wiModifier}, #{item.tid},
|
|
|
+ #{item.wiOptiontype}, #{item.wiParentbid}
|
|
|
+ )
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+
|
|
|
<update id="updateIotWarnindicator" parameterType="IotWarnindicator">
|
|
|
update IotWarnindicator
|
|
|
<trim prefix="SET" suffixOverrides=",">
|