|
|
@@ -162,8 +162,8 @@ public interface CollectionRepo extends JpaRepository<Collection, Long>, JpaSpec
|
|
|
|
|
|
|
|
|
//筛选
|
|
|
- @Query(value = "select c.id, c.asset_id, c.stock, c.start_time, c.end_time, c.publish_time, c.purchase_time from collection_info c where c.end_time <= ?1 and c.end_time < ?2", nativeQuery = true)
|
|
|
- List<Collection> selectScreen(LocalDateTime startTime, LocalDateTime endTime);
|
|
|
+// @Query(value = "select c.id, c.asset_id, c.stock, c.start_time, c.end_time, c.publish_time, c.purchase_time from collection_info c where c.end_time <= ?1 and c.end_time < ?2", nativeQuery = true)
|
|
|
+ List<Collection> findAllByEndTimeLessThanEqualAndEndTimeLessThan(LocalDateTime startTime, LocalDateTime endTime);
|
|
|
|
|
|
@Transactional
|
|
|
@Modifying
|