yf_zn 10 месяцев назад
Родитель
Сommit
d72800774b

+ 0 - 63
src/main/java/com/yunfeiyun/agmp/iots/device/mapper/IotWarnconfigMapper.java

@@ -1,63 +0,0 @@
-package com.yunfeiyun.agmp.iots.device.mapper;
-
-import com.yunfeiyun.agmp.iot.common.domain.IotWarnconfig;
-import com.yunfeiyun.agmp.iot.common.domain.resvo.IotWarnconfigResVo;
-
-import java.util.List;
-
-/**
- * 预警配置Mapper接口
- * 
- * @author 杨晓辉
- * @date 2024-04-29
- */
-public interface IotWarnconfigMapper 
-{
-    /**
-     * 查询预警配置
-     * 
-     * @param id 预警配置主键
-     * @return 预警配置
-     */
-    public IotWarnconfig selectIotWarnconfigById(Long id);
-
-    /**
-     * 查询预警配置列表
-     * 
-     * @param iotWarnconfig 预警配置
-     * @return 预警配置集合
-     */
-    public List<IotWarnconfigResVo> selectIotWarnconfigList(IotWarnconfig iotWarnconfig);
-
-    /**
-     * 新增预警配置
-     * 
-     * @param iotWarnconfig 预警配置
-     * @return 结果
-     */
-    public int insertIotWarnconfig(IotWarnconfig iotWarnconfig);
-
-    /**
-     * 修改预警配置
-     * 
-     * @param iotWarnconfig 预警配置
-     * @return 结果
-     */
-    public int updateIotWarnconfig(IotWarnconfig iotWarnconfig);
-
-    /**
-     * 删除预警配置
-     * 
-     * @param id 预警配置主键
-     * @return 结果
-     */
-    public int deleteIotWarnconfigById(Long id);
-
-    /**
-     * 批量删除预警配置
-     * 
-     * @param ids 需要删除的数据主键集合
-     * @return 结果
-     */
-    public int deleteIotWarnconfigByIds(Long[] ids);
-}

+ 0 - 63
src/main/java/com/yunfeiyun/agmp/iots/device/mapper/IotWarnlogMapper.java

@@ -1,63 +0,0 @@
-package com.yunfeiyun.agmp.iots.device.mapper;
-
-import com.yunfeiyun.agmp.iot.common.domain.IotWarnlog;
-import com.yunfeiyun.agmp.iot.common.domain.resvo.IotWarnlogResVo;
-
-import java.util.List;
-
-/**
- * 预警记录Mapper接口
- * 
- * @author MZQ
- * @date 2024-04-29
- */
-public interface IotWarnlogMapper 
-{
-    /**
-     * 查询预警记录
-     * 
-     * @param id 预警记录主键
-     * @return 预警记录
-     */
-    public IotWarnlog selectIotWarnlogById(Long id);
-    public IotWarnlogResVo selectIotWarnlogByBid(String wlBid);
-    /**
-     * 查询预警记录列表
-     * 
-     * @param iotWarnlog 预警记录
-     * @return 预警记录集合
-     */
-    public List<IotWarnlog> selectIotWarnlogList(IotWarnlog iotWarnlog);
-
-    /**
-     * 新增预警记录
-     * 
-     * @param iotWarnlog 预警记录
-     * @return 结果
-     */
-    public int insertIotWarnlog(IotWarnlog iotWarnlog);
-
-    /**
-     * 修改预警记录
-     * 
-     * @param iotWarnlog 预警记录
-     * @return 结果
-     */
-    public int updateIotWarnlog(IotWarnlog iotWarnlog);
-
-    /**
-     * 删除预警记录
-     * 
-     * @param id 预警记录主键
-     * @return 结果
-     */
-    public int deleteIotWarnlogById(Long id);
-
-    /**
-     * 批量删除预警记录
-     * 
-     * @param ids 需要删除的数据主键集合
-     * @return 结果
-     */
-    public int deleteIotWarnlogByIds(Long[] ids);
-}

+ 0 - 65
src/main/java/com/yunfeiyun/agmp/iots/device/mapper/IotWarntypeMapper.java

