修改面板快捷新增时的种类联动

This commit is contained in:
squallzhjch
2023-05-06 15:38:27 +08:00
parent fbff312f41
commit 3733634eb5
8 changed files with 52 additions and 38 deletions

View File

@@ -75,7 +75,7 @@ class RealmOperateHelper() {
GeometryTools.createPoint(
point.longitude,
point.latitude
), it
) , it
)
)
} else {

View File

@@ -33,6 +33,9 @@ interface ScProblemTypeDao {
@Query("select DISTINCT CLASS_TYPE from ScProblemType order by CLASS_TYPE")
suspend fun findClassTypeList(): List<String>?
@Query("select DISTINCT CLASS_TYPE from ScProblemType where ELEMENT_CODE=:code")
suspend fun findClassTypeByCode(code: Int): String?
/**
* 获取问题类型,并去重
*/