* Add case of execution model.

This commit is contained in:
tianshujie
2023-01-29 11:12:13 +08:00
parent 506981148e
commit c81992a1c2
2 changed files with 68 additions and 0 deletions
+18
View File
@@ -15,6 +15,24 @@ class executionTest
$this->productModel = $tester->loadModel('product');
}
/**
* Compute cfd of a execution.
*
* @param int|string|array $executionID
* @access public
* @return array
*/
public function computeCFDTest($executionID = 0)
{
$this->executionModel->computeCFD($executionID);
$today = helper::today();
return $this->executionModel->dao->select('*')->from(TABLE_CFD)
->where('date')->eq($today)
->beginIF(!empty($executionID))->andWhere('execution')->in($executionID)->fi()
->fetchAll('id');
}
/**
* Get no multiple execution id.
*