@@ -1,65 +0,0 @@
-package com.yunfeiyun.agmp.iots.device.mapper;
-
-import com.yunfeiyun.agmp.iot.common.domain.IotWarntype;
-import com.yunfeiyun.agmp.iot.common.domain.resvo.IotWarntypeResVo;
-
-import java.util.List;
-
-/**
- * 预警类型Mapper接口
- * 
- * @author Ma
- * @date 2024-07-24
- */
-public interface IotWarntypeMapper 
-{
-    /**
-     * 查询预警类型
-     * 
-     * @param id 预警类型主键
-     * @return 预警类型
-     */
-    public IotWarntype selectIotWarntypeById(Long id);
-    public IotWarntypeResVo selectIotWarntypeByBid(String bid);
-
-    /**
-     * 查询预警类型列表
-     * 
-     * @param iotWarntype 预警类型
-     * @return 预警类型集合
-     */
-    public List<IotWarntypeResVo> selectIotWarntypeList(IotWarntype iotWarntype);
-
-    /**
-     * 新增预警类型
-     * 
-     * @param iotWarntype 预警类型
-     * @return 结果
-     */
-    public int insertIotWarntype(IotWarntype iotWarntype);
-
-    /**
-     * 修改预警类型
-     * 
-     * @param iotWarntype 预警类型
-     * @return 结果
-     */
-    public int updateIotWarntype(IotWarntype iotWarntype);
-
-    /**
-     * 删除预警类型
-     * 
-     * @param id 预警类型主键
-     * @return 结果
-     */
-    public int deleteIotWarntypeById(Long id);
-
-    /**
-     * 批量删除预警类型
-     * 
-     * @param ids 需要删除的数据主键集合
-     * @return 结果
-     */
-    public int deleteIotWarntypeByIds(Long[] ids);
-    public int deleteIotWarntypeByBids(String[] bids);
-}

+ 0 - 152
src/main/resources/mapper/IotWarnconfigMapper.xml

