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
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
package com.yeshi.fanli.service.inter.goods;
 
import java.util.List;
 
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.multipart.MultipartFile;
 
import com.yeshi.fanli.entity.admin.GoodsClassAdmin;
import com.yeshi.fanli.entity.bus.clazz.GoodsClass;
 
public interface GoodsClassService {
    
    public GoodsClass getGoodsClass(long gcid);
    
    
    public GoodsClass getGoodsClassCache(long gcid);
 
    public List<GoodsClassAdmin> getGoodsClassAdmins(int i, String platform,
            String packages, String key);
 
    public int getCount(String platform, String packages, String key);
 
    public Integer addGoodsClass(GoodsClass goodsClass);
 
    public void deleteGoodsClasss(long[] gcids);
 
    public Integer updateGoodsClass(GoodsClass goodsClass);
    /**
     * 获取所有分类
     * @return
     */
    public List<GoodsClass> getGoodsClassAll();
 
    /**
     * 
     * 方法说明: 通过id获取商品类型的Key
     * @author mawurui
     * createTime 2018年4月26日 下午3:51:56
     * @param id
     * @return
     */
    public String getKwById(Long id);
 
    /**
     * 上传图片
     * @param record
     * @param file
     * @return
     * @throws Exception
     */
    public void uploadPicture(GoodsClass record, MultipartFile file) throws Exception;
    
    /**
     * 新增类别
     * @param record
     * @param file
     * @return
     * @throws Exception
     */
    public long saveAdd(GoodsClass record, MultipartFile file) throws Exception;
 
    public void deleteGoodsClass(long id);
 
    public void removePicture(GoodsClass record) throws Exception;
    
    
    public List<GoodsClass> queryAll(String platform, String packages) throws Exception;
    
    /**
     * 根据排序id查询
     * @param orderby
     * @return
     */
    public List<GoodsClass> getByorderby(int orderby);
 
    
    /**
     * 查询所有
     * @return
     */
    public List<GoodsClass> queryAll();
 
    /**
     * 选择性更新
     * @param record
     * @return
     */
    public int updateByPrimaryKeySelective(GoodsClass record);
 
    public GoodsClass selectByPrimaryKey(Long gcid);
 
 
}