Blame view

service-api/src/main/java/com/java110/api/components/index/IndexContextComponent.java 925 Bytes
88e030b7   王彪总   init project
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
  package com.java110.api.components.index;
  
  
  import com.java110.api.smo.IIndexServiceSMO;
  import com.java110.core.context.IPageData;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.http.ResponseEntity;
  import org.springframework.stereotype.Component;
  
  @Component("indexContext")
  public class IndexContextComponent {
  
  
      @Autowired
      private IIndexServiceSMO indexServiceSMOImpl;
  
      /**
       * 查询数据
       *
       * @param pd 页面数据封装
       * @return 查询数据 ResponseEntity对象
       */
      public ResponseEntity<String> getData(IPageData pd) {
  
          return indexServiceSMOImpl.getStatisticInformation(pd);
      }
  
  
      public IIndexServiceSMO getIndexServiceSMOImpl() {
          return indexServiceSMOImpl;
      }
  
      public void setIndexServiceSMOImpl(IIndexServiceSMO indexServiceSMOImpl) {
          this.indexServiceSMOImpl = indexServiceSMOImpl;
      }
  }