diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/DeptLineMapper.xml b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/DeptLineMapper.xml
index ca7e3341d..13bf15d54 100644
--- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/DeptLineMapper.xml
+++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/DeptLineMapper.xml
@@ -111,7 +111,7 @@
inner join pq_line dev on voltage.pid = dev.id
inner join pq_device device on dev.id = device.id
inner join pq_line substation on dev.pid = substation.id
- inner join pq_substation sub on sub.id = substation.id
+ left join pq_substation sub on sub.id = substation.id
where device.Dev_Model = 1
and point.state = 1
and device.Run_Flag = 0
diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/LineMapper.xml b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/LineMapper.xml
index 05f27a045..9987e73b5 100644
--- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/LineMapper.xml
+++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/mapper/mapping/LineMapper.xml
@@ -308,42 +308,46 @@
FROM
pq_line t1,
pq_device t2
- WHERE
- t1.id = t2.id
-
- AND t2.Dev_Model in
-
- #{item}
-
-
-
- AND t2.Run_Flag in
-
- #{item}
-
-
-
- AND t2.Dev_Data_Type in
-
- #{item}
-
-
-
- AND t2.Com_Flag in
-
- #{item}
-
-
-
- AND t2.manufacturer in
-
- #{item.id}
-
-
- AND t1.id IN
-
- #{item}
-
+
+ t1.id = t2.id
+
+ AND t2.Dev_Model in
+
+ #{item}
+
+
+
+ AND t2.Run_Flag in
+
+ #{item}
+
+
+
+ AND t2.Dev_Data_Type in
+
+ #{item}
+
+
+
+ AND t2.Com_Flag in
+
+ #{item}
+
+
+
+ AND t2.manufacturer in
+
+ #{item.id}
+
+
+
+ AND t1.id IN
+
+ #{item}
+
+
+
+
@@ -353,19 +357,25 @@
from
pq_line t1 ,
pq_voltage t2
- where
- t1.id = t2.id
- and
- t1.id in
-
- #{item}
-
-
- AND t2.scale in
-
- #{item.id}
-
-
+
+ t1.id = t2.id
+
+ and t1.id in
+
+ #{item}
+
+
+
+ AND t2.scale in
+
+ #{item.id}
+
+
+
+
+
+
+