From 38b68f92b9a47ca3947985d6b581603fe05106c7 Mon Sep 17 00:00:00 2001
From: charlie <charlie@lvguanqingdeMacBook-Pro.local>
Date: 星期六, 22 一月 2022 11:56:00 +0800
Subject: [PATCH] update: 1. 新增約訪預約資訊頭像圖片和型別icon,微調對齊方式         2. 約訪結案列表的樣式修正並調整進度條色彩

---
 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