Просмотр исходного кода

Merge branch 'master' of http://git.izouma.com/xiongzhu/raex_back into dev-meta

sunkean 3 лет назад
Родитель
Сommit
8969fe03f4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/java/com/izouma/nineth/repo/UserDetailRepo.java

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

@@ -17,7 +17,7 @@ public interface UserDetailRepo extends JpaRepository<UserDetail, Long>, JpaSpec
     @Query("select count(a) from Asset a where a.userId = ?1 and a.status = 'NORMAL'")
     Long findNftCountById(Long id);
 
-    @Query("select count(a) from Asset a where a.userId = ?1 and a.status = 'NORMAL' and a.name like '%房产%' or a.name like '%建筑%'")
+    @Query("select count(a) from Asset a where a.userId = ?1 and a.status = 'NORMAL' and (a.name like '%房产%' or a.name like '%建筑%')")
     Long findBuildCountById(Long id);
 
     @Query("select count(a) from Asset a where a.userId = ?1 and a.status = 'NORMAL' and a.name like '%土地%'")