|
@@ -17,6 +17,10 @@ interface RelationDao {
|
|
@Query("select * from relation where building_id = :id")
|
|
@Query("select * from relation where building_id = :id")
|
|
suspend fun getRelationByBuildingId(id: String): List<RelationEntity>
|
|
suspend fun getRelationByBuildingId(id: String): List<RelationEntity>
|
|
|
|
|
|
|
|
+ @Query("select * from relation where project_id = :projectId")
|
|
|
|
+ suspend fun getRelationByProjectId(projectId: String): List<RelationEntity>
|
|
|
|
+
|
|
|
|
+
|
|
@Query("select * from relation where graph_code = :graphCode and rel_code = :relCode and valid = 1")
|
|
@Query("select * from relation where graph_code = :graphCode and rel_code = :relCode and valid = 1")
|
|
suspend fun getRelationByCode(graphCode: String, relCode: String): List<RelationEntity>
|
|
suspend fun getRelationByCode(graphCode: String, relCode: String): List<RelationEntity>
|
|
|
|
|