Pārlūkot izejas kodu

Merge branch 'bug/4869' into debug

Roc 9 mēneši atpakaļ
vecāks
revīzija
1e8d9b6cf7
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      models/edb_info.go

+ 2 - 2
models/edb_info.go

@@ -365,9 +365,9 @@ func GetEdbDataListAllByMongo(source, subSource int, findEdbDataListAllCond Find
 
 	sortList := make([]string, 0)
 	if order == 1 {
-		sortList = append(sortList, "-data_time")
-	} else {
 		sortList = append(sortList, "data_time")
+	} else {
+		sortList = append(sortList, "-data_time")
 	}
 	// 获取列表数据
 	tmpDataList, tmpErr := mogDataObj.GetAllDataList(queryConditions, sortList)