rdluck 4 жил өмнө
parent
commit
57d4f4a53b
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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
 }