修改查询逻辑

This commit is contained in:
liaozetao
2023-12-18 16:38:28 +08:00
parent d12b77ed50
commit c04c3af34d

View File

@@ -258,11 +258,14 @@ public class LaborStatsAdminService extends BaseService {
}
public List<LaborStatsVo> getListByCacheKey(String cachKey) {
public List<LaborStatsVo> getListByCacheKey(String cacheKey) {
List<LaborStatsVo> laborStatsVos = null;
String vo = jedisService.get(cachKey);
String vo = jedisService.get(cacheKey);
if (StringUtils.isNotBlank(vo)) {
laborStatsVos = JSONArray.parseArray(vo, LaborStatsVo.class);
if (laborStatsVos == null) {
laborStatsVos = Collections.emptyList();
}
}
return laborStatsVos;
}