* upgrade for xuanxuan.

This commit is contained in:
wangyidong
2019-04-26 09:07:07 +08:00
parent 36a5af36d8
commit 94e5db6789
2 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -1684,7 +1684,7 @@ class treeModel extends model
*/
public function getDocStructure()
{
$stmt = $this->dbh->query($this->dao->select('*')->from(TABLE_MODULE)->where('type')->eq('doc')->andWhere('deleted')->eq(0)->orderBy('`order`')->get());
$stmt = $this->dbh->query($this->dao->select('*')->from(TABLE_MODULE)->where('type')->eq('doc')->andWhere('deleted')->eq(0)->orderBy('`grade`_desc, `order`')->get());
$parent = array();
while($module = $stmt->fetch())
{