From bf60845c8da9d0099ef25c8e6703351055865a8e Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Thu, 29 Jul 2021 20:35:26 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/score_shop' into score_shop --- zq-erp/src/main/java/com/matrix/system/common/tools/DataAuthUtil.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/common/tools/DataAuthUtil.java b/zq-erp/src/main/java/com/matrix/system/common/tools/DataAuthUtil.java index 96be8be..9e0a932 100644 --- a/zq-erp/src/main/java/com/matrix/system/common/tools/DataAuthUtil.java +++ b/zq-erp/src/main/java/com/matrix/system/common/tools/DataAuthUtil.java @@ -25,4 +25,13 @@ } + /** + * 可以查询所有会员 + * @return + */ + public static boolean hasAllCustomerAuth() { + SysUsers user = (SysUsers) WebUtil.getSession().getAttribute(MatrixConstance.LOGIN_KEY); + return user.getShopRole().equals(Dictionary.FLAG_YES_Y) || user.getSuUserType().equals(AppConstance.USER_TYPE_ADMIN); + + } } -- Gitblit v1.9.1