|
|
@@ -30,6 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<include refid="selectIotSporeVo"/>
|
|
|
<where>
|
|
|
sporeDelstatus = 0
|
|
|
+ <if test="tid != null and tid != ''"> and tid = #{tid}</if>
|
|
|
<if test="sporeBid != null and sporeBid != ''"> and sporeBid = #{sporeBid}</if>
|
|
|
<if test="cId != null and cId != ''"> and cId = #{cId}</if>
|
|
|
<if test="sporeType != null and sporeType != ''"> and sporeType = #{sporeType}</if>
|
|
|
@@ -64,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sporeDelstatus != null">sporeDelstatus,</if>
|
|
|
<if test="sporeInsertType != null">sporeInsertType,</if>
|
|
|
<if test="sporeType != null">sporeType,</if>
|
|
|
+ tid
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="sporeBid != null and sporeBid != ''">#{sporeBid},</if>
|
|
|
@@ -78,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sporeDelstatus != null">#{sporeDelstatus},</if>
|
|
|
<if test="sporeInsertType != null">#{sporeInsertType},</if>
|
|
|
<if test="sporeType != null">#{sporeType},</if>
|
|
|
+ #{tid}
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -119,17 +122,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from IotSpore
|
|
|
left join FmsCalarm on FmsCalarm.calarmId = IotSpore.sporeId
|
|
|
</sql>
|
|
|
-
|
|
|
- <select id="selectIotSporeList1" parameterType="IotSpore" resultType="IotSporeResVo">
|
|
|
- <include refid="selectIotSporeVo1"/>
|
|
|
- <where>
|
|
|
- sporeDelstatus = 0
|
|
|
- <if test="sporeBid != null and sporeBid != ''"> and sporeBid = #{sporeBid}</if>
|
|
|
- <if test="cId != null and cId != ''"> and cId = #{cId}</if>
|
|
|
- <if test="sporeType != null and sporeType != ''"> and sporeType = #{sporeType}</if>
|
|
|
- <if test="sporeName != null and sporeName != ''"> and sporeName like concat('%', #{sporeName}, '%')</if>
|
|
|
- <if test="sporeId != null and sporeId != ''"> and sporeId = #{sporeId}</if>
|
|
|
- <if test="sporeRemark != null and sporeRemark != ''"> and sporeRemark like concat('%', #{sporeRemark}, '%')</if>
|
|
|
- </where>
|
|
|
- </select>
|
|
|
</mapper>
|