Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • T tunume-operation
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • tny-saas
  • tunume-operation
  • Merge requests
  • !122

Merged
Created Sep 29, 2026 by wangzp@wangzpOwner

[#fix] 误报按租户定位来源记录,重复 UPSERT 覆盖工厂下钻字段

  • Overview 0
  • Commits 1
  • Changes 2

Summary

  • 按 source_type + source_record_id + tenant_id 查找和关闭误报,避免各工厂自增的源记录号跨租户命中同一行。
  • 无效 tenantId 的消息直接跳过。
  • 重复 UPSERT 时补写工厂、车间、挡车工、布种,这些列不在 updateByPrimaryKeySelective 里。

Test plan

  • 同一租户再发 UPSERT:命中原行,工厂名、挡车工跟随消息更新。
  • 不同租户相同 source_type + source_record_id:插入新行,不覆盖对方。
  • CLOSE 只更新同租户记录。
  • 缺 tenantId 的消息不入库。
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: hotfix/exp-report-source-tenant