From 202b9e95c39bc2b93cf0b53d0e89425db98f507a Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Tue, 3 Aug 2010 06:40:20 +0000 Subject: [PATCH] * order the doc. --- module/doc/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index 49f2d17858..f24239ee39 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -175,13 +175,13 @@ class docModel extends model /* 获得某一个产品的文档列表。*/ public function getProductDocs($productID) { - return $this->dao->findByProduct($productID)->from(TABLE_DOC)->andWhere('deleted')->eq(0)->fetchAll(); + return $this->dao->findByProduct($productID)->from(TABLE_DOC)->andWhere('deleted')->eq(0)->orderBy('id_desc')->fetchAll(); } /* 获得某一个项目的文档列表。*/ public function getProjectDocs($projectID) { - return $this->dao->findByProject($projectID)->from(TABLE_DOC)->andWhere('deleted')->eq(0)->fetchAll(); + return $this->dao->findByProject($projectID)->from(TABLE_DOC)->andWhere('deleted')->eq(0)->orderBy('id_desc')->fetchAll(); } /* 获得产品的文档模块列表*/