|
|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="IotWarnlog" id="IotWarnlogResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="wlBid" column="wlBid" />
|
|
|
+ <result property="wcBid" column="wcBid"/>
|
|
|
<result property="wlName" column="wlName" />
|
|
|
<result property="wlType" column="wlType" />
|
|
|
<result property="wlContent" column="wlContent" />
|
|
|
@@ -23,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectIotWarnlogVo">
|
|
|
- select id, wlBid, wlName, wlType, wlContent, wlLevel, devtypeBid, devBid, status, wlDealuserid, wlDealresult, wlDealtime, wlCreateddate, wlData, tid from IotWarnlog
|
|
|
+ select id, wlBid, wlName,wcBid, wlType, wlContent, wlLevel, devtypeBid, devBid, status, wlDealuserid, wlDealresult, wlDealtime, wlCreateddate, wlData, tid from IotWarnlog
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectIotWarnlogList" parameterType="IotWarnlog" resultMap="IotWarnlogResult">
|
|
|
@@ -31,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
|
<if test="wlBid != null and wlBid != ''"> and wlBid = #{wlBid}</if>
|
|
|
<if test="wlName != null and wlName != ''"> and wlName like concat('%', #{wlName}, '%')</if>
|
|
|
+ <if test="wcBid != null and wcBid != ''">and wcBid = #{wcBid}</if>
|
|
|
<if test="wlType != null and wlType != ''"> and wlType = #{wlType}</if>
|
|
|
<if test="wlContent != null and wlContent != ''"> and wlContent = #{wlContent}</if>
|
|
|
<if test="wlLevel != null and wlLevel != ''"> and wlLevel = #{wlLevel}</if>
|
|
|
@@ -57,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="wlBid != null">wlBid,</if>
|
|
|
<if test="wlName != null">wlName,</if>
|
|
|
+ <if test="wcBid != null">wcBid,</if>
|
|
|
<if test="wlType != null">wlType,</if>
|
|
|
<if test="wlContent != null">wlContent,</if>
|
|
|
<if test="wlLevel != null">wlLevel,</if>
|
|
|
@@ -74,6 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="wlBid != null">#{wlBid},</if>
|
|
|
<if test="wlName != null">#{wlName},</if>
|
|
|
+ <if test="wcBid != null">#{wcBid},</if>
|
|
|
<if test="wlType != null">#{wlType},</if>
|
|
|
<if test="wlContent != null">#{wlContent},</if>
|
|
|
<if test="wlLevel != null">#{wlLevel},</if>
|
|
|
@@ -95,6 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="wlBid != null">wlBid = #{wlBid},</if>
|
|
|
<if test="wlName != null">wlName = #{wlName},</if>
|
|
|
+ <if test="wcBid != null">wcBid = #{wcBid},</if>
|
|
|
<if test="wlType != null">wlType = #{wlType},</if>
|
|
|
<if test="wlContent != null">wlContent = #{wlContent},</if>
|
|
|
<if test="wlLevel != null">wlLevel = #{wlLevel},</if>
|
|
|
@@ -129,6 +134,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
|
<if test="wlBid != null and wlBid != ''"> and wlBid = #{wlBid}</if>
|
|
|
<if test="wlName != null and wlName != ''"> and wlName like concat('%', #{wlName}, '%')</if>
|
|
|
+ <if test="wcBid != null and wcBid != ''">and wcBid = #{wcBid}</if>
|
|
|
<if test="wlType != null and wlType != ''"> and wlType = #{wlType}</if>
|
|
|
<if test="wlContent != null and wlContent != ''"> and wlContent = #{wlContent}</if>
|
|
|
<if test="wlLevel != null and wlLevel != ''"> and wlLevel = #{wlLevel}</if>
|