* [task#133002,doing,0.1h] add commit.

This commit is contained in:
zhouxin
2024-11-22 09:19:04 +08:00
committed by 綦新志
parent ea998a30a5
commit 11d9b24e62
+11
View File
@@ -102,6 +102,17 @@ class pivotModel extends model
return $pivot;
}
/*
* 获取透视表某版本。
* Get pivot by id and version.
*
* @param int $pivotID
* @param string $version
* @param bool $processDateVar
* @param bool $addDrills
* @access public
* @return object|bool
*/
public function getPivotSpec(int $pivotID, string $version, bool $processDateVar = false, bool $addDrills = true)
{
$pivot = $this->dao->select('*')->from(TABLE_PIVOTSPEC)->where('pivot')->eq($pivotID)->andWhere('version')->eq($version)->fetch();