Parcourir la source

优化 入驻审核 时数据显示问题

wuxw il y a 6 ans
Parent
commit
ba510e23e2

+ 1 - 0
Api/src/main/java/com/java110/api/listener/community/ListAuditEnterCommunitysListener.java

@@ -71,6 +71,7 @@ public class ListAuditEnterCommunitysListener extends AbstractServiceApiListener
         CommunityMemberDto communityMemberDto = BeanConvertUtil.covertBean(reqJson, CommunityMemberDto.class);
 
         communityMemberDto.setNeedCommunityInfo(true);
+        communityMemberDto.setNoAuditEnterCommunity(true);
 
         int count = communityInnerServiceSMOImpl.getCommunityMemberCount(communityMemberDto);
 

+ 10 - 0
java110-bean/src/main/java/com/java110/dto/CommunityMemberDto.java

@@ -23,6 +23,8 @@ public class CommunityMemberDto extends CommunityDto implements Serializable {
 
     private boolean needCommunityInfo;
 
+    private boolean noAuditEnterCommunity;
+
     public String getCommunityMemberId() {
         return communityMemberId;
     }
@@ -78,4 +80,12 @@ public class CommunityMemberDto extends CommunityDto implements Serializable {
     public void setNeedCommunityInfo(boolean needCommunityInfo) {
         this.needCommunityInfo = needCommunityInfo;
     }
+
+    public boolean isNoAuditEnterCommunity() {
+        return noAuditEnterCommunity;
+    }
+
+    public void setNoAuditEnterCommunity(boolean noAuditEnterCommunity) {
+        this.noAuditEnterCommunity = noAuditEnterCommunity;
+    }
 }

+ 5 - 0
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml

@@ -384,6 +384,11 @@
         <if test="memberId != null and memberId != '' and needCommunityInfo == false">
             and ms.member_id = #{memberId}
         </if>
+
+        <if test="noAuditEnterCommunity == true">
+            ms.member_type_cd not in ('390001200003','390001200005','390001200000')
+        </if>
+
         <if test="memberTypeCd != null and memberTypeCd != ''">
             and ms.member_type_cd = #{memberTypeCd}
         </if>