-
this is the entity
and i want a tree struct like |
Beta Was this translation helpful? Give feedback.
Answered by
799189288
Jul 15, 2024
Replies: 1 comment
-
yeah, i finally find the resolution.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
799189288
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yeah, i finally find the resolution.
here is the answer:
1.first of all, you need to query all category and divide result into two part: one with parentid another without.
2.recursively find the children and assign the value.
i think this should be listed as a example.