From 30fd5edcbfe3c0b29f8ecb9301d6689a7cbd60a9 Mon Sep 17 00:00:00 2001 From: jack <jack.su@pollex.com.tw> Date: 星期四, 11 八月 2022 17:32:42 +0800 Subject: [PATCH] [UPDATE] 新增預約單若三天內有取消的預約單則批次新增此筆資料 [UPDATE] 前端錯誤訊息視窗調整 --- pamapi/src/main/java/com/pollex/pam/service/CustomerAuthService.java | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/service/CustomerAuthService.java b/pamapi/src/main/java/com/pollex/pam/service/CustomerAuthService.java index 04f116a..e7d394c 100644 --- a/pamapi/src/main/java/com/pollex/pam/service/CustomerAuthService.java +++ b/pamapi/src/main/java/com/pollex/pam/service/CustomerAuthService.java @@ -15,12 +15,12 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import com.pollex.pam.domain.Customer; -import com.pollex.pam.enums.CustomerDetailEnum; -import com.pollex.pam.repository.CustomerRepository; +import com.pollex.pam.business.domain.Customer; +import com.pollex.pam.business.enums.CustomerDetailEnum; +import com.pollex.pam.business.repository.CustomerRepository; import com.pollex.pam.security.jwt.TokenProvider; import com.pollex.pam.security.token.OtpAuthenticationToken; -import com.pollex.pam.web.rest.vm.OtpAccount; +import com.pollex.pam.business.web.vm.OtpAccount; @Service @Transactional @@ -59,9 +59,7 @@ new UsernamePasswordAuthenticationToken(account, otpCode, grantedAuths); Map<String, String> details = new HashMap<>(); - details.put(CustomerDetailEnum.ID.getValue(), customer.getId().toString()); - details.put(CustomerDetailEnum.NAME.getValue(), customer.getName()); - + details.put(CustomerDetailEnum.DB_ID.getValue(), customer.getId().toString()); authenticationToken.setDetails(details); return authenticationToken; -- Gitblit v1.8.0