EnterCommunityComponent.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.java110.web.components.community;
  2. import com.java110.core.context.IPageData;
  3. import com.java110.web.smo.ICommunityServiceSMO;
  4. import org.springframework.beans.factory.annotation.Autowired;
  5. import org.springframework.http.HttpStatus;
  6. import org.springframework.http.ResponseEntity;
  7. import org.springframework.stereotype.Component;
  8. /**
  9. * 入驻小区组件处理类
  10. *
  11. * add by wuxw 2019-04-15
  12. *
  13. *
  14. *
  15. */
  16. @Component("enterCommunity")
  17. public class EnterCommunityComponent {
  18. @Autowired
  19. private ICommunityServiceSMO communityServiceSMOImpl;
  20. /**
  21. * 查询我入驻的小区
  22. * @param pd
  23. * @return
  24. */
  25. public ResponseEntity<String> listMyCommunity(IPageData pd){
  26. ResponseEntity<String> responseEntity = null;
  27. try{
  28. responseEntity = communityServiceSMOImpl.listMyCommunity(pd);
  29. }catch (Exception e){
  30. responseEntity = new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
  31. }finally {
  32. return responseEntity;
  33. }
  34. }
  35. public ICommunityServiceSMO getCommunityServiceSMOImpl() {
  36. return communityServiceSMOImpl;
  37. }
  38. public void setCommunityServiceSMOImpl(ICommunityServiceSMO communityServiceSMOImpl) {
  39. this.communityServiceSMOImpl = communityServiceSMOImpl;
  40. }
  41. }