feat:跳转项目排序

This commit is contained in:
lifei6671
2018-11-28 09:56:20 +08:00
parent f9a214199d
commit 6ca1515462
3 changed files with 6 additions and 6 deletions

View File

@@ -499,7 +499,7 @@ WHERE book.privately_owned = 0 or rel.role_id >=0 or team.role_id >=0`
as t group by book_id) as team on team.book_id=book.book_id
LEFT JOIN md_relationship AS rel1 ON rel1.book_id = book.book_id AND rel1.role_id = 0
LEFT JOIN md_members AS member ON rel1.member_id = member.member_id
WHERE book.privately_owned = 0 or rel.role_id >=0 or team.role_id >=0 ORDER BY order_index ,book.book_id DESC LIMIT ?,?`
WHERE book.privately_owned = 0 or rel.role_id >=0 or team.role_id >=0 ORDER BY order_index desc,book.book_id DESC LIMIT ?,?`
_, err = o.Raw(sql2, memberId, memberId, offset, pageSize).QueryRows(&books)