mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 04:16:51 +08:00
Merge branch 'refs/heads/zcwy0813-yang' into dev0525
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);
|
List<Object> listFields = this.sqlFindList(sql, startTime, endTime,majorId,pageSize);
|
||||||
|
|
||||||
System.out.println(listFields.get(0).getClass());
|
|
||||||
|
|
||||||
|
|
||||||
List<String> collect = listFields.stream().map(item -> {
|
List<String> collect = listFields.stream().map(item -> {
|
||||||
return item.toString();
|
return item.toString();
|
||||||
}).collect(Collectors.toList());
|
}).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());
|
List<String> serializedCases = casesList.stream().map(item -> JSONUtil.toJsonStr(item)).collect(Collectors.toList());
|
||||||
stringRedisTemplate.opsForList().rightPushAll(cacheKey, serializedCases);
|
stringRedisTemplate.opsForList().rightPushAll(cacheKey, serializedCases);
|
||||||
stringRedisTemplate.expire(cacheKey, 600, TimeUnit.SECONDS);
|
// stringRedisTemplate.expire(cacheKey, 600, TimeUnit.SECONDS);
|
||||||
return casesList;
|
return casesList;
|
||||||
}
|
}
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
|||||||
Reference in New Issue
Block a user