Commit 67c475bb authored by tangwei's avatar tangwei

解决冲突

parents 556d9ab3 c5174cfe
...@@ -327,14 +327,15 @@ public class CommonServiceImpl { ...@@ -327,14 +327,15 @@ public class CommonServiceImpl {
public List<StationCacheInfoDto> getListStationCacheInfoDto(){ public List<StationCacheInfoDto> getListStationCacheInfoDto(){
List<StationCacheInfoDto> stationCacheInfoDtoList =redisTemplate.opsForList().range("station_info_cache",0,-1); List<StationCacheInfoDto> stationCacheInfoDtoList =redisTemplate.opsForList().range("station_info_cache",0,-1);
if(stationCacheInfoDtoList!=null){ if(ObjectUtils.isEmpty(stationCacheInfoDtoList)){
try { try {
stationCacheDataInit.run(); stationCacheDataInit.run();
stationCacheInfoDtoList =redisTemplate.opsForList().range("station_info_cache",0,-1);
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }
stationCacheInfoDtoList =redisTemplate.opsForList().range("station_info_cache",0,-1);
return stationCacheInfoDtoList; return stationCacheInfoDtoList;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment