Browse Source

@task: legacy dirty data

bai 3 years ago
parent
commit
6273703aaf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      demo/src/main/java/com/framework/mvvm/model/db/dao/ObjectDao.kt

+ 1 - 1
demo/src/main/java/com/framework/mvvm/model/db/dao/ObjectDao.kt

@@ -23,7 +23,7 @@ interface ObjectDao {
     @Query("select * from object where building_id = :buildingId and obj_type=:type and valid = 1")
     suspend fun getObjectByBuildingId(buildingId: String, type: String): List<ObjectEntity>
 
-    @Query("select * from object where building_id = :buildingId and valid = 1")
+    @Query("select * from object where building_id = :buildingId")
     suspend fun getObjectByBuildingId(buildingId: String): List<ObjectEntity>
 
     @Query("select * from object where floor_id = :floorId and obj_type=:type and valid = 1")