|
|
@@ -170,8 +170,11 @@ public interface CollectionRepo extends JpaRepository<Collection, Long>, JpaSpec
|
|
|
@Query("select c.vipQuota from Collection c where c.id = ?1")
|
|
|
Integer getVipQuota(Long id);
|
|
|
|
|
|
- @Query(value = "select c.asset_id from collection_info c where c.source = 'TRANSFER' and c.created_at <= ?1 and c.salable = true and c.on_shelf = true limit 3000", nativeQuery = true)
|
|
|
- Set<Long> findResaleCollectionOverTime(LocalDateTime startTime);
|
|
|
+ @Query(value = "select c.asset_id from collection_info c where c.source = 'TRANSFER' and c.created_at <= ?1 and c.created_at <= ?2 and c.salable = true and c.on_shelf = true limit 3000", nativeQuery = true)
|
|
|
+ Set<Long> findResaleCollectionOverTime(LocalDateTime startTime, LocalDateTime ruleTime);
|
|
|
+
|
|
|
+ @Query(value = "select c.asset_id from collection_info c where c.source = 'TRANSFER' and c.created_at <= ?1 and c.created_at > ?2 and c.salable = true and c.on_shelf = true limit 3000", nativeQuery = true)
|
|
|
+ Set<Long> findResaleCollectionOverTimeV2(LocalDateTime startTime, LocalDateTime ruleTime);
|
|
|
|
|
|
List<Collection> findAllByNameLike(String name);
|
|
|
|