Add room image reorder APIs
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s

This commit is contained in:
androidlover5842
2026-01-27 17:32:15 +05:30
parent bb36512f8b
commit 03b02a08ca
3 changed files with 74 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ interface RoomImageRepo : JpaRepository<RoomImage, UUID> {
)
fun findByRoomTypeCodeForReorder(@Param("roomTypeCode") roomTypeCode: String): List<RoomImage>
fun findByIdAndRoomIdAndPropertyId(id: UUID, roomId: UUID, propertyId: UUID): RoomImage?
fun findByIdIn(ids: Collection<UUID>): List<RoomImage>
fun existsByRoomIdAndContentHash(roomId: UUID, contentHash: String): Boolean
@Query("select coalesce(max(ri.roomSortOrder), 0) from RoomImage ri where ri.room.id = :roomId")