Blame view

src/main/java/com/objecteye/service/FeatureService.java 1.25 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
  package com.objecteye.service;
  
  import com.objecteye.entity.PageResult;
  import com.objecteye.entity.SyFeature;
  
  import java.util.List;
  import java.util.Map;
  
  /**
   * 服务层接口
   *
   * @author Administrator
   */
  public interface FeatureService {
  
      /**
       * 返回全部列表
       *
       * @return
       */
      public List<SyFeature> findAll();
  
  
      /**
       * 返回分页列表
       *
       * @return
       */
      public PageResult findPage(int pageNum, int pageSize);
  
  
      /**
       * 增加
       */
      public int add(SyFeature feature);
  
      /**
       * 增加
       */
      public int addSingle(SyFeature feature);
  
  
      /**
       * 修改
       */
      public int update(SyFeature feature);
  
  
      /**
       * 根据ID获取实体
       *
       * @param id
       * @return
       */
      public SyFeature findOne(int id);
  
  
      /**
       * 批量删除
       *
       * @param ids
       */
      public void delete(int[] ids);
  
      /**
       * 分页
       *
       * @param pageNum  当前页码
       * @param pageSize 每页记录数
       * @return
       */
      public PageResult findPage(SyFeature feature, int pageNum, int pageSize);
  
  
      public int updateCountById(SyFeature feature);
  
      public List<Map<String, String>> findAllName();
  
  
      //public List<String> findAllName();
  
  
  }