From e5065dea306c4a3185fbee8c12525cf8c5ef85ee Mon Sep 17 00:00:00 2001
From: Jack <jack.su@pollex.com.tw>
Date: 星期五, 21 一月 2022 17:02:55 +0800
Subject: [PATCH] [ADD] 新增小鈴鐺通知的查詢API [UPDATE] 調整取得最愛顧問清單的狀態判斷 [BUG] 修復結案的進件時間只有日期的問題

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

diff --git a/pamapi/src/main/java/com/pollex/pam/repository/SatisfactionRepository.java b/pamapi/src/main/java/com/pollex/pam/repository/SatisfactionRepository.java
index 229ac4b..98476e7 100644
--- a/pamapi/src/main/java/com/pollex/pam/repository/SatisfactionRepository.java
+++ b/pamapi/src/main/java/com/pollex/pam/repository/SatisfactionRepository.java
@@ -20,6 +20,7 @@
 	Optional<Satisfaction> findOneByAppointmentId(Long appointmentId);
 
 	@Query(value = "SELECT avg(score) FROM satisfaction where agent_no=:agent_no"
+			+ " and score is not null"
 			, nativeQuery = true)
 	Float getAgentScoreAvg(@Param("agent_no") String agentNo);
 }

--
Gitblit v1.8.0