Browse Source

2023-05-22

zoie 1 year ago
parent
commit
c291728099
1 changed files with 2 additions and 2 deletions
  1. 2 2
      models/Attendance/Attendance.go

+ 2 - 2
models/Attendance/Attendance.go

@@ -341,9 +341,9 @@ func Read_Attendance_List_For_Stat(T_uid string, page, page_z int) (r []Attendan
 
 	var err error
 	if page_z == 9999 {
-		_, err = qs.SetCond((*orm2.Condition)(cond)).OrderBy("Id").All(&map_r)
+		_, err = qs.SetCond((*orm2.Condition)(cond)).OrderBy("-Id").All(&map_r)
 	} else {
-		_, err = qs.Limit(page_z, offset).SetCond((*orm2.Condition)(cond)).OrderBy("Id").All(&map_r)
+		_, err = qs.Limit(page_z, offset).SetCond((*orm2.Condition)(cond)).OrderBy("-Id").All(&map_r)
 	}
 
 	if err != nil {