(cherry picked from commit 71be841f4d65a63a61059bb45bbc6e6f4bb35b42)
This commit is contained in:
Guoqs
2024-05-28 11:54:02 +08:00
parent 61e40908b2
commit 073586af4c
5 changed files with 37 additions and 62 deletions

View File

@@ -108,9 +108,9 @@ public class MemberBasicInfoController extends BaseController {
@GetMapping("/getMerchantListByAuth")
public RestApiResponse<?> getMerchantListByAuth() {
RestApiResponse<?> response = null;
LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
logger.info("获取登录用户信息:{}", JSON.toJSONString(loginUserDetail));
List<MerchantInfoVO> list = loginUserDetail.getMerchantInfoVOList();
// LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
// logger.info("获取登录用户信息:{}", JSON.toJSONString(loginUserDetail));
List<MerchantInfoVO> list = UserUtils.getMerchantInfoVOList();
if (CollectionUtils.isEmpty(list)) {
list = new ArrayList<>();
}

View File

@@ -41,9 +41,9 @@ public class MemberGroupController extends BaseController {
@PreAuthorize("@ss.hasPermi('member:memberGroup:list')")
@GetMapping("/list")
public TableDataInfo list(MemberGroupDTO memberGroup) {
LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
logger.info("获取登录用户信息:{}", JSON.toJSONString(loginUserDetail));
List<MerchantInfoVO> merchantInfoVOList = loginUserDetail.getMerchantInfoVOList();
// LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
// logger.info("获取登录用户信息:{}", JSON.toJSONString(loginUserDetail));
List<MerchantInfoVO> merchantInfoVOList = UserUtils.getMerchantInfoVOList();
List<String> collect = merchantInfoVOList.stream().map(MerchantInfoVO::getMerchantId).collect(Collectors.toList());
memberGroup.setMerchantIdList(collect);
startPage();