Commit 6675e9b1 by 田超

Merge branch 'feature/1004406' into 'master'

Feature/1004406

See merge request rays/pcloud-book!1228
parents 30b9c818 0815fd61
......@@ -2504,8 +2504,9 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
}
Integer expireTime = 60 * 5;
JedisClusterUtils.setJsonList(key, erpPublishNumQueryParams, expireTime);
for (ERPPublishNumDTO erpPublishNumQueryParam : erpPublishNumQueryParams) {
result.add(erpPublishNumQueryParam.getBookId());
List<ERPPublishNumDTO> booksByIndex = getBooksByIndex(index, erpPublishNumQueryParams);
for (ERPPublishNumDTO erpPublishNumDTO : booksByIndex) {
result.add(erpPublishNumDTO.getBookId());
}
}else{
List<ERPPublishNumDTO> bookList = JedisClusterUtils.getJsonList(key, ERPPublishNumDTO.class);
......@@ -2526,7 +2527,7 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
return result;
}else{
for(int i=index*500;i<(index+1)*500;i++){
if(source.size()>=i) {
if(source.size()>i) {
result.add(source.get(i));
}else {
break;
......
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