admin
2019-09-06 2b35e920a8873ba81530f4d86002a459185725ff
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
package com.yeshi.fanli.service.inter.brand;
 
import java.util.List;
 
import org.springframework.web.multipart.MultipartFile;
 
import com.yeshi.fanli.entity.brand.BrandClassShop;
import com.yeshi.fanli.entity.taobao.TaoBaoShop;
import com.yeshi.fanli.exception.brand.BrandClassShopException;
import com.yeshi.fanli.vo.brand.TaoBaoShopVO;
 
import net.sf.json.JSONObject;
 
/**
 * 品牌店铺服务
 * 
 * @author Administrator
 *
 */
public interface BrandClassShopService {
 
 
    /**
     * 是否存在
     * @param list
     * @return
     */
    public List<BrandClassShop> getExistByShopIds(List<Long> list);
 
    /**
     * 添加店铺信息
     * @param cid
     * @param list
     * @throws BrandClassShopException
     */
    public String saveShopInfo(Long cid, List<Long> list) throws BrandClassShopException;
 
    /**
     * 查询列表
     * @param start
     * @param count
     * @param key
     * @param cid
     * @param state
     * @return
     */
    public List<BrandClassShop> listQuery(long start, int count, String key, Long cid, Integer state);
 
    public long countQuery(String key, Long cid, Integer state);
 
    /**
     * 更新店铺信息
     * @param file
     * @param id
     * @param cid
     * @param shopName
     * @param state
     * @throws BrandClassShopException
     */
    public void changeShopInfo(MultipartFile file, Long id, Long cid, String shopName, Integer state, Integer top,String key)
            throws BrandClassShopException;
    
    
    /**
     * 批量删除
     * @param list
     * @return
     */
    public void deleteBatchByPrimaryKey(List<Long> list);
 
    /*
     * 排序
     */
    public void updateOrder(Long id, Integer moveType) throws BrandClassShopException, Exception;
 
    /**
     * 前端查询并缓存
     * @param page
     * @param cid
     * @return
     */
    public JSONObject listEffectiveCache(int page, Long cid);
 
    /**
     * 点击次数
     * @param shopId
     */
    public void addClick(Long shopId);
 
    /**
     * 根据分类id进行删除
     * @param list
     */
    public void deleteBatchByClassId(List<Long> list);
    
    
    /**
     * 更新品牌商品
     */
    public void updateShopGoods();
 
    /**
     * 店铺列表
     * @param page
     * @param cid
     * @return
     */
    public JSONObject listEffectiveCacheV2(int page, Long cid);
 
    
    /**
     *  兼容2.0
     * @param start
     * @param count
     * @param cid
     * @return
     */
    public List<TaoBaoShopVO> listEffectiveShop(long start, int count, Long cid);
 
    
    
    public long countBrandShopinfo(Long cid);
 
    
    /**
     * 分类下店铺
     * @param cid
     * @return
     */
    public List<TaoBaoShop> listEffectiveClassShop(Long cid);
    
}