admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
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
package com.yeshi.fanli.service.inter.homemodule;
 
 
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.homemodule.SwiperBanner;
import com.yeshi.fanli.exception.banner.SwiperBannerException;
 
public interface SwiperBannerService {
 
    public int deleteByPrimaryKey(Long id) ;
 
    public int insert(SwiperBanner record);
 
    public int insertSelective(SwiperBanner record);
 
    public SwiperBanner selectByPrimaryKey(Long id);
 
    public int updateByPrimaryKeySelective(SwiperBanner record);
 
    public int updateByPrimaryKey(SwiperBanner record);
    
    public List<SwiperBanner> query(long start, int count, String key, Integer sort);
    
    public long countQuery(String key);
    
    public int deleteBatchByPrimaryKey(List<Long> list) throws Exception;
 
    /**
     * 有效
     * @return
     * @throws SwiperBannerException
     */
    public List<SwiperBanner> getEffectiveOption();
 
    /**
     * 状态切换
     * @param id
     * @throws SwiperBannerException
     */
    public void switchState(Long id) throws SwiperBannerException;
    
}