mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-27 06:25:13 +08:00
集团移除会员
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user