正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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 | - | 164 | + query.Order("staff_assess.id") |
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 |
-
请 注册 或 登录 后发表评论