|
@@ -3,6 +3,7 @@
|
|
|
<mapper namespace="com.xy.mapper.DeviceInfoMapper">
|
|
|
<resultMap id="queryPageMap" type="com.xy.mapper.entity.DeviceInfoQueryPage">
|
|
|
<id column="device_id" property="deviceId"/>
|
|
|
+ <id column="algorithm_id" property="algorithmId"/>
|
|
|
<result column="device_name" property="deviceName"/>
|
|
|
<result column="m" property="m"/>
|
|
|
<result column="lon" property="lon"/>
|
|
@@ -311,11 +312,11 @@
|
|
|
and active_state = #{query.activeState}
|
|
|
</if>
|
|
|
|
|
|
- <if test="query.busyStatus != null ">
|
|
|
+ <if test="query.busyStatus != null">
|
|
|
and busy_state = #{query.busyStatus}
|
|
|
</if>
|
|
|
|
|
|
- <if test="query.deviceType != null ">
|
|
|
+ <if test="query.deviceType != null">
|
|
|
and device_type = #{query.deviceType}
|
|
|
</if>
|
|
|
|
|
@@ -325,14 +326,12 @@
|
|
|
<if test="query.deviceName != null and query.deviceName != ''">
|
|
|
and device_name like concat('%', #{query.deviceName}, '%')
|
|
|
</if>
|
|
|
- <if test="query.deviceIdList != null and query.deviceIdList.size>0 ">
|
|
|
+ <if test="query.deviceIdList != null and query.deviceIdList.size > 0">
|
|
|
and device_id in
|
|
|
<foreach collection="query.deviceIdList" index="index" item="item" open="(" separator="," close=")">
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
-
|
|
|
-
|
|
|
</where>
|
|
|
group by place_line_id
|
|
|
</select>
|
|
@@ -342,7 +341,7 @@
|
|
|
LEFT JOIN device_status s ON s.device_id = d.device_id
|
|
|
<where>
|
|
|
d.active_state = '1'
|
|
|
- <if test="mercIdList != null and mercIdList.size()>0">
|
|
|
+ <if test="mercIdList != null and mercIdList.size() > 0">
|
|
|
AND d.merc_id IN
|
|
|
<foreach collection="mercIdList" item="mercId" index="index"
|
|
|
open="(" close=")" separator=",">
|