|
|
@@ -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>
|