瀏覽代碼

fix:用户默认排序

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

+ 4 - 0
controllers/user.go

@@ -517,6 +517,10 @@ func (this *UserController) List() {
 			sortCondition = ""
 		}
 	}
+	if sortCondition == "" {
+		sortCondition = " ORDER BY u.valid_end_time ASC"
+
+	}
 
 	if sellerIdStr != "" {
 		sellerIds := strings.Split(sellerIdStr, ",")