yujian
2019-04-08 1da17d215d48e3e3aa9e8d7a3ef526904764f408
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
package com.yeshi.fanli.service.inter.homemodule;
 
import java.util.List;
 
import org.springframework.web.multipart.MultipartFile;
 
import com.yeshi.fanli.entity.bus.homemodule.Special;
 
import net.sf.json.JSONObject;
 
/**
 *  专题
 * 
 * @author Administrator
 *
 */
public interface SpecialService {
 
    public int deleteByPrimaryKey(Long id);
 
    public int insert(Special record);
 
    public int insertSelective(Special record);
 
    public Special selectByPrimaryKey(Long id);
 
    public int updateByPrimaryKeySelective(Special record);
 
    public int updateByPrimaryKey(Special record);
 
    public List<Special> listQueryByCard(long start, int count, Long card, String key);
 
    public long countlistQueryByCard(Long card, String key);
 
    /**
     * 查询排序值
     * @param card
     * @return
     */
    public int getMaxOrderByCard(Long card);
 
    /**
     * 专题图片上传
     * @param file
     * @param record
     * @throws Exception
     */
    public void uploadPicture(MultipartFile file, Special record, Long cardId) throws Exception;
 
    /**
     * 根据id批量删除
     * @param list
     * @return
     * @throws Exception
     */
    public int deleteBatchByPrimaryKey(List<Long> list) throws Exception;
 
    /**
     * CardID批量删除
     * @param list
     * @return
     * @throws Exception
     */
    public int deleteBatchByCardID(List<Long> list) throws Exception;
 
    /**
     * 排序交换对象查询
     * @param cardId
     * @param type
     * @param order
     * @return
     */
    public List<Special> getOrderByCardID(Long cardId, Integer type, Integer order);
 
    
    /**
     * 根据标识、系统查询启用专题
     * @param card
     * @param systemId
     * @return
     */
    public List<Special> listBySystemAndCard(String card, Long systemId);
 
    /**
     * 活动列表-分页
     * @param start
     * @param count
     * @param card
     * @param systemId
     * @return
     */
    public List<Special> listPageBySystemAndCard(long start, int count, String card, Long systemId);
 
    /**
     *   获取专题列表
     * @param card
     * @param systemId
     * @return
     * @throws Exception
     */
    public JSONObject getSpecialListCache(String card, Long systemId) throws Exception;
 
}