Administrator
2018-10-30 c0c91fbda1ba601c4c8cb6d12fd43dfbe02eea5d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.yeshi.fanli.service.inter.goods;
 
import java.util.List;
import java.util.Map;
 
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
 
import com.yeshi.fanli.entity.bus.recommend.RecommendSection;
import com.yeshi.fanli.entity.bus.recommend.RecommendSectionGoods;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
import com.yeshi.fanli.exception.ExistObjectException;
import com.yeshi.fanli.exception.NotExistObjectException;
 
public interface RecommendSectionGoodsService {
    
    public List<RecommendSectionGoods> getRecommendSectionGoods(long id, int counts);
 
    public List<RecommendSectionGoods> getRecommendSectionGoods(int index,
            long rsid, String key);
 
    public int getCount(long rsid, String key);
    @CacheEvict(value="sectionCache",allEntries=true)
    public void deleteSectionGoods(long[] rsgids);
    @CacheEvict(value="sectionCache",allEntries=true)
    public void addSectionGoods(long rsid, String tbgid) throws ExistObjectException;
 
    public RecommendSectionGoods getRecommendSectionGoods(long id);
    
    @CacheEvict(value="sectionCache",allEntries=true)
    public void updateRecommendSectionGoods(RecommendSectionGoods rsg) throws NotExistObjectException;
    
    @CacheEvict(value="sectionCache",allEntries=true)
    public void deleteRecommendSectionGoodsByTB(long id);
    
    @CacheEvict(value="sectionCache",allEntries=true)
    public void addRecommendSectionGoods(RecommendSection recommendSection,
            TaoBaoGoodsBrief taobao) throws ExistObjectException;
    @CacheEvict(value="sectionCache",allEntries=true)
    public void deleteSectionGoodsBySections(long[] rsids);
    
 
    public Map<Long, List<RecommendSectionGoods>> getAllSectionGoodsMap();
    
    
    public List<RecommendSectionGoods> getSectionGoods(int count);
    
    public void deleteRecommendSectionGoodsByTbAuctionId(long auctionId);
 
 
}