admin
2019-06-05 07c13064382007999e87abe81efe76c98a47dce8
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
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.exception.brand.BrandClassShopException;
 
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)
            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();
    
}