* change the divider of order by, use ?\001 instead of |.

This commit is contained in:
wangchunsheng
2010-03-10 08:09:49 +00:00
parent ce54650fbc
commit 802dc067a9
12 changed files with 23 additions and 23 deletions

View File

@@ -62,7 +62,7 @@ class bugModel extends model
}
/* 获得某一个产品某一个模块下面的所有bug。*/
public function getModuleBugs($productID, $moduleIds = 0, $orderBy = 'id|desc', $pager = null)
public function getModuleBugs($productID, $moduleIds = 0, $orderBy = 'iddesc', $pager = null)
{
$sql = $this->dao->select('*')->from(TABLE_BUG)->where('product')->eq((int)$productID);
if(!empty($moduleIds)) $sql->andWhere('module')->in($moduleIds);
@@ -248,7 +248,7 @@ class bugModel extends model
}
/* 获得某个项目的bug列表。*/
public function getProjectBugs($projectID, $orderBy = 'id|desc', $pager = null)
public function getProjectBugs($projectID, $orderBy = 'iddesc', $pager = null)
{
return $this->dao->select('*')->from(TABLE_BUG)->where('project')->eq((int)$projectID)->orderBy($orderBy)->page($pager)->fetchAll();
}