作者 tangxvhui

修改数据排序

@@ -161,7 +161,7 @@ func (repo *StaffAssessRepository) Find(queryOptions map[string]interface{}) (in @@ -161,7 +161,7 @@ func (repo *StaffAssessRepository) Find(queryOptions map[string]interface{}) (in
161 if v, ok := queryOptions["beginDay"]; ok { 161 if v, ok := queryOptions["beginDay"]; ok {
162 query.Where("to_char(staff_assess.begin_time at time zone 'PRC','YYYY-MM-DD')= ? ", v) 162 query.Where("to_char(staff_assess.begin_time at time zone 'PRC','YYYY-MM-DD')= ? ", v)
163 } 163 }
164 - query.Order("staff_assess.id") 164 + query.Order("staff_assess.id DESC")
165 count, err := query.SelectAndCount() 165 count, err := query.SelectAndCount()
166 if err != nil { 166 if err != nil {
167 return 0, nil, err 167 return 0, nil, err