feat(db): 为数据库调试页面添加多字段动态筛选功能
- 在 CookFoodDao、CookFoodGoodsDao、SeasoningDao 和 SeasoningSlotDao 中添加 RawQuery 支持 - 为各数据访问对象添加动态条件分页查询和统计方法 - 在 DbRepository 中扩展动态查询相关方法 - 在 DbViewModel 中实现 DbInspectFilter 数据类和 buildQueries 动态 SQL 构建逻辑 - 更新 DbInspectFragment 添加筛选字段配置和 UI 生成逻辑 - 重构筛选条件收集和查询流程,支持精确匹配和模糊搜索 - 修改刷新按钮为查询按钮,更新 Tab 切换时的筛选框重建逻辑 - 调整设置页面标题从"设备设置"改为"设置"
This commit is contained in:
@@ -106,11 +106,22 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="12dp"
|
||||
android:paddingVertical="6dp"
|
||||
android:text="刷新"
|
||||
android:text="查询"
|
||||
android:textSize="12sp"
|
||||
android:textColor="#5C77F7" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 筛选条件区域:根据当前 Tab 动态生成对应的筛选框 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/llFilterContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="#FFFFFF"
|
||||
android:paddingStart="8dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingBottom="6dp" />
|
||||
|
||||
<!-- 记录列表 -->
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rvRecords"
|
||||
|
||||
Reference in New Issue
Block a user