@@ -55,6 +55,7 @@ public interface ImageSimilarityRepository
|
|||||||
JOIN file_entities f
|
JOIN file_entities f
|
||||||
ON f.id = h.file_id
|
ON f.id = h.file_id
|
||||||
WHERE ref.file_id = :fileId AND f.user_id = :userId
|
WHERE ref.file_id = :fileId AND f.user_id = :userId
|
||||||
|
AND f.status = 'ACTIVE'
|
||||||
""",
|
""",
|
||||||
nativeQuery = true)
|
nativeQuery = true)
|
||||||
List<SimilarImageProjection> findCandidatesFromUserFiles(
|
List<SimilarImageProjection> findCandidatesFromUserFiles(
|
||||||
@@ -80,6 +81,7 @@ public interface ImageSimilarityRepository
|
|||||||
JOIN file_entities f
|
JOIN file_entities f
|
||||||
ON f.id = h.file_id
|
ON f.id = h.file_id
|
||||||
WHERE ref.file_id = :fileId AND f.user_id IN :userIds
|
WHERE ref.file_id = :fileId AND f.user_id IN :userIds
|
||||||
|
AND f.status = 'ACTIVE'
|
||||||
""",
|
""",
|
||||||
nativeQuery = true)
|
nativeQuery = true)
|
||||||
List<SimilarImageProjection> findCandidatesFromUserFiles(
|
List<SimilarImageProjection> findCandidatesFromUserFiles(
|
||||||
@@ -105,6 +107,7 @@ public interface ImageSimilarityRepository
|
|||||||
JOIN file_entities f ON f.id = h.file_id
|
JOIN file_entities f ON f.id = h.file_id
|
||||||
WHERE h.hash64_hi = :hash64Hi
|
WHERE h.hash64_hi = :hash64Hi
|
||||||
AND h.hash64_lo = :hash64Lo
|
AND h.hash64_lo = :hash64Lo
|
||||||
|
AND f.status = 'ACTIVE'
|
||||||
""",
|
""",
|
||||||
nativeQuery = true)
|
nativeQuery = true)
|
||||||
List<SimilarImageProjection> findExactDuplicates(
|
List<SimilarImageProjection> findExactDuplicates(
|
||||||
|
|||||||
Reference in New Issue
Block a user