|
|
@ -19,6 +19,7 @@ package com.epmet.modules.group.service.impl; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.api.R; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.EpmetRoleKeyConstant; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
@ -186,6 +187,13 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou |
|
|
|
recommendGroupFormDTO.setPageNo(pageIndex); |
|
|
|
//显示当前网格内所有当前用户还未加入的组,以组的人数由高到低排序;如果人数相同,以最新话题的时间有近到远排序
|
|
|
|
List<RecommendGroupResultDTO> recommendGroupList = baseDao.selectListRecommendGroup(recommendGroupFormDTO); |
|
|
|
for (RecommendGroupResultDTO recommendGroupResultDTO : recommendGroupList) { |
|
|
|
GroupMemeberOperationDTO groupMemeberOperationDTO = groupMemeberOperationService.selectLatestRecord(recommendGroupResultDTO.getGroupId(), |
|
|
|
recommendGroupFormDTO.getUserId()); |
|
|
|
if (null != groupMemeberOperationDTO) { |
|
|
|
recommendGroupResultDTO.setStatus(groupMemeberOperationDTO.getOperateStatus()); |
|
|
|
} |
|
|
|
} |
|
|
|
return new Result<List<RecommendGroupResultDTO>>().ok(recommendGroupList); |
|
|
|
} |
|
|
|
|
|
|
|