yuliang преди 1 година
родител
ревизия
60fcf8692c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      db/selection.go

+ 1 - 1
db/selection.go

@@ -168,7 +168,7 @@ func GetSelectionList(ctx context.Context, enterpriseID string, pageSize, pageNu
 			return nil, 0, err
 		}
 	} else {
-		err := db.Order("task_ddl desc").Limit(int(limit)).Offset(int(offset)).Find(&selectionInfos).Error
+		err := db.Order("updated_at desc").Limit(int(limit)).Offset(int(offset)).Find(&selectionInfos).Error
 		if err != nil {
 			logrus.WithContext(ctx).Errorf("[GetSelectionList] error query mysql total, err:%+v", err)
 			return nil, 0, err