|
|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.yunfeiyun.agmp.iotm.web.mapper.IotWarnlogMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="IotWarnlog" id="IotWarnlogResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="wlBid" column="wlBid" />
|
|
|
@@ -24,12 +24,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectIotWarnlogVo">
|
|
|
- select id, wlBid, wlName,wcBid, 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,wlSendmsgtime,wlSendmsgstatus from IotWarnlog
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectIotWarnlogList" parameterType="IotWarnlog" resultMap="IotWarnlogResult">
|
|
|
<include refid="selectIotWarnlogVo"/>
|
|
|
- <where>
|
|
|
+ <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>
|
|
|
@@ -48,12 +48,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tid != null and tid != ''"> and tid = #{tid}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectIotWarnlogById" resultMap="IotWarnlogResult">
|
|
|
<include refid="selectIotWarnlogVo"/>
|
|
|
where wlBid = #{wlBid} and tid = #{tid}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertIotWarnlog" parameterType="IotWarnlog" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into IotWarnlog
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -155,4 +155,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-</mapper>
|
|
|
+</mapper>
|