保誠-保戶業務員媒合平台
wayne
2021-12-03 1612ec02377e09e258610f91ee9bc4151070a8d8
pamapi/src/main/java/com/pollex/pam/security/SecurityUtils.java
@@ -107,10 +107,9 @@
        return userDetails.get(ConsultantDetailEnum.AGENT_NO.getValue());
    }
    // todo , should get id from user details
    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() {