Explorar el Código

Merge branch 'dev-meta-dz' of xiongzhu/raex_back into master

lidongze hace 3 años
padre
commit
fefd7b3a77
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 '%土地%'")