保誠-保戶業務員媒合平台
wayne
2021-12-29 7eb57571830d0677857cea565b09c4f38d286b8d
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() {