feat : 수정
Some checks failed
Analytics CI / build-and-push (push) Has been cancelled

This commit is contained in:
lsh9672 2025-06-20 09:31:05 +09:00
parent fe15d55f45
commit e4e3265646
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,7 @@
package com.ktds.hi;
import java.util.TimeZone;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
@ -17,6 +19,9 @@ import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
public class AnalyticsApplication {
public static void main(String[] args) {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
SpringApplication.run(AnalyticsApplication.class, args);
}
}

View File

@ -25,7 +25,7 @@ public interface AiFeedbackJpaRepository extends JpaRepository<AiFeedbackEntity,
/**
* 매장 ID로 최신 AI 피드백 조회
*/
@Query("SELECT af FROM AiFeedbackEntity af WHERE af.storeId = :storeId ORDER BY af.id DESC LIMIT 1")
@Query("SELECT af FROM AiFeedbackEntity af WHERE af.storeId = :storeId ORDER BY af.generatedAt DESC LIMIT 1")
Optional<AiFeedbackEntity> findLatestByStoreId(@Param("storeId") Long storeId);
/**