update 查询地锁列表接口

This commit is contained in:
Lemon
2023-08-11 14:45:07 +08:00
parent 4026f068de
commit 74e4eb3c37

View File

@@ -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<PileConnectorInfoVO> 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);