[misc] add count_of_monthly_fixed_bug_in_project class and getResult method.

This commit is contained in:
songchenxuan
2024-11-05 08:48:21 +08:00
committed by 綦新志
parent 1476d57429
commit fc1b4ce11d
@@ -18,3 +18,17 @@
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @Link https://www.zentao.net
*/
class count_of_monthly_fixed_bug_in_project extends baseCalc
{
public $dataset = 'getProjectBugs';
public $fieldList = array('t1.id', 't1.project', 't1.resolution', 't1.closedDate');
public $result = array();
public function getResult($options = array())
{
$records = $this->getRecords(array('project', 'year', 'month', 'value'));
return $this->filterByOptions($records, $options);
}
}