|
@@ -23,13 +23,13 @@ public interface CardCaseRepo extends JpaRepository<CardCase, Long>, JpaSpecific
|
|
|
@Query("SELECT new com.izouma.tcg.dto.cardCase.CaseDTO(" +
|
|
@Query("SELECT new com.izouma.tcg.dto.cardCase.CaseDTO(" +
|
|
|
" s.id, s.startTime, s.images, s.customName, " +
|
|
" s.id, s.startTime, s.images, s.customName, " +
|
|
|
" s.boxPrice, s.caseStatus, s.special, s.roomId, s.liveNow, s.instant,s.collectionId) " +
|
|
" s.boxPrice, s.caseStatus, s.special, s.roomId, s.liveNow, s.instant,s.collectionId) " +
|
|
|
- "FROM CardCase s WHERE s.caseStatus = ?1 and s.seriesId = ?2 and s.del = false")
|
|
|
|
|
|
|
+ "FROM CardCase s WHERE s.caseStatus = ?1 and s.seriesId = ?2 and s.del = false order by s.createdAt desc ")
|
|
|
Page<CaseDTO> customFindList1(CaseStatus caseStatus, Long seriesId, Pageable pageable);
|
|
Page<CaseDTO> customFindList1(CaseStatus caseStatus, Long seriesId, Pageable pageable);
|
|
|
|
|
|
|
|
@Query("SELECT new com.izouma.tcg.dto.cardCase.CaseDTO(" +
|
|
@Query("SELECT new com.izouma.tcg.dto.cardCase.CaseDTO(" +
|
|
|
" s.id, s.startTime, s.images, s.customName, " +
|
|
" s.id, s.startTime, s.images, s.customName, " +
|
|
|
" s.boxPrice, s.caseStatus, s.special, s.roomId, s.liveNow, s.instant,s.collectionId) " +
|
|
" s.boxPrice, s.caseStatus, s.special, s.roomId, s.liveNow, s.instant,s.collectionId) " +
|
|
|
- "FROM CardCase s WHERE s.caseStatus = ?1 and s.seriesId = ?3 and s.collectionId in ?2 and s.del = false ")
|
|
|
|
|
|
|
+ "FROM CardCase s WHERE s.caseStatus = ?1 and s.seriesId = ?3 and s.collectionId in ?2 and s.del = false order by s.createdAt desc ")
|
|
|
Page<CaseDTO> customFindList2(CaseStatus caseStatus, Set<Long> collectionId, Long seriesId, Pageable pageable);
|
|
Page<CaseDTO> customFindList2(CaseStatus caseStatus, Set<Long> collectionId, Long seriesId, Pageable pageable);
|
|
|
|
|
|
|
|
List<CardCase> findAllByRoomIdAndStoreId(Long roomId, Long storeId);
|
|
List<CardCase> findAllByRoomIdAndStoreId(Long roomId, Long storeId);
|