admin
2021-07-24 e257a2834bf7b62af5c5c96f9b0b21fac92f2196
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
133
134
135
136
package com.yeshi.fanli.service.inter.homemodule;
 
import java.util.List;
 
import com.yeshi.fanli.entity.SystemEnum;
import org.springframework.web.multipart.MultipartFile;
 
import com.yeshi.fanli.entity.accept.AcceptData;
import com.yeshi.fanli.entity.bus.homemodule.CommonShareInfo;
import com.yeshi.fanli.entity.bus.homemodule.Special;
import com.yeshi.fanli.exception.homemodule.SpecialException;
import com.yeshi.fanli.vo.homemodule.SpecialVO;
 
import net.sf.json.JSONObject;
 
/**
 *  专题
 * 
 * @author Administrator
 *
 */
public interface SpecialService {
 
 
    public Special selectByPrimaryKey(Long id);
 
 
    public List<SpecialVO> listQueryByCard(long start, int count, Long card, String key, Integer sex);
 
    public long countlistQueryByCard(Long card, String key, Integer sex);
 
 
    /**
     * 根据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 file
     * @param record
     * @param jumpType
     * @throws SpecialException
     * @throws Exception
     */
    public void saveObject(MultipartFile file, MultipartFile file2, MultipartFile file3, Special record
            , String jumpType, CommonShareInfo shareInfo,SystemEnum system) throws SpecialException, Exception;
 
    /**
     * 更换顺序
     * @param id
     * @param moveType
     * @throws SpecialException
     */
    public void updateOrder(Long id, Integer moveType, Integer sex) throws SpecialException;
 
 
    /**
     * 首页-专题数据
     * @return
     * @throws Exception
     */
    public JSONObject listCacheSpecialToIndex(AcceptData acceptData, Integer sex,SystemEnum system) throws Exception;
 
 
    /**
     * 根据专题位置查询
     * @param placeKey
     * @return
     */
    public List<Special> listByPlaceKey(String placeKey, Integer platform, Integer versionCode,SystemEnum system);
 
 
    /**
     * 专题 版本区分
     * @param start
     * @param count
     * @param card
     * @param platform
     * @param versionCode
     * @return
     */
    public List<SpecialVO> listByVersion(long start, int count, String card, String platform, Integer versionCode,SystemEnum system);
 
 
    /**
     * 专题版本区分 传递多个位置
     * @param list
     * @param platform
     * @param versionCode
     * @return
     */
    public List<Special> listByPlaceKeyList(long start, int count, List<String> list, Integer platform, Integer versionCode,SystemEnum system);
 
 
    public long countByPlaceKeyList(List<String> list, Integer platform, Integer versionCode,SystemEnum system);
 
 
    /**
     * 查询专题并返回标签
     * @param list
     * @param platform
     * @param versionCode
     * @return
     */
    public List<SpecialVO> listByPlaceKeyHasLabel(long start, int count, List<String> list, Integer platform, Integer versionCode,SystemEnum system);
    
    
    /**
     * 为专题设置版本
     * @param specialId
     * @param versions
     * @throws Exception
     */
    public void setVersions(Long specialId,List<Long> versions)  throws Exception;
 
    /**
     * 更改状态
     * @param id
     * @throws SpecialException
     */
    public void switchState(Long id) throws SpecialException;
 
 
}