Browse Source

fix:修改查询的默认排序

zqbao 10 tháng trước cách đây
mục cha
commit
7c67bf6f56
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)