liuyaowen преди 1 година
родител
ревизия
c145101728

+ 6 - 6
src/main/resources/mapper/IotWarnconfigMapper.xml

@@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     
     <select id="selectIotWarnconfigByWcBid" parameterType="Long" resultMap="IotWarnconfigResult">
         <include refid="selectIotWarnconfigVo"/>
-        where id = #{id} and tid = #{tid}
+        where wcBid = #{wcBid} and tid = #{tid}
     </select>
         
     <insert id="insertIotWarnconfig" parameterType="IotWarnconfig" useGeneratedKeys="true" keyProperty="id">
@@ -95,17 +95,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="wcModifier != null">wcModifier = #{wcModifier},</if>
             <if test="tid != null and tid != ''">tid = #{tid},</if>
         </trim>
-        where id = #{id}
+        where wcBid = #{wcBid}
     </update>
 
     <delete id="deleteIotWarnconfigByWcBid" parameterType="Long">
-        delete from IotWarnconfig where id = #{id} and tid = #{tid}
+        delete from IotWarnconfig where wcBid = #{wcBid} and tid = #{tid}
     </delete>
 
     <delete id="deleteIotWarnconfigWcBids" parameterType="String">
-        delete from IotWarnconfig where tid = #{tid} and id in
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
+        delete from IotWarnconfig where tid = #{tid} and wcBid in
+        <foreach item="wcBid" collection="array" open="(" separator="," close=")">
+            #{wcBid}
         </foreach>
     </delete>
 </mapper>

+ 6 - 6
src/main/resources/mapper/IotWarncountMapper.xml

@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     
     <select id="selectIotWarncountByWctBid" parameterType="Long" resultMap="IotWarncountResult">
         <include refid="selectIotWarncountVo"/>
-        where id = #{id} and tid = #{tid}
+        where wctBid = #{wctBid} and tid = #{tid}
     </select>
         
     <insert id="insertIotWarncount" parameterType="IotWarncount" useGeneratedKeys="true" keyProperty="id">
@@ -65,17 +65,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="lastUpdateTime != null">lastUpdateTime = #{lastUpdateTime},</if>
             <if test="tid != null and tid != ''">tid = #{tid},</if>
         </trim>
-        where id = #{id}
+        where wctBid = #{wctBid}
     </update>
 
     <delete id="deleteIotWarncountByWctBid" parameterType="Long">
-        delete from IotWarncount where id = #{id} and tid = #{tid}
+        delete from IotWarncount where wctBid = #{wctBid} and tid = #{tid}
     </delete>
 
     <delete id="deleteIotWarncountByWctBids" parameterType="String">
-        delete from IotWarncount where tid = #{tid} and id in
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
+        delete from IotWarncount where tid = #{tid} and wctBid in
+        <foreach item="wctBid" collection="array" open="(" separator="," close=")">
+            #{wctBid}
         </foreach>
     </delete>
 </mapper>

+ 6 - 6
src/main/resources/mapper/IotWarndataitemMapper.xml

@@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     
     <select id="selectIotWarndataitemByWdBid" parameterType="Long" resultMap="IotWarndataitemResult">
         <include refid="selectIotWarndataitemVo"/>
-        where id = #{id} and tid = #{tid}
+        where wdBid = #{wdBid} and tid = #{tid}
     </select>
         
     <insert id="insertIotWarndataitem" parameterType="IotWarndataitem" useGeneratedKeys="true" keyProperty="id">
@@ -70,17 +70,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="wdUnit != null">wdUnit = #{wdUnit},</if>
             <if test="wdOptiontype != null">wdOptiontype = #{wdOptiontype},</if>
         </trim>
-        where id = #{id}
+        where wdBid = #{wdBid}
     </update>
 
     <delete id="deleteIotWarndataitemByWdBid" parameterType="Long">
-        delete from IotWarndataitem where id = #{id} and tid = #{tid}
+        delete from IotWarndataitem where wdBid = #{wdBid} and tid = #{tid}
     </delete>
 
     <delete id="deleteIotWarndataitemByWdBids" parameterType="String">
-        delete from IotWarndataitem where tid = #{tid} and id in
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
+        delete from IotWarndataitem where tid = #{tid} and wdBid in
+        <foreach item="wdBid" collection="array" open="(" separator="," close=")">
+            #{wdBid}
         </foreach>
     </delete>
 </mapper>

+ 6 - 6
src/main/resources/mapper/IotWarnindicatorMapper.xml

@@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     
     <select id="selectIotWarnindicatorByWiBid" parameterType="Long" resultMap="IotWarnindicatorResult">
         <include refid="selectIotWarnindicatorVo"/>
-        where id = #{id} and tid = #{tid}
+        where wiBid = #{wiBid} and tid = #{tid}
     </select>
         
     <insert id="insertIotWarnindicator" parameterType="IotWarnindicator" useGeneratedKeys="true" keyProperty="id">
@@ -85,17 +85,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="wiModifier != null">wiModifier = #{wiModifier},</if>
             <if test="tid != null and tid != ''">tid = #{tid},</if>
         </trim>
-        where id = #{id}
+        where wiBid = #{wiBid}
     </update>
 
     <delete id="deleteIotWarnindicatorByWiBid" parameterType="Long">
-        delete from IotWarnindicator where id = #{id} and tid = #{tid}
+        delete from IotWarnindicator where wiBid = #{wiBid} and tid = #{tid}
     </delete>
 
     <delete id="deleteIotWarnindicatorByWiBids" parameterType="String">
-        delete from IotWarnindicator where tid = #{tid} and id in
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
+        delete from IotWarnindicator where tid = #{tid} and wiBid in
+        <foreach item="wiBid" collection="array" open="(" separator="," close=")">
+            #{wiBid}
         </foreach>
     </delete>
 </mapper>

