Răsfoiți Sursa

建筑数量修改

lidongze 3 ani în urmă
părinte
comite
4d942c405b

+ 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 '%土地%'")