|
@@ -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 {
|