删除团队成员修复
This commit is contained in:
parent
bf9dcb1848
commit
09a35ed351
@ -33,7 +33,6 @@ import com.red.circle.other.inner.enums.team.TeamApplicationType;
|
||||
import com.red.circle.other.inner.enums.team.TeamMemberRole;
|
||||
import com.red.circle.tool.core.collection.CollectionUtils;
|
||||
import com.red.circle.tool.core.date.TimestampUtils;
|
||||
import com.red.circle.tool.core.date.ZonedDateTimeAsiaRiyadhUtils;
|
||||
import com.red.circle.tool.core.sequence.IdWorkerUtils;
|
||||
import com.red.circle.wallet.inner.endpoint.wallet.WalletGoldClient;
|
||||
import com.red.circle.wallet.inner.model.cmd.GoldReceiptCmd;
|
||||
@ -183,7 +182,7 @@ public class TeamMemberRemoveDecay {
|
||||
if (!redisService.lock(lockKey, 60)) {
|
||||
return null;
|
||||
}
|
||||
TeamMember teamMember = teamMemberService.removeMemberBySortId(memberSortId);
|
||||
TeamMember teamMember = teamMemberService.removeMember(memberSortId);
|
||||
if (Objects.isNull(teamMember)) {
|
||||
redisService.unlock(lockKey);
|
||||
return null;
|
||||
|
||||
@ -194,7 +194,7 @@ public class UpdateMemberTeamDecay {
|
||||
if (!redisService.lock(lockKey, 60)) {
|
||||
return null;
|
||||
}
|
||||
TeamMember teamMember = teamMemberService.removeMemberBySortId(memberSortId);
|
||||
TeamMember teamMember = teamMemberService.removeMember(memberSortId);
|
||||
if (Objects.isNull(teamMember)) {
|
||||
redisService.unlock(lockKey);
|
||||
return null;
|
||||
|
||||
@ -100,7 +100,7 @@ public interface TeamMemberService {
|
||||
/**
|
||||
* 移除团队成员.
|
||||
*/
|
||||
TeamMember removeMemberBySortId(Long sortId);
|
||||
TeamMember removeMember(Long memberId);
|
||||
|
||||
/**
|
||||
* 移除房间成员.
|
||||
|
||||
@ -175,8 +175,8 @@ public class TeamMemberServiceImpl implements TeamMemberService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public TeamMember removeMemberBySortId(Long sortId) {
|
||||
return mongoTemplate.findAndRemove(Query.query(Criteria.where("sortId").in(sortId)),
|
||||
public TeamMember removeMember(Long sortId) {
|
||||
return mongoTemplate.findAndRemove(Query.query(Criteria.where("memberId").in(sortId)),
|
||||
TeamMember.class);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user