党员活动 党支部数量

This commit is contained in:
517612449@qq.com
2022-06-29 15:27:45 +08:00
parent d316e23941
commit cd9fc38c4c

View File

@ -78,7 +78,7 @@ public class EventPartyBranchServiceImpl extends ServiceImpl<EventPartyBranchMap
f.setBranchCount(0);
} else {
f.setCount(memberBranchList.size());
f.setBranchCount((int) memberBranchList.stream().map(EventPartyBranch::getBelongBranchName).count());
f.setBranchCount((int) memberBranchList.stream().map(EventPartyBranch::getBelongBranchName).distinct().count());
}
});