车车 5 сар өмнө
parent
commit
958169fddc

+ 3 - 1
ktg-iscs/src/main/java/com/ktg/iscs/service/impl/IsIsolationPointServiceImpl.java

@@ -205,7 +205,9 @@ public class IsIsolationPointServiceImpl extends ServiceImpl<IsIsolationPointMap
         if (!switchStatusList.isEmpty() && !isIsolationPointPage.getRecords().isEmpty()) {
             for (PointPageVO pointPageVO : isIsolationPointPage.getRecords()) {
                 for (UpdateSwitchStatusDTO updateSwitchStatusDTO : switchStatusList) {
-                    if (pointPageVO.getPointNfc().equals(updateSwitchStatusDTO.getPointNfc())) {
+                    if (StringUtils.isNotBlank(pointPageVO.getPointNfc())
+                            && StringUtils.isNotBlank(updateSwitchStatusDTO.getPointNfc())
+                            && pointPageVO.getPointNfc().equals(updateSwitchStatusDTO.getPointNfc())) {
                         pointPageVO.setSwitchStatus(updateSwitchStatusDTO.getSwitchStatus());
                         pointPageVO.setSwitchLastUpdateTime(updateSwitchStatusDTO.getSwitchLastUpdateTime());
                     }