|
@@ -152,7 +152,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
FROM IotDeviceconn AS dc
|
|
FROM IotDeviceconn AS dc
|
|
|
LEFT JOIN TosDevicetype AS dt ON dt.devtypeBid = dc.devtypeBid
|
|
LEFT JOIN TosDevicetype AS dt ON dt.devtypeBid = dc.devtypeBid
|
|
|
<where>
|
|
<where>
|
|
|
- dt.devtypeBid IS NOT NULL
|
|
|
|
|
|
|
+ dc.tid = #{tid} and dt.devtypeBid IS NOT NULL
|
|
|
<if test="devtypeBid != null and devtypeBid != ''"> and dt.devtypeBid = #{devtypeBid}</if>
|
|
<if test="devtypeBid != null and devtypeBid != ''"> and dt.devtypeBid = #{devtypeBid}</if>
|
|
|
<if test="devclassBid != null and devclassBid != ''"> and dt.devclassBid = #{devclassBid}</if>
|
|
<if test="devclassBid != null and devclassBid != ''"> and dt.devclassBid = #{devclassBid}</if>
|
|
|
<if test="devtypeName != null and devtypeName != ''"> and dt.devtypeName like concat('%', #{devtypeName}, '%')</if>
|
|
<if test="devtypeName != null and devtypeName != ''"> and dt.devtypeName like concat('%', #{devtypeName}, '%')</if>
|