-
Notifications
You must be signed in to change notification settings - Fork 1.6k
V3.14.x模型间多条关系查询问题 #8545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v3.14.x
Are you sure you want to change the base?
V3.14.x模型间多条关系查询问题 #8545
Conversation
e738e21 to
0c78bc0
Compare
0c78bc0 to
9d5ac77
Compare
| } | ||
|
|
||
| objAssoMap := make(map[string]metadata.Association, 0) | ||
| objAssoMap := make(map[string][]string) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只改这里的去重逻辑应该就可以了,改其他地方是还有其他什么问题吗?
There was a problem hiding this comment.
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
9d5ac77 to
af72d7a
Compare
修复的问题: