InitDataComponent.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.java110.web.components.initData;
  2. import com.java110.core.context.IPageData;
  3. import com.java110.web.smo.INavServiceSMO;
  4. import com.java110.web.smo.community.IListMyEnteredCommunitysSMO;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.http.ResponseEntity;
  7. import org.springframework.stereotype.Component;
  8. @Component("initData")
  9. public class InitDataComponent {
  10. @Autowired
  11. private IListMyEnteredCommunitysSMO listMyEnteredCommunitysSMOImpl;
  12. /**
  13. * 查询已经入住的小区
  14. *
  15. * @param pd 页面封装对象
  16. * @return 小区信息 [{community:"123123",name:"测试1小区"},{community:"223123",name:"测试2小区"}]
  17. */
  18. public ResponseEntity<String> getCommunitys(IPageData pd) {
  19. ResponseEntity<String> responseEntity = null;
  20. responseEntity = listMyEnteredCommunitysSMOImpl.myCommunitys(pd);
  21. return responseEntity;
  22. }
  23. public IListMyEnteredCommunitysSMO getListMyEnteredCommunitysSMOImpl() {
  24. return listMyEnteredCommunitysSMOImpl;
  25. }
  26. public void setListMyEnteredCommunitysSMOImpl(IListMyEnteredCommunitysSMO listMyEnteredCommunitysSMOImpl) {
  27. this.listMyEnteredCommunitysSMOImpl = listMyEnteredCommunitysSMOImpl;
  28. }
  29. }