|
|
@@ -3,11 +3,11 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.yunfeiyun.agmp.iots.device.mapper.IotPestMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="IotPest" id="IotPestResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="pestBid" column="pestBid" />
|
|
|
- <result property="cId" column="cId" />
|
|
|
+ <result property="tid" column="tid" />
|
|
|
<result property="pestName" column="pestName" />
|
|
|
<result property="pestId" column="pestId" />
|
|
|
<result property="pestRemark" column="pestRemark" />
|
|
|
@@ -20,14 +20,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectIotPestVo">
|
|
|
- select id, pestBid, cId, pestName, pestId, pestRemark, pestCreator, pestModifier, pestModifieddate, pestCreatedDate, pestDelstatus, pestInsertType from IotPest
|
|
|
+ select id, pestBid, tid, pestName, pestId, pestRemark, pestCreator, pestModifier, pestModifieddate, pestCreatedDate, pestDelstatus, pestInsertType from IotPest
|
|
|
</sql>
|
|
|
<insert id="insertPest">
|
|
|
- insert into IotPest (id, pestBid, cId, pestName, pestId, pestRemark, pestCreator, pestModifier, pestModifieddate, pestCreatedDate, pestDelstatus, pestInsertType) values
|
|
|
+ insert into IotPest (id, pestBid, tid, pestName, pestId, pestRemark, pestCreator, pestModifier, pestModifieddate, pestCreatedDate, pestDelstatus, pestInsertType) values
|
|
|
(
|
|
|
#{id},
|
|
|
#{pestBid},
|
|
|
- #{cId},
|
|
|
+ #{tid},
|
|
|
#{pestName},
|
|
|
#{pestId},
|
|
|
#{pestRemark},
|
|
|
@@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
|
pestDelstatus = 0
|
|
|
<if test="pestBid != null and pestBid != ''"> and pestBid = #{pestBid}</if>
|
|
|
- <if test="cId != null and cId != ''"> and cId = #{cId}</if>
|
|
|
+ <if test="tid != null and tid != ''"> and tid = #{tid}</if>
|
|
|
<if test="pestName != null and pestName != ''"> and pestName like concat('%', #{pestName}, '%')</if>
|
|
|
<if test="pestId != null and pestId != ''"> and pestId = #{pestId}</if>
|
|
|
<if test="pestInsertType != null and pestInsertType != ''"> and pestInsertType = #{pestInsertType}</if>
|
|
|
@@ -57,4 +57,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectIotPestVo"/>
|
|
|
where pestDelstatus = 0 and pestBid = #{pestBid}
|
|
|
</select>
|
|
|
-</mapper>
|
|
|
+</mapper>
|