From a07407417cc411606fa4ce059076521469128ed7 Mon Sep 17 00:00:00 2001 From: Klaus Date: Sat, 13 Sep 2025 05:01:52 +0900 Subject: [PATCH] =?UTF-8?q?fix(admin-chat-calculate):=20=EC=BA=90=EB=A6=AD?= =?UTF-8?q?=ED=84=B0=20=EC=A0=95=EC=82=B0=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ONLY_FULL_GROUP_BY 대응 - c2.image_path 집계식 적용 --- .../admin/chat/calculate/AdminChatCalculateQueryRepository.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/admin/chat/calculate/AdminChatCalculateQueryRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/admin/chat/calculate/AdminChatCalculateQueryRepository.kt index defc36b..078abc2 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/admin/chat/calculate/AdminChatCalculateQueryRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/admin/chat/calculate/AdminChatCalculateQueryRepository.kt @@ -51,9 +51,8 @@ class AdminChatCalculateQueryRepository( val c2 = QChatCharacter("c2") val characterIdExpr = c1.id.coalesce(c2.id) - // ONLY_FULL_GROUP_BY 대응: name/imagePath는 집계 함수로 선택 val characterNameAgg = Expressions.stringTemplate( - "coalesce(max({0}), max({1}))", + "coalesce(max({0}), max({1}), '')", c1.name, c2.name )