admin
2019-09-26 f38e508d334ae03024f0dce0d1fb6baed212dc24
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
package com.yeshi.fanli.dao.mybatis.homemodule;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.bus.homemodule.Special;
 
public interface SpecialMapper extends BaseMapper<Special>{
 
    
    int deleteBatchByPrimaryKey(List<Long> list);
    
    int deleteBatchByCardID(List<Long> list);
    /**
     * 批量查询id
     * @param list
     * @return
     */
    List<Special> queryByListPrimaryKey(List<Long> list);
    
    /**
     * 批量查询CardID
     * @param list
     * @return
     */
    List<Special> queryByListCardID(List<Long> list);
    
    /**
     * 查询需替换顺序数据
     * @param cardId
     * @param type
     * @param order
     * @return
     */
    Special getOrderByCardID(@Param("cardId") Long cardId, @Param("type") Integer type, 
            @Param("order") Integer order, @Param("sex")Integer sex);
    
    
    /**
     * 后端查询列表
     * @param start
     * @param count
     * @param card
     * @param key
     * @param sex
     * @return
     */
    List<Special> listQueryByCard(@Param("start") long start, @Param("count") int count,
            @Param("cardId") Long card, @Param("key") String key, @Param("sex")Integer sex);
    
    long countlistQueryByCard(@Param("cardId") Long card, @Param("key") String key, @Param("sex")Integer sex);
    
    
    /**
     *   默认最大的排序值
     * @param card
     * @return
     */
    int getDefaultMaxOrder(@Param("cardId") Long cardId);
    
 
    /**
     *   默认最大的排序值
     * @param card
     * @return
     */
    int getManMaxOrder(@Param("cardId") Long cardId);
    
 
    /**
     *   默认最大的排序值
     * @param card
     * @return
     */
    int getWomanMaxOrder(@Param("cardId") Long cardId);
    
    /**
     * 根据标识、系统查询启用专题
     * @param card
     * @param systemId
     * @return
     */
    List<Special> listBySystemAndCard(@Param("card") String card, @Param("systemId") Long systemId);
    
    /**
     * 查询有效专题-版本区分
     * @param card
     * @param systemId
     * @return
     */
    List<Special> listByVersion(@Param("start") long start, @Param("count") int count, 
            @Param("placeKey") String placeKey, @Param("platform") Integer platform, @Param("versionCode") Integer versionCode);
    
    
    /**
     * 根据标识、系统查询启用专题-分页
     * @param card
     * @param systemId
     * @return
     */
    List<Special> listPageBySystemAndCard(@Param("start") long start, @Param("count") int count, 
            @Param("card") String card, @Param("systemId") Long systemId);
    
    
    /**
     * 根据位置标识查询
     * @param card
     * @param systemId
     * @return
     */
    List<Special> listByPlaceKey(@Param("placeKey") String placeKey, @Param("sex")Integer sex
            , @Param("platform") Integer platform, @Param("versionCode") Integer versionCode);
    
    
    /**
     * 根据多个位置标识查询
     * @param list
     * @param sex
     * @param platform
     * @param versionCode
     * @return
     */
    List<Special> listByPlaceKeyList(@Param("start")long start, @Param("count")int count,@Param("list") List<String> list, @Param("sex")Integer sex
            , @Param("platform") Integer platform, @Param("versionCode") Integer versionCode);
    
    long countByPlaceKeyList(@Param("list") List<String> list, @Param("sex")Integer sex
            , @Param("platform") Integer platform, @Param("versionCode") Integer versionCode);
    
}