|
|
@ -2,6 +2,7 @@ package com.epmet.modules.group.service.impl; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.*; |
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.form.UserRoleFormDTO; |
|
|
@ -223,7 +224,7 @@ public class ExitGroupServiceImpl implements ExitGroupService { |
|
|
|
//1、当前组员是否还在群里?
|
|
|
|
ResiGroupMemberDTO resiGroupMemberDTO=resiGroupMemberDao.selectGroupMemberInfo(formDTO.getGroupId(),formDTO.getUserId()); |
|
|
|
if(null == resiGroupMemberDTO){ |
|
|
|
throw new RenException("已退出当前小组,请勿重复操作"); |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "已退出当前小组,请勿重复操作","已退出当前小组,请勿重复操作"); |
|
|
|
} |
|
|
|
//2、组长不允许退群,提示:请先转移组长身份后再退组
|
|
|
|
if(ModuleConstant.GROUP_LEADER.equals(resiGroupMemberDTO.getGroupLeaderFlag())){ |
|
|
|