From 991dfe252f275431011ec55c7b47a9bc11e36d87 Mon Sep 17 00:00:00 2001 From: Jack <jack.su@pollex.com.tw> Date: 星期二, 28 十二月 2021 15:02:45 +0800 Subject: [PATCH] [UPDATE] 調整編輯顧問API的文件 [BUG] 處理修改顧問資料未更新個人背景和得獎經歷的問題 --- pamapi/src/main/java/com/pollex/pam/repository/AppointmentRepository.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/repository/AppointmentRepository.java b/pamapi/src/main/java/com/pollex/pam/repository/AppointmentRepository.java index fe3bc8c..a59dbb6 100644 --- a/pamapi/src/main/java/com/pollex/pam/repository/AppointmentRepository.java +++ b/pamapi/src/main/java/com/pollex/pam/repository/AppointmentRepository.java @@ -1,6 +1,7 @@ package com.pollex.pam.repository; import java.util.List; +import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @@ -13,4 +14,6 @@ List<Appointment> findByAgentNo(String agentNo); List<Appointment> findByAgentNoAndCustomerId(String agentNo, Long customerId); + + Optional<Appointment> findTopByAgentNoAndCustomerIdOrderByAppointmentDateDesc(String agentNo, Long customerId); } -- Gitblit v1.8.0