瀏覽代碼

fix:修改查询的默认排序

zqbao 10 月之前
父節點
當前提交
7c67bf6f56
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/user.go

+ 1 - 1
controllers/user.go

@@ -1232,7 +1232,7 @@ func (this *UserController) GlobalSearch() {
 		}
 	}
 	if sortCondition == "" {
-		sortCondition = ` ORDER BY u.user_Id DESC`
+		sortCondition = ` ORDER BY u.register_time DESC`
 	}
 
 	startSize := utils.StartIndex(currentIndex, pageSize)