mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-24 04:55:08 +08:00
update
(cherry picked from commit 71be841f4d65a63a61059bb45bbc6e6f4bb35b42)
This commit is contained in:
@@ -242,8 +242,8 @@ public class MemberBasicInfoServiceImpl implements MemberBasicInfoService {
|
||||
|
||||
// 来自后管的充值,校验权限
|
||||
if (StringUtils.equals(dto.getFromWeb(), Constants.ONE)) {
|
||||
LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<MerchantInfoVO> merchantInfoVOList = loginUserDetail.getMerchantInfoVOList();
|
||||
// LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<MerchantInfoVO> merchantInfoVOList = UserUtils.getMerchantInfoVOList();
|
||||
List<String> collect = merchantInfoVOList.stream().map(MerchantInfoVO::getMerchantId).collect(Collectors.toList());
|
||||
if (!collect.contains(targetMerchantId)) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_PERMISSION_DENIED);
|
||||
@@ -520,8 +520,8 @@ public class MemberBasicInfoServiceImpl implements MemberBasicInfoService {
|
||||
// dto.setMerchantId(id);
|
||||
// }
|
||||
|
||||
LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<String> firstMerchantIdList = loginUserDetail.getFirstMerchantIdList();
|
||||
// LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<String> firstMerchantIdList = UserUtils.getFirstMerchantIdList();
|
||||
if (CollectionUtils.isNotEmpty(firstMerchantIdList)) {
|
||||
dto.setFirstMerchantIds(firstMerchantIdList);
|
||||
}
|
||||
@@ -609,8 +609,8 @@ public class MemberBasicInfoServiceImpl implements MemberBasicInfoService {
|
||||
@Override
|
||||
public List<MerchantVipVO> queryMerchantVipList(QueryMemberInfoDTO dto) {
|
||||
// 获取后管登录用户的权限
|
||||
LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<MerchantInfoVO> merchantInfoVOList = loginUserDetail.getMerchantInfoVOList();
|
||||
// LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<MerchantInfoVO> merchantInfoVOList = UserUtils.getMerchantInfoVOList();
|
||||
List<String> merchantIdList = merchantInfoVOList.stream()
|
||||
.map(MerchantInfoVO::getMerchantId).collect(Collectors.toList());
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.jsowell.common.constant.Constants;
|
||||
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
@@ -89,12 +90,13 @@ public class PileAuthCardServiceImpl implements PileAuthCardService {
|
||||
*/
|
||||
@Override
|
||||
public List<PileAuthCardVO> getPileAuthCardInfoList(PileAuthCardDTO dto) {
|
||||
LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<MerchantInfoVO> merchantInfoVOList = loginUserDetail.getMerchantInfoVOList();
|
||||
// LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<MerchantInfoVO> merchantInfoVOList = UserUtils.getMerchantInfoVOList();
|
||||
List<String> merchantIdList = merchantInfoVOList.stream().map(MerchantInfoVO::getMerchantId).collect(Collectors.toList());
|
||||
dto.setMerchantIdList(merchantIdList);
|
||||
PageUtils.startPage();
|
||||
return pileAuthCardMapper.getPileAuthCardInfoList(dto);
|
||||
List<PileAuthCardVO> pileAuthCardInfoList = pileAuthCardMapper.getPileAuthCardInfoList(dto);
|
||||
return pileAuthCardInfoList;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user