rdluck %!s(int64=4) %!d(string=hai) anos
pai
achega
57d4f4a53b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/user.go

+ 1 - 1
models/user.go

@@ -167,7 +167,7 @@ func GetArticleUserInterviewApplyCount(userId int) (count int, err error) {
 func GetArticleUserInterviewApplyList(startSize, pageSize, userId int) (items []*ArticleInterviewApplyList, err error) {
 	sql := `SELECT a.* FROM cygx_interview_apply AS a
 			WHERE a.user_id=? 
-           ORDER BY a.sort ASC LIMIT ?,? `
+           ORDER BY a.status ASC LIMIT ?,? `
 	_, err = orm.NewOrm().Raw(sql, userId, startSize, pageSize).QueryRows(&items)
 	return
 }