...
|
...
|
@@ -29,7 +29,6 @@ import com.yohobuy.platform.dal.grass.*; |
|
|
import com.yohobuy.platform.dal.grass.model.*;
|
|
|
import com.yohobuy.platform.dal.guang.IAuthorDAO;
|
|
|
import com.yohobuy.platform.dal.guang.model.Author;
|
|
|
import com.yohobuy.platform.dal.shops.model.Product;
|
|
|
import com.yohobuy.platform.grass.cache.UserInfoCacheHelper;
|
|
|
import com.yohobuy.platform.grass.service.IGrassArticleService;
|
|
|
import com.yohobuy.platform.grass.service.IGrassRefreshCacheService;
|
...
|
...
|
@@ -2257,7 +2256,15 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
grassFindGoods.setProductType(product.getProductSource());
|
|
|
grassFindGoods.setProductSkn(product.getProductSkn());
|
|
|
grassFindGoods.setUpdateTime(time);
|
|
|
//发现好物初始喜欢数
|
|
|
String initThresholdStr = configReader.getString("platform.grass.findgoods.favoriteNum.initThreshold","");
|
|
|
//取区间随机数
|
|
|
String[] initStr = initThresholdStr.split(",");
|
|
|
int min = Integer.valueOf(initStr[0]);
|
|
|
int max = Integer.valueOf(initStr[1]);
|
|
|
grassFindGoods.setVirtualNum((new Random().nextInt(max-min)) + min);
|
|
|
grassFindGoodsDAO.insert(grassFindGoods);
|
|
|
|
|
|
//清除发现好物列表缓存
|
|
|
logger.info("clear findgoodlist, type=1008");
|
|
|
GrassCacheReq cacheReq = new GrassCacheReq();
|
...
|
...
|
|