|
|
@@ -83,6 +83,9 @@ public interface AssetRepo extends JpaRepository<Asset, Long>, JpaSpecificationE
|
|
|
@Query(value = "update Asset a set a.holdDays = ?2 where a.id = ?1")
|
|
|
void updateHoldDays(Long id, Integer holdDays);
|
|
|
|
|
|
- @Query("select a from Asset a join a.tags t on t.id = ?2 where a.userId = ?1")
|
|
|
+ @Query("select a from Asset a " +
|
|
|
+ " join a.tags t on t.id = ?2 " +
|
|
|
+ "where a.userId = ?1 " +
|
|
|
+ " and a.status = com.izouma.nineth.enums.AssetStatus.NORMAL")
|
|
|
Page<Asset> byTag(Long userId, Long tagId, Pageable pageable);
|
|
|
}
|