Commit 171686e4 authored by shiyu's avatar shiyu

创建标签

parent e587a9cf
......@@ -112,7 +112,7 @@ public class CacheUtil {
*/
public AsyncLoadingCache<Long, String> appletUserCache = Caffeine.newBuilder()
.maximumSize(5000)
.expireAfterWrite(10, TimeUnit.SECONDS)
.expireAfterAccess(10, TimeUnit.SECONDS)
.buildAsync(k -> getAppletUserList(k));
......@@ -121,7 +121,7 @@ public class CacheUtil {
*/
public AsyncLoadingCache<Long, User> appletUserInfoCache = Caffeine.newBuilder()
.maximumSize(5000)
.expireAfterWrite(30, TimeUnit.SECONDS)
.expireAfterAccess(30, TimeUnit.SECONDS)
.buildAsync(k -> getAppletUsers(k));
......@@ -130,7 +130,7 @@ public class CacheUtil {
*/
public AsyncLoadingCache<Integer, String> systemUserCache = Caffeine.newBuilder()
.maximumSize(500)
.expireAfterWrite(30, TimeUnit.MINUTES)
.expireAfterAccess(30, TimeUnit.MINUTES)
.buildAsync(k -> getSystemUserList(k));
......
package com.wwdz.ch.wx.impl.distribution;
import com.github.pagehelper.PageInfo;
import com.wwdz.ch.core.type.Result;
import com.wwdz.ch.db.dao.CollectionBookSortDao;
import com.wwdz.ch.db.dao.CollectorWhiteListDao;
......@@ -10,7 +9,6 @@ import com.wwdz.ch.db.dao.distribution.CollectionShareRecordDao;
import com.wwdz.ch.db.domain.CollectionBookSort;
import com.wwdz.ch.db.domain.distribution.CollectionBook;
import com.wwdz.ch.db.domain.distribution.CollectionShareRecord;
import com.wwdz.ch.db.domain.distribution.DistributorShareRecord;
import com.wwdz.ch.db.dto.request.distribution.CollectionBookRequestDto;
import com.wwdz.ch.db.dto.request.distribution.CollectionItemsRelationRequestDto;
import com.wwdz.ch.wx.constant.CollectionBookConstants;
......@@ -21,9 +19,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Collectors;
@Service
......@@ -72,7 +68,7 @@ public class CollectionBookServiceImpl implements CollectionBookService {
sortInfo = sortInfo + "," + bookId;
collectionBookSortDao.update(dto.getUserId(), sortInfo);
}
return Result.success();
return Result.success(new HashMap(){{put("id", bookId);}});
} catch (Exception e) {
logger.error("新建收藏册 error: {}", e);
}
......@@ -98,6 +94,8 @@ public class CollectionBookServiceImpl implements CollectionBookService {
return Result.failed();
}
@Override
public Result findList(CollectionBookRequestDto dto) {
try {
......
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