Преглед изворни кода

判断设备列表是否为空

wangchangsheng пре 2 година
родитељ
комит
44a9ad6896

+ 2 - 1
web/backmanagerconfig-xktj/src/main/java/com/gyee/backconfig/service/auto/impl/ProEconTestingPointServiceImpl.java

@@ -510,7 +510,8 @@ public class ProEconTestingPointServiceImpl extends ServiceImpl<ProEconTestingPo
             List<ProBasicEquipment> wtls = CacheContext.poequipmentmap.get(wp.getId());
 
 
-            if (!ls.isEmpty()) {
+            if (!ls.isEmpty() && null != wtls ) {
+
                 for (ProBasicEquipment wt : wtls) {
 
                     List<ProBasicEquipmentPoint> points = new ArrayList<>();