浏览代码

修改排序

rdluck 4 年之前
父节点
当前提交
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
 }