java110
2020-06-01 460d06f9660a879b6c3493d518d743cbc30265e0
CommunityService/src/main/java/com/java110/community/listener/communityMember/MemberJoinedCommunityListener.java
@@ -101,12 +101,12 @@
        //小区楼信息
        List<Map> businessCommunityMembers = communityServiceDaoImpl.getBusinessCommunityMember(info);
        if (businessCommunityMembers != null && businessCommunityMembers.size() > 0) {
            for (int _memberIndex = 0; _memberIndex < businessCommunityMembers.size(); _memberIndex++) {
                Map businessCommunityMemberInfo = businessCommunityMembers.get(_memberIndex);
            //for (int _memberIndex = 0; _memberIndex < businessCommunityMembers.size(); _memberIndex++) {
                Map businessCommunityMemberInfo = businessCommunityMembers.get(0);
                communityServiceDaoImpl.saveCommunityMemberInstance(info);
                dataFlowContext.addParamOut("communityId", businessCommunityMemberInfo.get("community_id"));
                dataFlowContext.addParamOut("memberId", businessCommunityMemberInfo.get("member_id"));
            }
            //}
        }
    }
@@ -132,12 +132,12 @@
        List<Map> communityMembers = communityServiceDaoImpl.getCommunityMember(info);
        if (communityMembers != null && !communityMembers.isEmpty()) {
            for (int _memberIndex = 0; _memberIndex < communityMembers.size(); _memberIndex++) {
                Map businessCommunityMemberInfo = communityMembers.get(_memberIndex);
            //for (int _memberIndex = 0; _memberIndex < communityMembers.size(); _memberIndex++) {
                Map businessCommunityMemberInfo = communityMembers.get(0);
                paramIn.put("communityMemberId", businessCommunityMemberInfo.get("member_community_id").toString());
                communityServiceDaoImpl.updateCommunityMemberInstance(paramIn);
                dataFlowContext.addParamOut("communityMemberId", businessCommunityMemberInfo.get("member_community_id"));
            }
            //}
        }
    }