@@ -1,152 +0,0 @@
-<?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="com.yunfeiyun.agmp.iots.device.mapper.IotWarnconfigMapper">
-    
-    <resultMap type="IotWarnconfig" id="IotWarnconfigResult">
-        <result property="id"    column="id"    />
-        <result property="wcBid"    column="wcBid"    />
-        <result property="wcName"    column="wcName"    />
-        <result property="wcType"    column="wcType"    />
-        <result property="wcLevel"    column="wcLevel"    />
-        <result property="wcNoticetype"    column="wcNoticetype"    />
-        <result property="wcRule"    column="wcRule"    />
-        <result property="wcPushtype"    column="wcPushtype"    />
-        <result property="wcPushtime"    column="wcPushtime"    />
-        <result property="devBid"    column="devBid"    />
-        <result property="wcRevrole"    column="wcRevrole"    />
-        <result property="wcRecvuser"    column="wcRecvuser"    />
-        <result property="wcAlvstatus"    column="wcAlvstatus"    />
-        <result property="wcDelstatus"    column="wcDelstatus"    />
-        <result property="wcTimerange"    column="wcTimerange"    />
-        <result property="wcSuggestion"    column="wcSuggestion"    />
-        <result property="wcCreator"    column="wcCreator"    />
-        <result property="wcCreateddate"    column="wcCreateddate"    />
-        <result property="wcModifier"    column="wcModifier"    />
-        <result property="wcModifieddate"    column="wcModifieddate"    />
-    </resultMap>
-
-    <sql id="selectIotWarnconfigVo">
-        select IotWarnconfig.id, wcBid, wcName, wcType, wcLevel, wcNoticetype, wcRule, wcPushtype, wcPushtime
-        , devBid, wcRevrole, wcRecvuser, wcAlvstatus, wcDelstatus, wcTimerange, wcSuggestion
-        , wcCreator, wcCreateddate, wcModifier, wcModifieddate
-        ,IotWarntype.wtCata
-        from IotWarnconfig
-        left join IotWarntype on IotWarntype.wtBid = IotWarnconfig.wcType
-    </sql>
-
-    <select id="selectIotWarnconfigList" parameterType="IotWarnconfigReqVo" resultType="IotWarnconfigResVo">
-        <include refid="selectIotWarnconfigVo"/>
-        <where>  
-            <if test="wcBid != null  and wcBid != ''"> and wcBid = #{wcBid}</if>
-            <if test="wcName != null  and wcName != ''"> and wcName like concat('%', #{wcName}, '%')</if>
-            <if test="wcType != null  and wcType != ''"> and wcType = #{wcType}</if>
-            <if test="wtCata != null  and wtCata != ''"> and wtCata = #{wtCata}</if>
-            <if test="wcLevel != null  and wcLevel != ''"> and wcLevel = #{wcLevel}</if>
-            <if test="wcNoticetype != null  and wcNoticetype != ''"> and wcNoticetype = #{wcNoticetype}</if>
-            <if test="wcRule != null  and wcRule != ''"> and wcRule = #{wcRule}</if>
-            <if test="wcPushtype != null  and wcPushtype != ''"> and wcPushtype = #{wcPushtype}</if>
-            <if test="wcPushtime != null  and wcPushtime != ''"> and wcPushtime = #{wcPushtime}</if>
-            <if test="devBid != null  and devBid != ''"> and FIND_IN_SET(#{devBid},devBid)>0</if>
-            <if test="wcRevrole != null  and wcRevrole != ''"> and wcRevrole = #{wcRevrole}</if>
-            <if test="wcRecvuser != null  and wcRecvuser != ''"> and wcRecvuser = #{wcRecvuser}</if>
-            <if test="wcAlvstatus != null  and wcAlvstatus != ''"> and wcAlvstatus = #{wcAlvstatus}</if>
-            <if test="wcDelstatus != null  and wcDelstatus != ''"> and wcDelstatus = #{wcDelstatus}</if>
-            <if test="wcTimerange != null  and wcTimerange != ''"> and wcTimerange = #{wcTimerange}</if>
-            <if test="wcSuggestion != null  and wcSuggestion != ''"> and wcSuggestion like concat('%', #{wcSuggestion}, '%')</if>
-            <if test="wcCreator != null  and wcCreator != ''"> and wcCreator = #{wcCreator}</if>
-            <if test="wcCreateddate != null  and wcCreateddate != ''"> and wcCreateddate = #{wcCreateddate}</if>
-            <if test="wcModifier != null  and wcModifier != ''"> and wcModifier = #{wcModifier}</if>
-            <if test="wcModifieddate != null  and wcModifieddate != ''"> and wcModifieddate = #{wcModifieddate}</if>
-        </where>
-    </select>
-    
-    <select id="selectIotWarnconfigById" parameterType="Long" resultMap="IotWarnconfigResult">
-        <include refid="selectIotWarnconfigVo"/>
-        where id = #{id}
-    </select>
-        
-    <insert id="insertIotWarnconfig" parameterType="IotWarnconfig" useGeneratedKeys="true" keyProperty="id">
-        insert into IotWarnconfig
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="wcBid != null">wcBid,</if>
-            <if test="wcName != null">wcName,</if>
-            <if test="wcType != null">wcType,</if>
-            <if test="wcLevel != null">wcLevel,</if>
-            <if test="wcNoticetype != null">wcNoticetype,</if>
-            <if test="wcRule != null">wcRule,</if>
-            <if test="wcPushtype != null">wcPushtype,</if>
-            <if test="wcPushtime != null">wcPushtime,</if>
-            <if test="devBid != null">devBid,</if>
-            <if test="wcRevrole != null">wcRevrole,</if>
-            <if test="wcRecvuser != null">wcRecvuser,</if>
-            <if test="wcAlvstatus != null">wcAlvstatus,</if>
-            <if test="wcDelstatus != null">wcDelstatus,</if>
-            <if test="wcTimerange != null">wcTimerange,</if>
-            <if test="wcSuggestion != null">wcSuggestion,</if>
-            <if test="wcCreator != null">wcCreator,</if>
-            <if test="wcCreateddate != null">wcCreateddate,</if>
-            <if test="wcModifier != null">wcModifier,</if>
-            <if test="wcModifieddate != null">wcModifieddate,</if>
-         </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="wcBid != null">#{wcBid},</if>
-            <if test="wcName != null">#{wcName},</if>
-            <if test="wcType != null">#{wcType},</if>
-            <if test="wcLevel != null">#{wcLevel},</if>
-            <if test="wcNoticetype != null">#{wcNoticetype},</if>
-            <if test="wcRule != null">#{wcRule},</if>
-            <if test="wcPushtype != null">#{wcPushtype},</if>
-            <if test="wcPushtime != null">#{wcPushtime},</if>
-            <if test="devBid != null">#{devBid},</if>
-            <if test="wcRevrole != null">#{wcRevrole},</if>
-            <if test="wcRecvuser != null">#{wcRecvuser},</if>
-            <if test="wcAlvstatus != null">#{wcAlvstatus},</if>
-            <if test="wcDelstatus != null">#{wcDelstatus},</if>
-            <if test="wcTimerange != null">#{wcTimerange},</if>
-            <if test="wcSuggestion != null">#{wcSuggestion},</if>
-            <if test="wcCreator != null">#{wcCreator},</if>
-            <if test="wcCreateddate != null">#{wcCreateddate},</if>
-            <if test="wcModifier != null">#{wcModifier},</if>
-            <if test="wcModifieddate != null">#{wcModifieddate},</if>
-         </trim>
-    </insert>
-
-    <update id="updateIotWarnconfig" parameterType="IotWarnconfig">
-        update IotWarnconfig
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="wcBid != null">wcBid = #{wcBid},</if>
-            <if test="wcName != null">wcName = #{wcName},</if>
-            <if test="wcType != null">wcType = #{wcType},</if>
-            <if test="wcLevel != null">wcLevel = #{wcLevel},</if>
-            <if test="wcNoticetype != null">wcNoticetype = #{wcNoticetype},</if>
-            <if test="wcRule != null">wcRule = #{wcRule},</if>
-            <if test="wcPushtype != null">wcPushtype = #{wcPushtype},</if>
-            <if test="wcPushtime != null">wcPushtime = #{wcPushtime},</if>
-            <if test="devBid != null">devBid = #{devBid},</if>
-            <if test="wcRevrole != null">wcRevrole = #{wcRevrole},</if>
-            <if test="wcRecvuser != null">wcRecvuser = #{wcRecvuser},</if>
-            <if test="wcAlvstatus != null">wcAlvstatus = #{wcAlvstatus},</if>
-            <if test="wcDelstatus != null">wcDelstatus = #{wcDelstatus},</if>
-            <if test="wcTimerange != null">wcTimerange = #{wcTimerange},</if>
-            <if test="wcSuggestion != null">wcSuggestion = #{wcSuggestion},</if>
-            <if test="wcCreator != null">wcCreator = #{wcCreator},</if>
-            <if test="wcCreateddate != null">wcCreateddate = #{wcCreateddate},</if>
-            <if test="wcModifier != null">wcModifier = #{wcModifier},</if>
-            <if test="wcModifieddate != null">wcModifieddate = #{wcModifieddate},</if>
-        </trim>
-        where id = #{id}
-    </update>
-
-    <delete id="deleteIotWarnconfigById" parameterType="Long">
-        delete from IotWarnconfig where id = #{id}
-    </delete>
-
-    <delete id="deleteIotWarnconfigByIds" parameterType="String">
-        delete from IotWarnconfig where id in 
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-    </delete>
-</mapper>

+ 0 - 130
src/main/resources/mapper/IotWarnlogMapper.xml

@@ -1,130 +0,0 @@
-<?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="com.yunfeiyun.agmp.iots.device.mapper.IotWarnlogMapper">
-    
-    <resultMap type="IotWarnlog" id="IotWarnlogResult">
-        <result property="id"    column="id"    />
-        <result property="wlBid"    column="wlBid"    />
-        <result property="wcBid"    column="wcBid"    />
-        <result property="wlContent"    column="wlContent"    />
-        <result property="wlContentsimple"    column="wlContentsimple"    />
-        <result property="wlTime"    column="wlTime"    />
-        <result property="msgBatchid"    column="msgBatchid"    />
-        <result property="devBid"    column="devBid"    />
-        <result property="wlPushstatus"    column="wlPushstatus"    />
-        <result property="wlDelstatus"    column="wlDelstatus"    />
-        <result property="wlCreator"    column="wlCreator"    />
-        <result property="wlCreateddate"    column="wlCreateddate"    />
-        <result property="wlModifier"    column="wlModifier"    />
-        <result property="wlModifieddate"    column="wlModifieddate"    />
-    </resultMap>
-
-    <sql id="selectIotWarnlogVo">
-        select IotWarnlog.id, wlBid, IotWarnlog.wcBid, wlContent, wlContentsimple, wlTime, msgBatchid
-        , wlDelstatus, wlCreator, wlCreateddate, wlModifier, wlModifieddate
-        ,IotWarnlog.devBid,IotWarnlog.wlPushstatus
-        ,IotWarnconfig.wcName,IotWarnconfig.wcType,IotWarnconfig.devBid,IotWarnconfig.wcLevel
-        ,IotWarnconfig.wcNoticetype,IotWarnconfig.wcRevrole,IotWarnconfig.wcRecvuser
-        ,IotWarnconfig.wcTimerange, IotWarnconfig.wcSuggestion, IotWarnconfig.wcPushtype
-        ,IotDevice.devName,IotDevice.devCode
-        from IotWarnlog
-        left join IotWarnconfig on IotWarnconfig.wcBid = IotWarnlog.wcBid
-        left join IotDevice on IotDevice.devBid = IotWarnconfig.devBid
-    </sql>
-
-    <select id="selectIotWarnlogList" parameterType="IotWarnlog" resultMap="IotWarnlogResult">
-        <include refid="selectIotWarnlogVo"/>
-        <where>  
-            <if test="wlBid != null  and wlBid != ''"> and wlBid = #{wlBid}</if>
-            <if test="wcBid != null  and wcBid != ''"> and wcBid = #{wcBid}</if>
-            <if test="wlContent != null  and wlContent != ''"> and wlContent like concat('%', #{wlContent}, '%')</if>
-            <if test="wlContentsimple != null  and wlContentsimple != ''"> and wlContentsimple like concat('%', #{wlContentsimple}, '%')</if>
-            <if test="wlTime != null  and wlTime != ''"> and wlTime = #{wlTime}</if>
-            <if test="msgBatchid != null  and msgBatchid != ''"> and msgBatchid = #{msgBatchid}</if>
-            <if test="devBid != null  and devBid != ''"> and devBid = #{devBid}</if>
-            <if test="wlPushstatus != null  and wlPushstatus != ''"> and wlPushstatus = #{wlPushstatus}</if>
-            <if test="wlDelstatus != null  and wlDelstatus != ''"> and wlDelstatus = #{wlDelstatus}</if>
-            <if test="wlCreator != null  and wlCreator != ''"> and wlCreator = #{wlCreator}</if>
-            <if test="wlCreateddate != null  and wlCreateddate != ''"> and wlCreateddate = #{wlCreateddate}</if>
-            <if test="wlModifier != null  and wlModifier != ''"> and wlModifier = #{wlModifier}</if>
-            <if test="wlModifieddate != null  and wlModifieddate != ''"> and wlModifieddate = #{wlModifieddate}</if>
-        </where>
-    </select>
-    
-    <select id="selectIotWarnlogById" parameterType="Long" resultMap="IotWarnlogResult">
-        <include refid="selectIotWarnlogVo"/>
-        where id = #{id}
-    </select>
-
-    <select id="selectIotWarnlogByBid" parameterType="String" resultType="IotWarnlogResVo">
-        <include refid="selectIotWarnlogVo"/>
-        where wlBid = #{wlBid}
-    </select>
-        
-    <insert id="insertIotWarnlog" parameterType="IotWarnlog" useGeneratedKeys="true" keyProperty="id">
-        insert into IotWarnlog
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="wlBid != null">wlBid,</if>
-            <if test="wcBid != null">wcBid,</if>
-            <if test="wlContent != null">wlContent,</if>
-            <if test="wlContentsimple != null">wlContentsimple,</if>
-            <if test="wlTime != null">wlTime,</if>
-            <if test="msgBatchid != null">msgBatchid,</if>
-            <if test="devBid != null">devBid,</if>
-            <if test="wlPushstatus != null">wlPushstatus,</if>
-            <if test="wlDelstatus != null">wlDelstatus,</if>
-            <if test="wlCreator != null">wlCreator,</if>
-            <if test="wlCreateddate != null">wlCreateddate,</if>
-            <if test="wlModifier != null">wlModifier,</if>
-            <if test="wlModifieddate != null">wlModifieddate,</if>
-         </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="wlBid != null">#{wlBid},</if>
-            <if test="wcBid != null">#{wcBid},</if>
-            <if test="wlContent != null">#{wlContent},</if>
-            <if test="wlContentsimple != null">#{wlContentsimple},</if>
-            <if test="wlTime != null">#{wlTime},</if>
-            <if test="msgBatchid != null">#{msgBatchid},</if>
-            <if test="devBid != null">#{devBid},</if>
-            <if test="wlPushstatus != null">#{wlPushstatus},</if>
-            <if test="wlDelstatus != null">#{wlDelstatus},</if>
-            <if test="wlCreator != null">#{wlCreator},</if>
-            <if test="wlCreateddate != null">#{wlCreateddate},</if>
-            <if test="wlModifier != null">#{wlModifier},</if>
-            <if test="wlModifieddate != null">#{wlModifieddate},</if>
-         </trim>
-    </insert>
-
-    <update id="updateIotWarnlog" parameterType="IotWarnlog">
-        update IotWarnlog
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="wlBid != null">wlBid = #{wlBid},</if>
-            <if test="wcBid != null">wcBid = #{wcBid},</if>
-            <if test="wlContent != null">wlContent = #{wlContent},</if>
-            <if test="wlContentsimple != null">wlContentsimple = #{wlContentsimple},</if>
-            <if test="wlTime != null">wlTime = #{wlTime},</if>
-            <if test="msgBatchid != null">msgBatchid = #{msgBatchid},</if>
-            <if test="devBid != null">devBid = #{devBid},</if>
-            <if test="wlPushstatus != null">wlPushstatus = #{wlPushstatus},</if>
-            <if test="wlDelstatus != null">wlDelstatus = #{wlDelstatus},</if>
-            <if test="wlCreator != null">wlCreator = #{wlCreator},</if>
-            <if test="wlCreateddate != null">wlCreateddate = #{wlCreateddate},</if>
-            <if test="wlModifier != null">wlModifier = #{wlModifier},</if>
-            <if test="wlModifieddate != null">wlModifieddate = #{wlModifieddate},</if>
-        </trim>
-        where wlBid = #{wlBid}
-    </update>
-
-    <delete id="deleteIotWarnlogById" parameterType="Long">
-        delete from IotWarnlog where id = #{id}
-    </delete>
-
-    <delete id="deleteIotWarnlogByIds" parameterType="String">
-        delete from IotWarnlog where id in 
-        <foreach item="id" collection="array" open="(" separator="," close=")">
-            #{id}
-        </foreach>
-    </delete>
-</mapper>

+ 0 - 104
src/main/resources/mapper/IotWarntypeMapper.xml

@@ -1,104 +0,0 @@
-<?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="com.yunfeiyun.agmp.iots.device.mapper.IotWarntypeMapper">
-    
-    <resultMap type="IotWarntype" id="IotWarntypeResult">
-        <result property="id"    column="id"    />
-        <result property="cId"    column="cId"    />
-        <result property="wtBid"    column="wtBid"    />
-        <result property="wtName"    column="wtName"    />
-        <result property="wtCata"    column="wtCata"    />
-        <result property="devtypeBid"    column="devtypeBid"    />
-        <result property="wtDelstatus"    column="wtDelstatus"    />
-        <result property="wtCreator"    column="wtCreator"    />
-        <result property="wtCreateddate"    column="wtCreateddate"    />
-        <result property="wtModifier"    column="wtModifier"    />
-        <result property="wtModifieddate"    column="wtModifieddate"    />
-    </resultMap>
-
-    <sql id="selectIotWarntypeVo">
-        select id, cId, wtBid, wtName, wtCata, devtypeBid, wtDelstatus, wtCreator, wtCreateddate, wtModifier, wtModifieddate from IotWarntype
-    </sql>
-
-    <select id="selectIotWarntypeList" parameterType="IotWarntype" resultType="IotWarntypeResVo">
-        <include refid="selectIotWarntypeVo"/>
-        <where>
-            wtDelstatus = '0'
-            <if test="cId != null  and cId != ''"> and cId = #{cId}</if>
-            <if test="wtName != null  and wtName != ''"> and wtName like concat('%', #{wtName}, '%')</if>
-            <if test="wtCata != null  and wtCata != ''"> and wtCata = #{wtCata}</if>
-            <if test="devtypeBid != null  and devtypeBid != ''"> and devtypeBid = #{devtypeBid}</if>
-            <if test="wtDelstatus != null  and wtDelstatus != ''"> and wtDelstatus = #{wtDelstatus}</if>
-            <if test="wtCreator != null  and wtCreator != ''"> and wtCreator = #{wtCreator}</if>
-            <if test="wtCreateddate != null  and wtCreateddate != ''"> and wtCreateddate = #{wtCreateddate}</if>
-            <if test="wtModifier != null  and wtModifier != ''"> and wtModifier = #{wtModifier}</if>
-            <if test="wtModifieddate != null  and wtModifieddate != ''"> and wtModifieddate = #{wtModifieddate}</if>
-        </where>
-    </select>
-    
-    <select id="selectIotWarntypeById" parameterType="Long" resultMap="IotWarntypeResult">
-        <include refid="selectIotWarntypeVo"/>
-        where id = #{id}
-    </select>
-
-    <select id="selectIotWarntypeByBid" parameterType="String" resultType="IotWarntypeResVo">
-        <include refid="selectIotWarntypeVo"/>
-        where wtDelstatus = '0' and wtBid = #{wtBid}
-    </select>
-        
-    <insert id="insertIotWarntype" parameterType="IotWarntype" useGeneratedKeys="true" keyProperty="id">
-        insert into IotWarntype
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="cId != null">cId,</if>
-            <if test="wtBid != null">wtBid,</if>
-            <if test="wtName != null">wtName,</if>
-            <if test="wtCata != null">wtCata,</if>
-            <if test="devtypeBid != null">devtypeBid,</if>
-            <if test="wtDelstatus != null">wtDelstatus,</if>
-            <if test="wtCreator != null">wtCreator,</if>
-            <if test="wtCreateddate != null">wtCreateddate,</if>
-            <if test="wtModifier != null">wtModifier,</if>
-            <if test="wtModifieddate != null">wtModifieddate,</if>
-         </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="cId != null">#{cId},</if>
-            <if test="wtBid != null">#{wtBid},</if>
-            <if test="wtName != null">#{wtName},</if>
-            <if test="wtCata != null">#{wtCata},</if>
-            <if test="devtypeBid != null">#{devtypeBid},</if>
-            <if test="wtDelstatus != null">#{wtDelstatus},</if>
-            <if test="wtCreator != null">#{wtCreator},</if>
-            <if test="wtCreateddate != null">#{wtCreateddate},</if>
-            <if test="wtModifier != null">#{wtModifier},</if>
-            <if test="wtModifieddate != null">#{wtModifieddate},</if>
-         </trim>
-    </insert>
-
-    <update id="updateIotWarntype" parameterType="IotWarntype">
-        update IotWarntype
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="wtName != null">wtName = #{wtName},</if>
-            <if test="wtCata != null">wtCata = #{wtCata},</if>
-            <if test="devtypeBid != null">devtypeBid = #{devtypeBid},</if>
-            <if test="wtDelstatus != null">wtDelstatus = #{wtDelstatus},</if>
-            <if test="wtCreator != null">wtCreator = #{wtCreator},</if>
-            <if test="wtCreateddate != null">wtCreateddate = #{wtCreateddate},</if>
-            <if test="wtModifier != null">wtModifier = #{wtModifier},</if>
-            <if test="wtModifieddate != null">wtModifieddate = #{wtModifieddate},</if>
-        </trim>
-        where wtBid = #{wtBid}
-    </update>
-
-    <delete id="deleteIotWarntypeById" parameterType="Long">
-        delete from IotWarntype where id = #{id}
-    </delete>
-
-    <delete id="deleteIotWarntypeByBids" parameterType="String">
-        update IotWarntype set wtDelstatus = '1' where wtBid in
-        <foreach item="wtBid" collection="array" open="(" separator="," close=")">
-            #{wtBid}
-        </foreach>
-    </delete>
-</mapper>