|
@@ -4,7 +4,6 @@ import com.izouma.nineth.domain.Asset;
|
|
|
import com.izouma.nineth.dto.FuAssetDTO;
|
|
import com.izouma.nineth.dto.FuAssetDTO;
|
|
|
import com.izouma.nineth.enums.AssetSource;
|
|
import com.izouma.nineth.enums.AssetSource;
|
|
|
import com.izouma.nineth.enums.AssetStatus;
|
|
import com.izouma.nineth.enums.AssetStatus;
|
|
|
-import com.izouma.nineth.enums.CollectionSource;
|
|
|
|
|
import com.izouma.nineth.enums.CollectionType;
|
|
import com.izouma.nineth.enums.CollectionType;
|
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
import org.springframework.data.domain.Pageable;
|
|
@@ -141,7 +140,7 @@ public interface AssetRepo extends JpaRepository<Asset, Long>, JpaSpecificationE
|
|
|
@Query("select count(id) from Asset where status = ?2 and name like ?1")
|
|
@Query("select count(id) from Asset where status = ?2 and name like ?1")
|
|
|
Long countDestroyed(String name, AssetStatus status);
|
|
Long countDestroyed(String name, AssetStatus status);
|
|
|
|
|
|
|
|
- @Query("select count(id) from Asset where name like ?1 and status = 'NORMAL' and ownerId <> 1435297")
|
|
|
|
|
|
|
+ @Query("select count(id) from Asset where name like ?1 and status in ('NORMAL','TRADING','GIFTING','MINTING','AUCTIONING','AUCTION_TRADING','DESTROYING') and ownerId <> 1435297")
|
|
|
Long countNameLikeNotDestroyed(String name);
|
|
Long countNameLikeNotDestroyed(String name);
|
|
|
|
|
|
|
|
@Query(value = "SELECT count(a.id) from asset a where a.name LIKE ?1 and status = 'NORMAL' and owner_id = ?2", nativeQuery = true)
|
|
@Query(value = "SELECT count(a.id) from asset a where a.name LIKE ?1 and status = 'NORMAL' and owner_id = ?2", nativeQuery = true)
|