diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBasicInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBasicInfoServiceImpl.java index e21d68fb9..6011970b7 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBasicInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/PileBasicInfoServiceImpl.java @@ -731,9 +731,11 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService { vo = new GroundLockInfoVO(); lockInfoList = new ArrayList<>(); String pileSn = entry.getKey(); + String pileName = ""; // String pileName = entry.getKey(); List list = entry.getValue(); for (PileConnectorInfoVO pileConnectorInfoVO : list) { + pileName = pileConnectorInfoVO.getName(); // 查地锁缓存状态,有缓存说明有地锁信息 String redisKey = CacheConstants.GROUND_LOCK_DATA + pileConnectorInfoVO.getPileConnectorCode(); GroundLockData data = redisCache.getCacheObject(redisKey); @@ -755,7 +757,7 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService { .build()); } vo.setPileSn(pileSn); - // vo.setName(pileName); + vo.setName(pileName); vo.setLockInfos(lockInfoList); resultList.add(vo);