+ 6 - 6
src/main/resources/mapper/IotWarnlogMapper.xml

@@ -50,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     
     <select id="selectIotWarnlogById" parameterType="Long" resultMap="IotWarnlogResult">
         <include refid="selectIotWarnlogVo"/>
-        where id = #{id} and tid = #{tid}
+        where wlBid = #{wlBid} and tid = #{tid}
     </select>
         
     <insert id="insertIotWarnlog" parameterType="IotWarnlog" useGeneratedKeys="true" keyProperty="id">
@@ -110,17 +110,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="wrData != null">wrData = #{wrData},</if>
             <if test="tid != null and tid != ''">tid = #{tid},</if>
         </trim>
-        where id = #{id}
+        where wlBid = #{wlBid}
     </update>
 
     <delete id="deleteIotWarnlogByWlBid" parameterType="Long">
-        delete from IotWarnlog where id = #{id} and tid = #{tid}
+        delete from IotWarnlog where wlBid = #{wlBid} and tid = #{tid}
     </delete>
 
     <delete id="deleteIotWarnlogByWlBids" parameterType="String">
-        delete from IotWarnlog where tid = #{tid} and id in
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
+        delete from IotWarnlog where tid = #{tid} and wlBid in
+        <foreach item="wlBid" collection="array" open="(" separator="," close=")">
+            #{wlBid}
         </foreach>
     </delete>
 </mapper>

+ 6 - 6
src/main/resources/mapper/IotWarnobjectMapper.xml

@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     
     <select id="selectIotWarnobjectByWoBid" parameterType="Long" resultMap="IotWarnobjectResult">
         <include refid="selectIotWarnobjectVo"/>
-        where id = #{id} and tid = #{tid}
+        where woBid = #{woBid} and tid = #{tid}
     </select>
         
     <insert id="insertIotWarnobject" parameterType="IotWarnobject" useGeneratedKeys="true" keyProperty="id">
@@ -60,17 +60,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="woObjid != null">woObjid = #{woObjid},</if>
             <if test="tid != null and tid != ''">tid = #{tid},</if>
         </trim>
-        where id = #{id}
+        where woBid = #{woBid}
     </update>
 
     <delete id="deleteIotWarnobjectByWoBid" parameterType="Long">
-        delete from IotWarnobject where id = #{id} and tid = #{tid}
+        delete from IotWarnobject where woBid = #{woBid} and tid = #{tid}
     </delete>
 
     <delete id="deleteIotWarnobjectByWoBids" parameterType="String">
-        delete from IotWarnobject where tid = #{tid} and id in
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
+        delete from IotWarnobject where tid = #{tid} and woBid in
+        <foreach item="woBid" collection="array" open="(" separator="," close=")">
+            #{woBid}
         </foreach>
     </delete>
 </mapper>

+ 6 - 6
src/main/resources/mapper/IotWarnpolicyMapper.xml

@@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     
     <select id="selectIotWarnpolicyById" parameterType="Long" resultMap="IotWarnpolicyResult">
         <include refid="selectIotWarnpolicyVo"/>
-        where id = #{id} and tid = #{tid}
+        where wpBid = #{wpBid} and tid = #{tid}
     </select>
         
     <insert id="insertIotWarnpolicy" parameterType="IotWarnpolicy" useGeneratedKeys="true" keyProperty="id">
@@ -90,17 +90,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="wpModifier != null">wpModifier = #{wpModifier},</if>
             <if test="tid != null and tid != ''">tid = #{tid},</if>
         </trim>
-        where id = #{id}
+        where wpBid = #{wpBid}
     </update>
 
     <delete id="deleteIotWarnpolicyByWpBid" parameterType="Long">
-        delete from IotWarnpolicy where id = #{id} and tid = #{tid}
+        delete from IotWarnpolicy where wpBid = #{wpBid} and tid = #{tid}
     </delete>
 
     <delete id="deleteIotWarnpolicyByWpBids" parameterType="String">
-        delete from IotWarnpolicy where tid = #{tid} and id in
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
+        delete from IotWarnpolicy where tid = #{tid} and wpBid in
+        <foreach item="wpBid" collection="array" open="(" separator="," close=")">
+            #{wpBid}
         </foreach>
     </delete>
 </mapper>

+ 6 - 6
src/main/resources/mapper/IotWarnreceiverMapper.xml

@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     
     <select id="selectIotWarnreceiverByWrBid" parameterType="Long" resultMap="IotWarnreceiverResult">
         <include refid="selectIotWarnreceiverVo"/>
-        where id = #{id} and tid = #{tid}
+        where wrBid = #{wrBid} and tid = #{tid}
     </select>
         
     <insert id="insertIotWarnreceiver" parameterType="IotWarnreceiver" useGeneratedKeys="true" keyProperty="id">
@@ -55,17 +55,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="wruserId != null">wruserId = #{wruserId},</if>
             <if test="tid != null and tid != ''">tid = #{tid},</if>
         </trim>
-        where id = #{id}
+        where wrBid = #{wrBid}
     </update>
 
     <delete id="deleteIotWarnreceiverByWrBid" parameterType="Long">
-        delete from IotWarnreceiver where id = #{id} and tid = #{tid}
+        delete from IotWarnreceiver where wrBid = #{wrBid} and tid = #{tid}
     </delete>
 
     <delete id="deleteIotWarnreceiverByWrBids" parameterType="String">
-        delete from IotWarnreceiver where tid = #{tid} and id in
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
+        delete from IotWarnreceiver where tid = #{tid} and wrBid in
+        <foreach item="wrBid" collection="array" open="(" separator="," close=")">
+            #{wrBid}
         </foreach>
     </delete>
 </mapper>