From 3c94dc06c3b99e7fc430e68ee2ce4a6cf2cd422c Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期三, 16 二月 2022 15:54:32 +0800
Subject: [PATCH] [update] 修正滿意度評分在沒有撈到任何評分紀錄時,不可直接set 0進顧問的分數中

---
 pamapi/src/main/java/com/pollex/pam/service/InterviewRecordService.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pamapi/src/main/java/com/pollex/pam/service/InterviewRecordService.java b/pamapi/src/main/java/com/pollex/pam/service/InterviewRecordService.java
index df2c520..40197b4 100644
--- a/pamapi/src/main/java/com/pollex/pam/service/InterviewRecordService.java
+++ b/pamapi/src/main/java/com/pollex/pam/service/InterviewRecordService.java
@@ -5,6 +5,7 @@
 import org.hibernate.boot.model.naming.IllegalIdentifierException;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 
 import com.pollex.pam.domain.Appointment;
 import com.pollex.pam.domain.InterviewRecord;
@@ -16,6 +17,7 @@
 import com.pollex.pam.web.rest.errors.InterviewRecordNotFoundException;
 
 @Service
+@Transactional
 public class InterviewRecordService {
 	
 	@Autowired

--
Gitblit v1.8.0