...
|
...
|
@@ -8,12 +8,15 @@ import com.yohobuy.platform.dal.cms.model.GrassFindGoods; |
|
|
import com.yohobuy.platform.dal.cms.req.GrassFindgoodsReq;
|
|
|
import com.yohobuy.platform.dal.grass.IGrassArticleDao;
|
|
|
import com.yohobuy.platform.grass.service.IGrassArticleService;
|
|
|
import com.yohobuy.platform.grass.service.IGrassRefreshCacheService;
|
|
|
import com.yohobuy.platform.model.cms.response.GrassFindgoodsRspBO;
|
|
|
import com.yohobuy.platform.model.common.PageResponseVO;
|
|
|
import com.yohobuy.platform.model.grass.request.GrassCacheReq;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.annotation.Resource;
|
...
|
...
|
@@ -36,6 +39,9 @@ public class GrassFindgoodsServiceImpl implements IGrassFindgoodsService { |
|
|
@Resource
|
|
|
IGrassArticleDao grassArticleDao;
|
|
|
|
|
|
@Autowired
|
|
|
private IGrassRefreshCacheService grassRefreshCacheService;
|
|
|
|
|
|
|
|
|
@Override
|
|
|
public PageResponseVO<GrassFindgoodsRspBO> getGrassFindgoodsList(GrassFindgoodsReq req) {
|
...
|
...
|
@@ -92,7 +98,11 @@ public class GrassFindgoodsServiceImpl implements IGrassFindgoodsService { |
|
|
if(findGoods != null){
|
|
|
grassFindGoodsDAO.deleteById(id);
|
|
|
grassArticleDao.updateMarkFlag(findGoods.getArticleId(),null,null,0);
|
|
|
grassArticleDao.selectByPrimaryKey(findGoods.getArticleId());
|
|
|
//清除发现好物列表缓存
|
|
|
logger.info("clear findgoodlist, type=1008");
|
|
|
GrassCacheReq cacheReq = new GrassCacheReq();
|
|
|
cacheReq.setClearCode(1008);
|
|
|
grassRefreshCacheService.refreshGrassCache(cacheReq);
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
@@ -103,5 +113,10 @@ public class GrassFindgoodsServiceImpl implements IGrassFindgoodsService { |
|
|
return;
|
|
|
}
|
|
|
grassFindGoodsDAO.updateOrderBy(id,orderBy);
|
|
|
//清除发现好物列表缓存
|
|
|
logger.info("clear findgoodlist, type=1008");
|
|
|
GrassCacheReq cacheReq = new GrassCacheReq();
|
|
|
cacheReq.setClearCode(1008);
|
|
|
grassRefreshCacheService.refreshGrassCache(cacheReq);
|
|
|
}
|
|
|
} |
...
|
...
|
|