yujian
2020-04-23 d844a30a240603daab46e8b2b32b01cd90f1272e
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
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.HomeNavbar;
import com.yeshi.fanli.exception.homemodule.HomeNavbarException;
 
/**
 *  APP导航栏
 * 
 * @author Administrator
 *
 */
public interface HomeNavbarService {
 
    
    /**
     * 根据主键批量删除
     * @param list
     * @return
     */
    public int deleteBatchByPrimaryKey(List<Long> list);
    
 
    /**
     * 保存
     * @param file
     * @param record
     * @param jumpType
     * @throws HomeNavbarException
     * @throws Exception
     */
    public void saveObject(MultipartFile file, HomeNavbar record) throws HomeNavbarException, Exception;
 
    /**
     * 更新排序顺序
     * @param id
     * @param moveType
     * @throws HomeNavbarException
     * @throws Exception
     */
    public void updateOrder(Long id, Integer moveType, Integer sex) throws HomeNavbarException, Exception;
 
    
    /**
     * 后端查询
     * @param start
     * @param count
     * @param key
     * @return
     */
    public List<HomeNavbar> listQuery(long start, int count, String key,  Integer sex);
    
    public long countlistQuery(String key,  Integer sex);
    
    
    /**
     * 查询有效导航栏
     * @return
     */
    public List<HomeNavbar> listQueryEffectiveNavbar();
    
    /**
     * 根据分类查询有效导航栏
     * @param classId
     * @return
     */
    public HomeNavbar getEffectiveByClassId(@Param("classId") Long classId);
 
 
    /**
     * 默认导航栏
     * @return
     */
    public List<HomeNavbar> listQueryDefaultNavbar(Integer sex);
 
    /**
     *  固定的导航栏
     * @return
     */
    public List<HomeNavbar> listQueryFixedNavbar();
 
    /**
     * 改变状态
     * @param id
     * @throws HomeNavbarException
     */
    public void switchState(Long id) throws HomeNavbarException;
    
}