yujian
2020-01-08 81ed418ee16df24b768a3f78cd22d02f020d6314
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
package com.yeshi.fanli.service.inter.homemodule;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;
 
import com.yeshi.fanli.entity.bus.homemodule.FloatAD;
import com.yeshi.fanli.exception.banner.SwiperPictureException;
import com.yeshi.fanli.exception.homemodule.FloatADException;
 
public interface FloatADService {
 
 
    /**
     * 保存
     * @param record
     * @throws FloatADException
     */
    public void saveObject(MultipartFile file, FloatAD record, String jumpType) throws FloatADException, Exception;
 
    /**
     * 修改排序
     * @param id
     * @param moveType
     * @throws FloatADException
     */
    public void updateOrder(Long id, Integer moveType) throws FloatADException;
    
    
    /**
     * 批量删除
     * 
     * @param list 管理id
     * @return
     * @throws SwiperPictureException
     */
    public int deleteByPrimaryKeyList(List<Long> list) throws Exception;
 
 
    /**
     * 后端列表查询
     * 
     * @param start
     * @param count
     * @param key
     * @param state
     * @return
     */
    public List<FloatAD> listQuery(@Param("start") long start, @Param("count") int count, @Param("key") String key,
            @Param("state") Integer state) throws FloatADException;
 
    public long countQuery(@Param("key") String key, @Param("state") Integer state);
 
    /**
     * 查询有效的悬浮大图
     * @return
     */
    public FloatAD getEffectiveFloatAD(String position, Integer type);
 
 
    /**
     * 设置版本信息
     * @param id
     * @param versions
     * @throws Exception
     */
    public void setVersions(Long id, List<Long> versions) throws Exception;
 
    /**
     *     有效版本信息 
     * @param position
     * @param type
     * @return
     */
    public List<FloatAD> getValidFloatADCache(String position, Integer type, String platform, Integer versionCode);
 
 
}