diff --git a/src/main/java/project/backend/domain/culturalevent/entity/CulturalEvent.java b/src/main/java/project/backend/domain/culturalevent/entity/CulturalEvent.java index d14f7ae..ec56e8f 100644 --- a/src/main/java/project/backend/domain/culturalevent/entity/CulturalEvent.java +++ b/src/main/java/project/backend/domain/culturalevent/entity/CulturalEvent.java @@ -56,6 +56,12 @@ public class CulturalEvent extends BaseEntity { @Column(columnDefinition = "TEXT") public String information; + @Column(columnDefinition = "TEXT") + public String topic; + + @Column(columnDefinition = "TEXT") + public String sentiment; + @ManyToOne(fetch = FetchType.LAZY) public CulturalEventCategory culturalEventCategory; diff --git a/src/main/java/project/backend/domain/culturalevent/service/CulturalEventBatchService.java b/src/main/java/project/backend/domain/culturalevent/service/CulturalEventBatchService.java index 48cb7f7..b700bf1 100644 --- a/src/main/java/project/backend/domain/culturalevent/service/CulturalEventBatchService.java +++ b/src/main/java/project/backend/domain/culturalevent/service/CulturalEventBatchService.java @@ -5,9 +5,6 @@ import lombok.RequiredArgsConstructor; import org.json.JSONArray; import org.json.JSONObject; -import org.jsoup.Jsoup; -import org.jsoup.nodes.Document; -import org.jsoup.nodes.Element; import org.springframework.core.ParameterizedTypeReference; import org.springframework.http.HttpMethod; import org.springframework.http.ResponseEntity; @@ -32,8 +29,6 @@ import project.backend.domain.ticketingsite.entity.TicketingSite; import project.backend.domain.ticketingsite.service.TicketingSiteService; -import javax.swing.text.html.Option; -import java.io.IOException; import java.util.*; @Service @@ -176,6 +171,15 @@ public CulturalEventCreateDto getDetailCulturalEventFromGoodsCode(String goodsCo culturalEventCreateDto.setThumbnailImageUrl("https:" + culturalEventCreateDto.getThumbnailImageUrl()); return culturalEventCreateDto; } + + /** + * 기대평 기반 감정 저장 + */ + public void setKeywordSentiment(String goodsCode) { + // GET 하는 내용 + + } + } diff --git a/src/main/java/project/backend/domain/culturaleventevalutaion/service/CulturalEventEvaluationService.java b/src/main/java/project/backend/domain/culturaleventevalutaion/service/CulturalEventEvaluationService.java index 7ad7259..16b9e84 100644 --- a/src/main/java/project/backend/domain/culturaleventevalutaion/service/CulturalEventEvaluationService.java +++ b/src/main/java/project/backend/domain/culturaleventevalutaion/service/CulturalEventEvaluationService.java @@ -118,6 +118,5 @@ public void createCulturalEventEvaluations(String goodsCode, CulturalEvent cultu } List culturalEventEvaluationList = culturalEventEvaluationRepository.saveAll(evaluations); -// evaluations.forEach(evaluation -> evaluation.setCulturalEvent(culturalEvent)); } }