Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public interface PromptRepository extends JpaRepository<PromptEntity, Long> {
@Query("UPDATE PromptEntity p SET p.deletedAt = :deletedAt, p.status = :status WHERE p.id IN :promptIds")
int bulkSoftDelete(@Param("promptIds") List<Long> promptIds, @Param("deletedAt") LocalDateTime deletedAt, @Param("status") PromptStatus status);

@Query("SELECT new PromptAdminDto(" +
@Query("SELECT new com.progbe.domain.admin.dto.PromptAdminDto(" +
"p.id, p.title, u.nickname, c.name, p.status, p.createdAt) " +
"FROM PromptEntity p " +
"JOIN p.user u " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ boolean existsPendingReport(@Param("reporterId") Long reporterId,
"ORDER BY r.createdAt DESC")
Page<ReportEntity> findByStatusOrderByCreatedAtDesc(@Param("status") ReportStatus status, Pageable pageable);

@Query("SELECT new PendingReportDto(" +
@Query("SELECT new com.progbe.domain.report.dto.PendingReportDto(" +
"r.id, r.createdAt, r.reason, " +
"COALESCE(p.title, '(삭제된 게시글)'), " +
"u.nickname, " +
Expand Down