xiongzhu 3 anos atrás
pai
commit
08264df7b1

+ 3 - 1
src/main/java/com/izouma/nineth/repo/IdentityAuthRepo.java

@@ -42,5 +42,7 @@ public interface IdentityAuthRepo extends JpaRepository<IdentityAuth, Long>, Jpa
     Page<Long> listUserId(Pageable pageable);
 
     @Query("delete from IdentityAuth i where i.userId = ?1 and i.id <> ?2")
-    List<Long> deleteDuplicated(Long userId, Long id);
+    @Modifying
+    @Transactional
+    void deleteDuplicated(Long userId, Long id);
 }