* change onCaseOf/endCase into beginIF/endIF

This commit is contained in:
chencongzhi520
2010-06-22 05:56:24 +00:00
parent 0d8748f2ba
commit 3a8564cbcb
11 changed files with 280 additions and 280 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class testcaseModel extends model
{
return $this->dao->select('*')->from(TABLE_CASE)
->where('product')->eq((int)$productID)
->onCaseOf($moduleIds)->andWhere('module')->in($moduleIds)->endCase()
->beginIF($moduleIds)->andWhere('module')->in($moduleIds)->endIF()
->andWhere('deleted')->eq('0')
->orderBy($orderBy)->page($pager)->fetchAll();
}