From e57e32fc43da31917912eebb4e47d4e50df1a9e9 Mon Sep 17 00:00:00 2001
From: shiyj1101 <1098226878@qq.com>
Date: 星期四, 05 八月 2021 22:56:15 +0800
Subject: [PATCH] 完善格式化功能

---
 service-community/src/main/java/com/java110/community/api/CommunitysApi.java |   36 ++++++++++++++++++++++++++++++++++--
 1 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/service-community/src/main/java/com/java110/community/api/CommunitysApi.java b/service-community/src/main/java/com/java110/community/api/CommunitysApi.java
old mode 100644
new mode 100755
index 1436bfa..9e619ab
--- a/service-community/src/main/java/com/java110/community/api/CommunitysApi.java
+++ b/service-community/src/main/java/com/java110/community/api/CommunitysApi.java
@@ -15,20 +15,52 @@
  */
 package com.java110.community.api;
 
+import com.java110.community.bmo.community.IQueryStoreCommunitys;
+import com.java110.dto.CommunityMemberDto;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
 /**
  * 灏忓尯鐩稿叧瀵瑰鎻愪緵鎺ュ彛绫�
- *
+ * <p>
  * 鍔熻兘鍖呮嫭锛�
  * 鍟嗘埛灏忓尯鏌ヨ鎺ュ彛
  *
  * @desc add by 鍚村鏂� 8:30
- *
+ * <p>
  * 鏂囨。鍙傝�� 锛� http://www.homecommunity.cn/
  */
 @RestController
 @RequestMapping(value = "/communitys")
 public class CommunitysApi {
+
+    @Autowired
+    private IQueryStoreCommunitys queryStoreCommunitysImpl;
+
+
+    /**
+     * 鏌ヨ鍟嗘埛鍏ラ┗灏忓尯
+     *
+     * @param memberId
+     * @param memberTypeCd
+     * @param auditStatusCd
+     * @return
+     * @ServiceCode /communitys/queryStoreCommunitys
+     * @Path /app/communitys/queryStoreCommunitys
+     */
+    @RequestMapping(value = "/queryStoreCommunitys", method = RequestMethod.GET)
+    public ResponseEntity<String> queryStoreCommunitys(@RequestParam(value = "memberId") String memberId,
+                                                       @RequestParam(value = "memberTypeCd") String memberTypeCd,
+                                                       @RequestParam(value = "auditStatusCd", required = false) String auditStatusCd) {
+
+        CommunityMemberDto communityMemberDto = new CommunityMemberDto();
+        communityMemberDto.setMemberId(memberId);
+        communityMemberDto.setMemberTypeCd(memberTypeCd);
+        communityMemberDto.setAuditStatusCd(auditStatusCd);
+        return queryStoreCommunitysImpl.query(communityMemberDto);
+    }
 }

--
Gitblit v1.8.0