|
|
@ -130,6 +130,10 @@ public class GroupLeaderTransferRecordServiceImpl extends BaseServiceImpl<GroupL |
|
|
|
public void confirmTransfer(ConfirmTransferFormDTO formDTO) { |
|
|
|
//原组长
|
|
|
|
ResiGroupMemberDTO originalLeader = resiGroupMemberService.getGroupLeader(formDTO.getGroupId()); |
|
|
|
if(formDTO.getNewLeaderUserId().equals(originalLeader.getCustomerUserId())){ |
|
|
|
log.warn("候选人已经是组长"); |
|
|
|
return; |
|
|
|
} |
|
|
|
//如果是居民端转让组,只能是当前组长操作
|
|
|
|
if (ModuleConstant.APP_RESI.equals(formDTO.getType())) { |
|
|
|
//当前用户如果不是组长,不允许提交
|
|
|
|