Skip to content

Conversation

@elizabevil
Copy link
Contributor

修复的问题:

  • 模型间多条关系查询问题
  • 更改原有map去重为数组以支持多种关联

@elizabevil elizabevil force-pushed the v3.14.x-instAsso branch 2 times, most recently from e738e21 to 0c78bc0 Compare November 18, 2025 12:47
}

objAssoMap := make(map[string]metadata.Association, 0)
objAssoMap := make(map[string][]string)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

只改这里的去重逻辑应该就可以了,改其他地方是还有其他什么问题吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1,asst.ObjectID,asst.AsstObjID,不能直接根据两字段去重(最初问题所在),此处采用数组
2,后续逻辑metadata.Association只用到AssociationName属性,因此替换为[]string表示AssociationName数组,而非[]metadata.Association

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants