瀏覽代碼

修改bug

车车 5 月之前
父節點
當前提交
958169fddc
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      ktg-iscs/src/main/java/com/ktg/iscs/service/impl/IsIsolationPointServiceImpl.java

+ 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());
                     }