案例萃取,bug修复

This commit is contained in:
yang
2024-09-10 09:39:42 +08:00
parent d24df7e30a
commit 67d34224e3
2 changed files with 1 additions and 4 deletions

View File

@@ -75,9 +75,6 @@ public class CasesRankDao extends BaseDao<CasesRank> {
List<Object> listFields = this.sqlFindList(sql, startTime, endTime,majorId,pageSize);
System.out.println(listFields.get(0).getClass());
List<String> collect = listFields.stream().map(item -> {
return item.toString();
}).collect(Collectors.toList());

View File

@@ -1227,7 +1227,7 @@ public class CasesServiceImpl implements ICasesService {
// 缓存不存在数据,数据库中不存在数据,重建缓存
List<String> serializedCases = casesList.stream().map(item -> JSONUtil.toJsonStr(item)).collect(Collectors.toList());
stringRedisTemplate.opsForList().rightPushAll(cacheKey, serializedCases);
stringRedisTemplate.expire(cacheKey, 600, TimeUnit.SECONDS);
// stringRedisTemplate.expire(cacheKey, 600, TimeUnit.SECONDS);
return casesList;
}
return Collections.emptyList();