From 4ad9e7fb9477dddb3120e6ec71f0ab1e701ae36f Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期一, 29 四月 2019 22:51:48 +0800
Subject: [PATCH] 修该文档地址不对bug

---
 CommunityService/src/main/java/com/java110/community/smo/impl/CommunityInnerServiceSMOImpl.java |   14 +++++++++++---
 1 files changed, 11 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 cc32767..6cca951 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,15 @@
 package com.java110.community.smo.impl;
 
+import com.alibaba.fastjson.JSONObject;
 import com.java110.common.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 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.HashMap;
@@ -17,15 +21,19 @@
  */
 @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) {
-        Map info = new HashMap();
-        List<Map> communityMembers = communityServiceDaoImpl.getCommunityMembers(BeanConvertUtil.covertBean(communityMemberDto, info));
+    public List<CommunityMemberDto> getCommunityMembers(@RequestBody CommunityMemberDto communityMemberDto) {
+
+        logger.debug("communityMemberDto锛歿}", JSONObject.toJSONString(communityMemberDto));
+
+        List<Map> communityMembers = communityServiceDaoImpl.getCommunityMembers(BeanConvertUtil.beanCovertMap(communityMemberDto));
         return BeanConvertUtil.covertBeanList(communityMembers, CommunityMemberDto.class);
     }
 

--
Gitblit v1.8.0