|
|
@@ -7,7 +7,7 @@
|
|
|
<resultMap type="IotDevice" id="IotDeviceResult">
|
|
|
<result property="id" column="id"/>
|
|
|
<result property="devBid" column="devBid"/>
|
|
|
- <result property="cId" column="cId"/>
|
|
|
+ <result property="tid" column="tid"/>
|
|
|
<result property="devtypeBid" column="devtypeBid"/>
|
|
|
<result property="firmBid" column="firmBid"/>
|
|
|
<result property="devCode" column="devCode"/>
|
|
|
@@ -132,7 +132,7 @@
|
|
|
select
|
|
|
iotd.id,
|
|
|
iotd.devBid,
|
|
|
- iotd.cId,
|
|
|
+ iotd.tid,
|
|
|
iotd.devtypeBid,
|
|
|
iotd.firmBid,
|
|
|
iotd.devCode,
|
|
|
@@ -172,7 +172,7 @@
|
|
|
<update id="updateIotDevice" parameterType="IotDevice">
|
|
|
update IotDevice
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="cId != null">cId = #{cId},</if>
|
|
|
+ <if test="tid != null">tid = #{tid},</if>
|
|
|
<if test="devtypeBid != null and devtypeBid != ''">devtypeBid = #{devtypeBid},</if>
|
|
|
<if test="firmBid != null">firmBid = #{firmBid},</if>
|
|
|
<if test="devCode != null">devCode = #{devCode},</if>
|
|
|
@@ -210,7 +210,7 @@
|
|
|
<update id="updateIotDeviceByDevCodeAndFirmDev">
|
|
|
update IotDevice
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="cId != null">cId = #{cId},</if>
|
|
|
+ <if test="tid != null">tid = #{tid},</if>
|
|
|
<if test="devtypeBid != null and devtypeBid != ''">devtypeBid = #{devtypeBid},</if>
|
|
|
<if test="firmBid != null">firmBid = #{firmBid},</if>
|
|
|
<if test="devCode != null">devCode = #{devCode},</if>
|
|
|
@@ -254,7 +254,7 @@
|
|
|
insert into IotDevice
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="devBid != null">devBid,</if>
|
|
|
- <if test="cId != null">cId,</if>
|
|
|
+ <if test="tid != null">tid,</if>
|
|
|
<if test="devtypeBid != null and devtypeBid != ''">devtypeBid,</if>
|
|
|
<if test="firmBid != null">firmBid,</if>
|
|
|
<if test="devCode != null">devCode,</if>
|
|
|
@@ -293,7 +293,7 @@
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="devBid != null">#{devBid},</if>
|
|
|
- <if test="cId != null">#{cId},</if>
|
|
|
+ <if test="tid != null">#{tid},</if>
|
|
|
<if test="devtypeBid != null and devtypeBid != ''">#{devtypeBid},</if>
|
|
|
<if test="firmBid != null">#{firmBid},</if>
|
|
|
<if test="devCode != null">#{devCode},</if>
|
|
|
@@ -358,7 +358,7 @@
|
|
|
select
|
|
|
iotd.id,
|
|
|
iotd.devBid,
|
|
|
- iotd.cId,
|
|
|
+ iotd.tid,
|
|
|
iotd.devtypeBid,
|
|
|
iotd.firmBid,
|
|
|
iotd.devCode,
|
|
|
@@ -398,7 +398,7 @@
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=";">
|
|
|
update IotDevice
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="item.cId != null">cId = #{item.cId},</if>
|
|
|
+ <if test="item.tid != null">tid = #{item.tid},</if>
|
|
|
<if test="item.devtypeBid != null and item.devtypeBid != ''">devtypeBid = #{item.devtypeBid},</if>
|
|
|
<if test="item.firmBid != null">firmBid = #{item.firmBid},</if>
|
|
|
<if test="item.devCode != null">devCode = #{item.devCode},</if>
|
|
|
@@ -446,7 +446,7 @@
|
|
|
select
|
|
|
d.id,
|
|
|
d.devBid,
|
|
|
- d.cId,
|
|
|
+ d.tid,
|
|
|
d.devtypeBid,
|
|
|
d.firmBid,
|
|
|
d.devCode,
|
|
|
@@ -478,7 +478,7 @@
|
|
|
<where>
|
|
|
devDelstatus = '0'
|
|
|
<if test="devBid != null and devBid != ''">and d.devBid = #{devBid}</if>
|
|
|
- <if test="cId != null and cId != ''">and d.cId = #{cId}</if>
|
|
|
+ <if test="tid != null and tid != ''">and d.tid = #{tid}</if>
|
|
|
<if test="devtypeBids != null and devtypeBids != ''">and e.devtypePid in (${devtypeBids})</if>
|
|
|
<if test="devtypeBid != null and devtypeBid != ''">and e.devtypePid = #{devtypeBid}</if>
|
|
|
<if test="firmBid != null and firmBid != ''">and d.firmBid = #{firmBid}</if>
|