浏览代码

Merge branch 'feature/eta1.1.0_edb_classify' into debug

xyxie 1 年之前
父节点
当前提交
25abad346c
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      services/data/edb_classify.go

+ 1 - 8
services/data/edb_classify.go

@@ -75,14 +75,7 @@ func GetFullClassifyByClassifyId(targetClassifyId int) (targetList []*data_manag
 		return
 	}
 	if targetClassify.ParentId == 0 {
-		targetItem := new(data_manage.EdbClassifyIdItems)
-		targetItem.ClassifyId = targetClassify.ClassifyId
-		targetItem.ParentId = targetClassify.ParentId
-		targetItem.RootId = targetClassify.RootId
-		targetItem.UniqueCode = targetClassify.UniqueCode
-		targetItem.Level = targetClassify.Level
-		targetItem.ClassifyName = targetClassify.ClassifyName
-		targetList = append(targetList, targetItem)
+		targetList = make([]*data_manage.EdbClassifyIdItems, 0)
 		return
 	}
 	tmpList, err := data_manage.GetEdbClassifyByRootIdLevel(targetClassify.RootId, targetClassify.ClassifyType, targetClassify.Level)