* change the divider of orderby.

This commit is contained in:
wangchunsheng
2010-03-28 13:01:33 +00:00
parent a921717f43
commit 52d38d5a88
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ class testcaseModel extends model
}
/* 获得某一个产品,某一个模块下面的所有case。*/
public function getModuleCases($productID, $moduleIds = 0, $orderBy = 'iddesc', $pager = null)
public function getModuleCases($productID, $moduleIds = 0, $orderBy = 'id_desc', $pager = null)
{
$sql = $this->dao->select('*')->from(TABLE_CASE)->where('product')->eq((int)$productID);
if(!empty($moduleIds)) $sql->andWhere('module')->in($moduleIds);