增加数据渲染

This commit is contained in:
squallzhjch
2023-04-19 15:40:00 +08:00
parent 88326d3247
commit a9def220ce
43 changed files with 1760 additions and 482 deletions

View File

@@ -1,8 +1,6 @@
package com.navinfo.omqs.db.dao
import androidx.room.*
import androidx.sqlite.db.SupportSQLiteDatabase
import com.navinfo.collect.library.data.dao.impl.MapLifeDataBase.getDatabase
import com.navinfo.omqs.bean.ScProblemTypeBean
@@ -38,13 +36,13 @@ interface ScProblemTypeDao {
/**
* 获取问题类型,并去重
*/
@Query("select DISTINCT TYPE from ScProblemType where CLASS_TYPE=:type order by TYPE")
suspend fun findProblemTypeList(type: String): List<String>
@Query("select * from ScProblemType where CLASS_TYPE=:type order by TYPE")
suspend fun findProblemTypeList(type: String): List<ScProblemTypeBean>?
/**
*
*/
@Query("select PHENOMENON from ScProblemType where CLASS_TYPE=:classType and TYPE=:type order by PHENOMENON")
suspend fun getPhenomenonList(classType: String, type: String): List<String>
// /**
// *
// */
// @Query("select PHENOMENON from ScProblemType where CLASS_TYPE=:classType and TYPE=:type order by PHENOMENON")
// suspend fun getPhenomenonList(classType: String, type: String): List<String>
}

View File

@@ -22,4 +22,10 @@ interface ScRootCauseAnalysisDao {
insertList(list)
}
/**
* 获取问题环节数据
*/
@Query("select * from ScRootCauseAnalysis order by PROBLEM_LINK")
suspend fun findAllData(): List<ScRootCauseAnalysisBean>?
}