feat(admin-curation): 큐레이션 캐릭터 다중 등록 및 검증 로직 개선

- 중복 ID 제거 및 0 이하 ID 필터링
- 조회 단계에서 활성 캐릭터만 조회하여 검증 포함
- 존재하지 않거나 비활성인 캐릭터는 건너뛰고 나머지만 등록
- 기존 매핑 있는 캐릭터는 무시, 다음 정렬 순서(nextOrder)로 일괄 추가
This commit is contained in:
2025-08-28 19:22:31 +09:00
parent 6767afdd35
commit d26e0a89f6
4 changed files with 40 additions and 16 deletions

View File

@@ -61,4 +61,6 @@ interface ChatCharacterRepository : JpaRepository<ChatCharacter, Long> {
@Param("characterId") characterId: Long,
pageable: Pageable
): List<ChatCharacter>
fun findByIdInAndIsActiveTrue(ids: List<Long>): List<ChatCharacter>
}