mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 07:56:24 +00:00
Fix: 테이블 변경에 따른 에러 해결
This commit is contained in:
parent
b302076e24
commit
24c2507927
File diff suppressed because it is too large
Load Diff
@ -91,11 +91,6 @@ public class Minutes {
|
||||
*/
|
||||
private LocalDateTime finalizedAt;
|
||||
|
||||
/**
|
||||
* 결정사항
|
||||
*/
|
||||
private String decisions;
|
||||
|
||||
/**
|
||||
* 회의록 확정 가능 여부 검증
|
||||
*
|
||||
|
||||
@ -141,11 +141,6 @@ public class MinutesDTO {
|
||||
*/
|
||||
private final List<TodoInfo> todos;
|
||||
|
||||
/**
|
||||
* 결정사항
|
||||
*/
|
||||
private final String decisions;
|
||||
|
||||
// 중첩 클래스들
|
||||
|
||||
@Getter
|
||||
|
||||
@ -1111,9 +1111,9 @@ public class MinutesController {
|
||||
log.debug("AI 분석 결과로 대시보드 정보 업데이트 완료 - minutesId: {}",
|
||||
minutesDTO.getMinutesId());
|
||||
} else {
|
||||
// AI 분석 결과가 없으면 비동기 분석 요청 이벤트 발행
|
||||
publishAiAnalysisRequest(minutesDTO, userId, userName);
|
||||
log.debug("AI 분석 요청 이벤트 발행 완료 - minutesId: {}",
|
||||
// AI 분석 결과가 없으면 비동기 분석 요청 이벤트 발행 - 제거됨
|
||||
// publishAiAnalysisRequest(minutesDTO, userId, userName);
|
||||
log.debug("AI 분석 요청 이벤트 발행 스킵 - DB 값 사용 - minutesId: {}",
|
||||
minutesDTO.getMinutesId());
|
||||
}
|
||||
|
||||
|
||||
@ -88,22 +88,6 @@ public class MinutesSectionGateway implements MinutesSectionReader, MinutesSecti
|
||||
} else {
|
||||
// 새 엔티티 생성 - minutes 연관관계 설정 필요
|
||||
entity = MinutesSectionEntity.fromDomain(section);
|
||||
|
||||
// Minutes 엔티티 조회하여 연관관계 설정
|
||||
MinutesEntity minutesEntity = minutesJpaRepository.findById(section.getMinutesId())
|
||||
.orElseThrow(() -> new IllegalArgumentException("Minutes not found: " + section.getMinutesId()));
|
||||
entity = MinutesSectionEntity.builder()
|
||||
.sectionId(section.getSectionId())
|
||||
.id(section.getSectionId()) // id와 sectionId를 동일하게 설정
|
||||
.minutes(minutesEntity) // 연관관계 설정
|
||||
.type(section.getType())
|
||||
.title(section.getTitle())
|
||||
.content(section.getContent())
|
||||
.order(section.getOrder())
|
||||
.verified(section.getVerified())
|
||||
.locked(section.getLocked())
|
||||
.lockedBy(section.getLockedBy())
|
||||
.build();
|
||||
}
|
||||
|
||||
MinutesSectionEntity savedEntity = sectionJpaRepository.save(entity);
|
||||
|
||||
@ -57,12 +57,6 @@ public class MinutesEntity extends BaseTimeEntity {
|
||||
@Column(name = "finalized_at")
|
||||
private LocalDateTime finalizedAt;
|
||||
|
||||
@Column(name = "decisions", columnDefinition = "TEXT")
|
||||
private String decisions;
|
||||
|
||||
@Column(name = "user_id", length = 100)
|
||||
private String userId;
|
||||
|
||||
public Minutes toDomain() {
|
||||
return Minutes.builder()
|
||||
.minutesId(this.minutesId)
|
||||
|
||||
@ -90,4 +90,8 @@ public class MinutesSectionEntity extends BaseTimeEntity {
|
||||
this.locked = false;
|
||||
this.lockedBy = null;
|
||||
}
|
||||
|
||||
public void updateContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user