Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
B backend_autotest
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • test
  • backend_autotest
  • Merge requests
  • !677

Merged
Created Aug 17, 2026 by xu zy@xuzhenyangOwner

refactor(db): 数据库模块分层重构,抽取基础设施并迁移业务复现逻辑

  • Overview 1
  • Commits 1
  • Changes 76
  • db_core: 新增通用数据库基础设施(Database/连接工厂/Nacos配置缓存)
  • location_map/db/queries: 按业务域拆分查询层(tenant/brand/competitor/ branch_company/city/cluster/chance_point/standard/mirage/divebomb)
  • location_map/db/oracles: 接口 expected/oracle 层(approval/brand/dashboard/ data_migration/mall/mirage/spot_evaluation/task/youth_map)
  • common/database.py 缩为兼容门面,database_location/mirage/divebomb 缩为兼容模块
  • 全部测试文件与公共方法 import 迁移到新路径
  • tests/unit/test_database_architecture.py: 分层/无循环依赖/兼容导出架构测试
  • workbuddy/skills: 更新 DB 校验编写规范
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: xiaoyang_autotest