|
|
|
@ -313,7 +313,7 @@ public class UserGroupServiceImpl extends BaseServiceImpl<UserGroupDao, UserGrou |
|
|
|
Map map= new HashMap(); |
|
|
|
if(integer>0){ |
|
|
|
map.put("resultCode",1); |
|
|
|
map.put("resultMessage","此群已经有群主 是否替换?"); |
|
|
|
map.put("resultMessage","此群已有群主 是否替换?"); |
|
|
|
return new Result().ok(map); |
|
|
|
} |
|
|
|
map.put("resultCode",0); |
|
|
|
@ -321,8 +321,12 @@ public class UserGroupServiceImpl extends BaseServiceImpl<UserGroupDao, UserGrou |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result modifyGroupOwner(GroupToAdminFormDTO formDTO) { |
|
|
|
baseDao.updataGroupOwner(formDTO); |
|
|
|
//移除此群群主
|
|
|
|
baseDao.updateRemoveGroupOwner(formDTO); |
|
|
|
//指定群主
|
|
|
|
baseDao.updateGroupOwner(formDTO); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
} |