|
|
@ -32,6 +32,7 @@ import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.result.UserInfoOnEnterGridResultDTO; |
|
|
|
import com.epmet.dto.result.UserResiInfoResultDTO; |
|
|
|
import com.epmet.feign.EpmetMessageOpenFeignClient; |
|
|
|
import com.epmet.feign.EpmetUserOpenFeignClient; |
|
|
|
import com.epmet.modules.constant.UserMessageConstant; |
|
|
|
import com.epmet.modules.feign.EpmetUserFeignClient; |
|
|
|
import com.epmet.modules.feign.ResiGuideFeignClient; |
|
|
@ -46,6 +47,7 @@ import com.epmet.modules.member.dao.ResiGroupMemberDao; |
|
|
|
import com.epmet.modules.member.service.GroupMemeberOperationService; |
|
|
|
import com.epmet.modules.member.service.ResiGroupMemberService; |
|
|
|
import com.epmet.modules.member.service.impl.ResiGroupMemberServiceImpl; |
|
|
|
import com.epmet.modules.utils.ModuleConstant; |
|
|
|
import com.epmet.resi.group.constant.EnterGroupTypeConstant; |
|
|
|
import com.epmet.resi.group.constant.GroupStateConstant; |
|
|
|
import com.epmet.resi.group.constant.LeaderFlagConstant; |
|
|
@ -106,6 +108,8 @@ public class GroupInvitationServiceImpl extends BaseServiceImpl<GroupInvitationD |
|
|
|
private ResiGroupRedis resiGroupRedis; |
|
|
|
@Autowired |
|
|
|
private ResiGroupMemberServiceImpl resiGroupMemberServiceImpl; |
|
|
|
@Autowired |
|
|
|
private EpmetUserOpenFeignClient epmetUserOpenFeignClient; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<GroupInvitationDTO> page(Map<String, Object> params) { |
|
|
@ -455,6 +459,19 @@ public class GroupInvitationServiceImpl extends BaseServiceImpl<GroupInvitationD |
|
|
|
logger.info("已经在群内,直接返回成功"); |
|
|
|
return resultDTO; |
|
|
|
} |
|
|
|
// 查询小组类型,楼院小组:支部小组
|
|
|
|
ResiGroupDTO resiGroupInfo = resiGroupService.get(groupInvitationDTO.getResiGroupId()); |
|
|
|
if (resiGroupInfo.getGroupType().equals(ModuleConstant.GROUP_TYPE_BRANCH)){ |
|
|
|
Result<Boolean> booleanResult = epmetUserOpenFeignClient.selectIsPartyMemberByUserId(formDTO.getUserId()); |
|
|
|
if (!booleanResult.success()){ |
|
|
|
throw new RenException(ModuleConstant.IS_PARTY_MEMBER_ERR); |
|
|
|
} |
|
|
|
// 不是党员直接抛出
|
|
|
|
if (!booleanResult.getData()){ |
|
|
|
throw new RenException(EpmetErrorCode.PARTY_MEMBER_JOIN_BRANCH_GROUP.getCode()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//2020.11.26 sun start
|
|
|
|
//先判断用户是否有在审核的入组申请,有的话直接给提示
|
|
|
|
GroupMemeberOperationDTO groupMemeberOperationDTO = groupMemeberOperationService.selectLatestRecord(groupInvitationDTO.getResiGroupId(), formDTO.getUserId()); |
|
|
|