集团移除会员

This commit is contained in:
2024-02-26 14:39:10 +08:00
parent a796a761cc
commit d5078154db
8 changed files with 37 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
package com.jsowell.pile.service.impl;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.domain.MemberGroupRelation;
import com.jsowell.pile.mapper.MemberGroupRelationMapper;
import com.jsowell.pile.service.MemberGroupRelationService;
@@ -72,4 +73,12 @@ public class MemberGroupRelationServiceImpl implements MemberGroupRelationServic
return memberGroupRelationMapper.batchInsert(list);
}
@Override
public int deleteRelationByGroupCodeAndMemberId(String groupCode, String memberId) {
if (StringUtils.isBlank(groupCode) || StringUtils.isBlank(memberId)) {
return 0;
}
return memberGroupRelationMapper.deleteRelationByGroupCodeAndMemberId(groupCode, memberId);
}
}

View File

@@ -299,6 +299,11 @@ public class MemberGroupServiceImpl implements MemberGroupService {
return result;
}
@Override
public int removeMemberFromMemberGroup(MemberGroupDTO dto) {
return memberGroupRelationService.deleteRelationByGroupCodeAndMemberId(dto.getGroupCode(), dto.getMemberId());
}
@Override
public List<MemberGroupConsumptionVO> queryMemberGroupConsumptionList(String groupCode) {
List<MemberGroupConsumptionVO> resultList = Lists.newArrayList();