|
@@ -1096,7 +1096,7 @@ func GetChartClassifyChildrenRecursive(list []*data_manage.ChartClassifyItems, p
|
|
var res []*data_manage.ChartClassifyItems
|
|
var res []*data_manage.ChartClassifyItems
|
|
|
|
|
|
for _, v := range list {
|
|
for _, v := range list {
|
|
- if v.ParentId == parentId {
|
|
|
|
|
|
+ if v.ParentId == parentId || v.ChartClassifyId == parentId {
|
|
// 递归调用以获取更深层次的子级
|
|
// 递归调用以获取更深层次的子级
|
|
children := GetChartClassifyChildrenRecursive(list, v.ChartClassifyId)
|
|
children := GetChartClassifyChildrenRecursive(list, v.ChartClassifyId)
|
|
// 将当前节点和所有子节点添加到结果中
|
|
// 将当前节点和所有子节点添加到结果中
|