From 3fc8398a9da85854e5e95c2c4cca14389d5dd5f8 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期三, 16 二月 2022 15:02:49 +0800 Subject: [PATCH] Fixed#135481 修正[ 顧問管理流程 ] 滿意度 : 顧問把預約單結案後,客戶端的顧問清單會顯示該顧問預約單狀態為「進行預約」正確 , 但是卻顯示「給予滿意度評分」的連結。填寫滿意度後無法送出 --- pamapi/src/main/java/com/pollex/pam/service/AppointmentClosedInfoService.java | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/service/AppointmentClosedInfoService.java b/pamapi/src/main/java/com/pollex/pam/service/AppointmentClosedInfoService.java index dbed395..9931a44 100644 --- a/pamapi/src/main/java/com/pollex/pam/service/AppointmentClosedInfoService.java +++ b/pamapi/src/main/java/com/pollex/pam/service/AppointmentClosedInfoService.java @@ -1,10 +1,22 @@ package com.pollex.pam.service; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; + +import com.pollex.pam.domain.AppointmentClosedInfo; +import com.pollex.pam.repository.AppointmentClosedInfoRepository; +import com.pollex.pam.web.rest.errors.AppointmentClosedInfoNotFoundException; @Service @Transactional public class AppointmentClosedInfoService { - + + @Autowired + AppointmentClosedInfoRepository appointmentClosedInfoRepository; + + public AppointmentClosedInfo findByAppointmentId(Long apId) { + return appointmentClosedInfoRepository.findByAppointmentId(apId) + .orElseThrow(AppointmentClosedInfoNotFoundException::new); + } } -- Gitblit v1.8.0