From 9f843e9978cc4bff79e515a6ab929154d904fa46 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期五, 14 一月 2022 13:06:40 +0800 Subject: [PATCH] Merge branch 'Phase3' of https://dev.pollex.com.tw:8443/r/pcalife/PAM into Phase3 --- pamapi/src/main/java/com/pollex/pam/security/SecurityUtils.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/security/SecurityUtils.java b/pamapi/src/main/java/com/pollex/pam/security/SecurityUtils.java index 054f171..787c1f3 100644 --- a/pamapi/src/main/java/com/pollex/pam/security/SecurityUtils.java +++ b/pamapi/src/main/java/com/pollex/pam/security/SecurityUtils.java @@ -107,9 +107,9 @@ return userDetails.get(ConsultantDetailEnum.AGENT_NO.getValue()); } - public static Long getCustomerId() { + public static Long getCustomerDBId() { Map<String, String> userDetails = getCurrentUserDetails(); - return Long.parseLong(userDetails.get(CustomerDetailEnum.ID.getValue())); + return Long.parseLong(userDetails.get(CustomerDetailEnum.DB_ID.getValue())); } public static Map<String, String> getCurrentUserDetails() { -- Gitblit v1.8.0