Explorar o código

fix:用户默认排序

zqbao hai 11 meses
pai
achega
48e8f3c12d
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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, ",")