* Refactor checkCFDData method.

This commit is contained in:
tianshujie
2023-08-30 17:08:20 +08:00
parent f2c0a70650
commit d5b55323a1
4 changed files with 15 additions and 14 deletions
+5 -3
View File
@@ -2912,16 +2912,18 @@ class executionTest
}
/**
* Test check CFD data.
* 查看指定的执行日期是否有数据,且没有更新最新日期的数据。
* Check whether there is data on the specified date of execution, and there is no data with the latest date added.
*
* @param int $executionID
* @param string $date
* @access public
* @return array
*/
public function checkCFDDataTest($executionID, $date)
public function updateCFDDataTest(int $executionID, string $date): array
{
$this->executionModel->checkCFDData($executionID, $date);
$this->executionModel->updateCFDData($executionID, $date);
return $this->executionModel->dao->select("date, `count` AS value, `name`")->from(TABLE_CFD)
->where('execution')->eq((int)$executionID)
->andWhere('date')->eq($date)