|
|
@ -667,20 +667,17 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou |
|
|
|
formDTO.setPageNo(pageIndex); |
|
|
|
List<ResiGroupEntity> list = baseDao.selectGroupsByGridId(formDTO); |
|
|
|
list.forEach(group -> { |
|
|
|
//缓存中获取组信息
|
|
|
|
ResiGroupInfoRedisDTO resiGroupInfoRedisDTO = resiGroupRedis.get(group.getId()); |
|
|
|
GroupsInGridResultDTO groupsInGridResultDTO = new GroupsInGridResultDTO(); |
|
|
|
if (null == resiGroupInfoRedisDTO) { |
|
|
|
if (MemberStateConstant.REJECTED.equals(group.getState())) { |
|
|
|
if (MemberStateConstant.REJECTED.equals(group.getState())) { |
|
|
|
groupsInGridResultDTO.setGroupId(group.getId()); |
|
|
|
groupsInGridResultDTO.setGroupName(group.getGroupName()); |
|
|
|
groupsInGridResultDTO.setGroupHeadPhoto(group.getGroupHeadPhoto()); |
|
|
|
groupsInGridResultDTO.setStatus(group.getState()); |
|
|
|
groupsInGridResultDTO.setTotalMember(NumConstant.ZERO); |
|
|
|
groupsInGridResultDTO.setTotalPartyMember(NumConstant.ZERO); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else if(MemberStateConstant.APPROVED.equals(group.getState())) { |
|
|
|
//缓存中获取组信息
|
|
|
|
ResiGroupInfoRedisDTO resiGroupInfoRedisDTO = resiGroupRedis.get(group.getId()); |
|
|
|
groupsInGridResultDTO.setGroupId(resiGroupInfoRedisDTO.getGroupId()); |
|
|
|
groupsInGridResultDTO.setGroupName(resiGroupInfoRedisDTO.getGroupName()); |
|
|
|
groupsInGridResultDTO.setGroupHeadPhoto(resiGroupInfoRedisDTO.getGroupHeadPhoto()); |
|
|
|