mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
案例萃取,bug修复
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user