From 925f8b4ffca99f07c629660d42c48f531b4f77a0 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期一, 21 二月 2022 18:17:14 +0800 Subject: [PATCH] [update] 移除login_record欄位,改統一放之後 將新開的稽核欄位"audit_logging",並在顧問欄位加開最後上線時間 --- pamapi/src/main/java/com/pollex/pam/service/CustomerService.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/service/CustomerService.java b/pamapi/src/main/java/com/pollex/pam/service/CustomerService.java index c944a44..79a086d 100644 --- a/pamapi/src/main/java/com/pollex/pam/service/CustomerService.java +++ b/pamapi/src/main/java/com/pollex/pam/service/CustomerService.java @@ -64,7 +64,7 @@ } public void updateLoggedCustomer(CustomerDTO customerDTO) { - Long customerId = SecurityUtils.getCustomerId(); + Long customerId = SecurityUtils.getCustomerDBId(); Customer customer = customerRepository.findById(customerId) .orElseThrow(() -> new UsernameNotFoundException("customerId which is from token is not found in customer db table, customer id = " + customerId)); @@ -75,7 +75,7 @@ } public CustomerDTO getLoggedCustomerDTO() { - Long customerId = SecurityUtils.getCustomerId(); + Long customerId = SecurityUtils.getCustomerDBId(); Customer customer = customerRepository.findById(customerId) .orElseThrow(() -> new UsernameNotFoundException("customerId which is from token is not found in customer db table, customer id = " + customerId)); -- Gitblit v1.8.0