联调优化

This commit is contained in:
马增飞
2025-11-14 18:13:28 +08:00
parent 6e3e873764
commit 76fa364792
18 changed files with 317 additions and 251 deletions
@@ -151,7 +151,7 @@ class CollectSearchDialog(
confirmBlock = {
Thread {
activity?.runOnUiThread {
Loading.show(context)
Loading.show(activity!!)
}
val name = list[position].goodsName
val filterIdList = box?.all?.filter { it.name == name }?.map { it.id }
@@ -191,7 +191,7 @@ class CollectSearchDialog(
list.clear()
var queryList = box?.all?.distinctBy { it.name }
if (searchName.isNullOrBlank().not()) {
queryList = queryList?.filter { it.name?.contains(searchName) == true }
queryList = queryList?.filter { it.name?.contains(searchName!!) == true }
}
queryList?.forEach {
list.add((SearchGoodsInfo.Record(goodsName = it.name)))