From 3829a4eaa7313684145ca1768112243b5d0e26ca Mon Sep 17 00:00:00 2001
From: unknown <xuegaoyuan@aliyun.com>
Date: 星期日, 20 十月 2019 13:11:55 +0800
Subject: [PATCH] 同步售出房屋信息到room表
---
CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 56 insertions(+), 3 deletions(-)
diff --git a/CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java b/CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java
index a0e4c52..e25a8c3 100644
--- a/CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java
+++ b/CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java
@@ -1,11 +1,17 @@
package com.java110.community.smo.impl;
-import com.java110.common.util.BeanConvertUtil;
+import com.alibaba.fastjson.JSONObject;
+import com.java110.utils.util.BeanConvertUtil;
import com.java110.community.dao.ICommunityServiceDao;
import com.java110.core.base.smo.BaseServiceSMO;
import com.java110.core.smo.community.ICommunityInnerServiceSMO;
import com.java110.dto.CommunityMemberDto;
+import com.java110.dto.PageDto;
+import com.java110.dto.community.CommunityDto;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@@ -16,17 +22,64 @@
*/
@RestController
public class CommunityInnerServiceSMOImpl extends BaseServiceSMO implements ICommunityInnerServiceSMO {
+ private static Logger logger = LoggerFactory.getLogger(CommunityServiceSMOImpl.class);
+
@Autowired
private ICommunityServiceDao communityServiceDaoImpl;
@Override
- public List<CommunityMemberDto> getCommunityMembers(CommunityMemberDto communityMemberDto) {
- List<Map> communityMembers = communityServiceDaoImpl.getCommunityMembers(BeanConvertUtil.covertBean(communityMemberDto, Map.class));
+ public List<CommunityMemberDto> getCommunityMembers(@RequestBody CommunityMemberDto communityMemberDto) {
+
+ logger.debug("communityMemberDto锛歿}", JSONObject.toJSONString(communityMemberDto));
+
+ //鏍¢獙鏄惁浼犱簡 鍒嗛〉淇℃伅
+
+ int page = communityMemberDto.getPage();
+
+ if (page != PageDto.DEFAULT_PAGE) {
+ communityMemberDto.setPage((page - 1) * communityMemberDto.getRow());
+ }
+
+ List<Map> communityMembers = communityServiceDaoImpl.getCommunityMembers(BeanConvertUtil.beanCovertMap(communityMemberDto));
return BeanConvertUtil.covertBeanList(communityMembers, CommunityMemberDto.class);
}
+ @Override
+ public int getCommunityMemberCount(@RequestBody CommunityMemberDto communityMemberDto) {
+ logger.debug("getCommunityMemberCount锛歿}", JSONObject.toJSONString(communityMemberDto));
+
+ return communityServiceDaoImpl.getCommunityMemberCount(BeanConvertUtil.beanCovertMap(communityMemberDto));
+ }
+
+ @Override
+ public List<CommunityDto> queryCommunitys(@RequestBody CommunityDto communityDto) {
+
+ //鏍¢獙鏄惁浼犱簡 鍒嗛〉淇℃伅
+
+ int page = communityDto.getPage();
+
+ if (page != PageDto.DEFAULT_PAGE) {
+ communityDto.setPage((page - 1) * communityDto.getRow());
+ }
+
+ List<CommunityDto> communitys = BeanConvertUtil.covertBeanList(communityServiceDaoImpl.getCommunityInfoNew(BeanConvertUtil.beanCovertMap(communityDto)), CommunityDto.class);
+
+
+
+ return communitys;
+ }
+
+
+
+
+
+ @Override
+ public int queryCommunitysCount(@RequestBody CommunityDto communityDto) {
+ return communityServiceDaoImpl.queryCommunitysCount(BeanConvertUtil.beanCovertMap(communityDto));
+ }
+
public ICommunityServiceDao getCommunityServiceDaoImpl() {
return communityServiceDaoImpl;
}
--
Gitblit v1.8.0