mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 20:15:06 +08:00
update 会员钱包明细
This commit is contained in:
@@ -333,7 +333,7 @@ public class PileService {
|
||||
}
|
||||
|
||||
List<String> adminList = relationList.stream()
|
||||
.filter(x -> x.getType().equals("1"))
|
||||
.filter(x -> x.getType().equals(Constants.ONE)) // 1-管理员用户
|
||||
.map(PileMemberRelation::getMemberId)
|
||||
.collect(Collectors.toList());
|
||||
if (CollectionUtils.isEmpty(adminList)) {
|
||||
@@ -341,13 +341,13 @@ public class PileService {
|
||||
}
|
||||
|
||||
// 校验身份
|
||||
if (!adminList.contains(dto.getMemberId())) {
|
||||
// 如果为空,说明此用户身份有误,不是管理员,抛出异常
|
||||
if (adminList.contains(dto.getMemberId())) {
|
||||
// 如果不为空,说明被分享的用户是管理员,抛出异常
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_AUTHENTICATION_ERROR);
|
||||
}
|
||||
|
||||
List<String> userList = relationList.stream()
|
||||
.filter(x -> !x.getType().equals("1"))
|
||||
.filter(x -> !x.getType().equals(Constants.TWO)) // 2-普通用户
|
||||
.map(PileMemberRelation::getMemberId)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user