|
@@ -40,7 +40,7 @@ func (this *ReportController) ClassifyTree() {
|
|
}
|
|
}
|
|
|
|
|
|
classifyOb := new(models.Classify)
|
|
classifyOb := new(models.Classify)
|
|
- list, e := classifyOb.GetItemsByCondition(``, make([]interface{}, 0), []string{}, "")
|
|
|
|
|
|
+ list, e := classifyOb.GetItemsByCondition(``, make([]interface{}, 0), []string{}, fmt.Sprintf("%s ASC, %s ASC", classifyOb.Cols().Sort, classifyOb.Cols().ParentId))
|
|
if e != nil {
|
|
if e != nil {
|
|
br.Msg = "获取失败"
|
|
br.Msg = "获取失败"
|
|
br.ErrMsg = fmt.Sprintf("获取分类列表失败, %v", e)
|
|
br.ErrMsg = fmt.Sprintf("获取分类列表失败, %v", e)
|