Blame view

src/main/java/com/objecteye/service/AreaEquipmentService.java 1.89 KB
c83b5b39   Liu Haoyu   项目创建, 集成spring-se...
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
99
100
101
102
103
104
105
106
107
108
109
110
111
  package com.objecteye.service;
  
  import com.objecteye.entity.AreaEquipmentShow;
  import com.objecteye.entity.PageResult;
  import com.objecteye.entity.SyAreaEquipment;
  import org.apache.ibatis.annotations.Mapper;
  
  import java.util.ArrayList;
  import java.util.HashMap;
  import java.util.List;
  
  /**
   * 服务层接口
   *
   * @author Administrator
   */
  @Mapper
  public interface AreaEquipmentService {
  
      /**
       * 返回全部列表
       *
       * @return
       */
      public ArrayList<AreaEquipmentShow> findAll();
  
  
      /**
       * 返回全部列表设备可操作性
       *
       * @return
       */
      public ArrayList<AreaEquipmentShow> findAllEquip();
  
      /**
       * 返回全部列表设备可操作性
       *
       * @return
       */
      public ArrayList<AreaEquipmentShow> findAllEquipAndArea();
  
      /**
       * 返回分页列表
       *
       * @return
       */
      public PageResult findPage(int pageNum, int pageSize);
  
  
      /**
       * 增加
       */
      public int add(SyAreaEquipment areaEquipment);
  
  
      /**
       * 修改
       */
      public int update(SyAreaEquipment areaEquipment);
  
  
      /**
       * 根据ID获取实体
       *
       * @param id
       * @return
       */
      public SyAreaEquipment findOne(int id);
  
  
      /**
       * 批量删除
       *
       * @param ids
       */
      public void delete(int[] ids);
  
      /**
       * 批量删除
       *
       * @param typeId
       */
      public int delete(int typeId);
  
      /**
       * 分页
       *
       * @param pageNum  当前页 
       * @param pageSize 每页记录数
       * @return
       */
      public PageResult findPage(SyAreaEquipment areaEquipment, int pageNum, int pageSize);
  
      /**
       * 根据id查找所有的设备id
       *
       * @param id
       * @return
       */
      List<Integer> findCaptureById(int id);
  
      /**
       * 根据id查找所有的设备信息
       *
       * @param id
       * @return
       */
      List<HashMap<String, Object>> findCaptureMsgById(int id);
  
  
  }