Administrator
2018-10-31 30c2a2d96251d375627300e89a689b751e9fbb15
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
package com.yeshi.fanli.dao.mybatis.homemodule;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.entity.bus.homemodule.SwiperPicture;
 
public interface SwiperPictureMapper {
 
    int deleteByPrimaryKey(Long id);
 
    int insert(SwiperPicture record);
 
    int insertSelective(SwiperPicture record);
 
    SwiperPicture selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(SwiperPicture record);
 
    int updateByPrimaryKey(SwiperPicture record);
    
    List<SwiperPicture> queryByBannerID(@Param("start") long start, @Param("count") int count,
            @Param("bannerId") Long bannerId);
    
    long countQueryByBannerID(@Param("bannerId") Long bannerId);
    
    int deleteBatchByPrimaryKey(List<Long> list);
    
    int deleteBatchByBannerID(List<Long> list);
    
    List<SwiperPicture> queryByListPrimaryKey(List<Long> list);
    
    List<SwiperPicture> queryByListBannerID(List<Long> list);
    
    List<SwiperPicture> getOrderByBannerID(@Param("bannerId") Long bannerId, @Param("type") Integer type,
            @Param("order") Integer order);
    
    int getMaxOrderByBannerID(@Param("bannerId") Long bannerId);
    
    
    /**
     * 根据 唯一标识查询
     * @param card 唯一标识
     * @return
     */
    List<SwiperPicture> getByBannerCard(@Param("card") String card);
    
    
}