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
package com.yeshi.fanli.service.inter.homemodule;
 
 
 
import java.util.List;
 
import org.springframework.web.multipart.MultipartFile;
 
import com.yeshi.fanli.entity.bus.homemodule.SwiperPicture;
import com.yeshi.fanli.exception.banner.SwiperPictureException;
 
public interface SwiperPictureService {
 
 
    public int insertSelective(SwiperPicture record) throws SwiperPictureException;
 
    public SwiperPicture selectByPrimaryKey(Long id) throws SwiperPictureException;
 
    public int updateByPrimaryKeySelective(SwiperPicture record) throws SwiperPictureException;
 
    public int updateByPrimaryKey(SwiperPicture record) throws SwiperPictureException;
    
    /**
     * 查询
     * @param start
     * @param count
     * @param bannerId
     * @return
     * @throws SwiperPictureException
     */
    public List<SwiperPicture> queryByBannerID(long start, int count, Long bannerId) throws SwiperPictureException;
    
    public long countQueryByBannerID(Long bannerId) throws SwiperPictureException;
    
    /**
     * 批量删除
     * @param list  主键id
     * @return
     * @throws SwiperPictureException
     */
    public int deleteBatchByPrimaryKey(List<Long> list) throws SwiperPictureException;
    
    /**
     * 批量删除 
     * @param list  管理id
     * @return
     * @throws SwiperPictureException
     */
    public int deleteBatchByBannerID(List<Long> list) throws SwiperPictureException;
    
 
    /**
     * 根据管理id集合 查询
     * @param list
     * @return
     * @throws Exception
     */
    public List<SwiperPicture> queryByListBannerID(List<Long> list) throws Exception;
    
    /**
     * 获取附近排序值
     * @param bannerId
     * @param type
     * @param order
     * @return
     * @throws SwiperPictureException
     */
    public List<SwiperPicture> getOrderByBannerID(Long bannerId, Integer type, Integer order) throws SwiperPictureException;
 
    /**
     * 获取最大排序值
     * @param bannerId
     * @return
     */
    public int getMaxOrderByBannerID(Long bannerId) throws SwiperPictureException;
 
    /**
     * 根据 唯一标识查询
     * @param card 唯一标识
     * @return
     */
    public List<SwiperPicture> getByBannerCard(String card)    throws SwiperPictureException;
 
    /**
     * 保存信息
     * @param record
     * @throws SwiperPictureException
     */
    public void saveObject(MultipartFile file, SwiperPicture record, String jumpType) throws SwiperPictureException, Exception;
 
    /**
     * 根据管理id 查询有效轮播图
     * @param bannerId
     * @return
     * @throws SwiperPictureException
     */
    public List<SwiperPicture> getByBannerId(Long bannerId) throws SwiperPictureException;
}