查询登录用户权限信息,使用UserUtils

This commit is contained in:
2023-11-11 16:28:23 +08:00
parent 40bf1f4a15
commit 659705e70d
2 changed files with 11 additions and 3 deletions

View File

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