作者 tangxvhui

修改数据排序

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