* Finish task #98407,98408.
This commit is contained in:
+12
-12
@@ -10,14 +10,14 @@
|
||||
* 单位:个
|
||||
* 描述:按全局统计的结束的产品数表示已经停止研发和运营的产品数量。此度量项反映了组织中已经停止研发和运营的产品数量,可以用于评估组织的产品生命周期管理和战略调整。
|
||||
* 定义:所有产品的个数求和
|
||||
状态为结束
|
||||
过滤已删除的产品
|
||||
(过滤影子产品)
|
||||
* 状态为结束
|
||||
* 过滤已删除的产品
|
||||
* (过滤影子产品)
|
||||
* 度量库:
|
||||
* 收集方式:realtime
|
||||
*
|
||||
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
||||
* @author qixinzhi <qixinzhi@easycorp.ltd>
|
||||
* @author zhouxin <zhouxin@easycorp.ltd>
|
||||
* @package
|
||||
* @uses func
|
||||
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||||
@@ -25,20 +25,20 @@
|
||||
*/
|
||||
class count_of_closed_product extends baseCalc
|
||||
{
|
||||
public $dataset = null;
|
||||
public $dataset = 'getProducts';
|
||||
|
||||
public $fieldList = array();
|
||||
public $fieldList = array('t1.status');
|
||||
|
||||
//public funtion getStatement($dao)
|
||||
//{
|
||||
//}
|
||||
public $result = 0;
|
||||
|
||||
public function calculate($data)
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status == 'closed') $this->result += 1;
|
||||
}
|
||||
|
||||
public function getResult($options = array())
|
||||
{
|
||||
return $this->filterByOptions($this->result, $options);
|
||||
$records = array(array('value' => $this->result));
|
||||
return $this->filterByOptions($records, $options);
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
-12
@@ -10,14 +10,14 @@
|
||||
* 单位:个
|
||||
* 描述:按全局统计的正常的产品数表示处于正常状态的产品数量。此度量项反映了组织中处于正常研发和运营状态的产品数量,可以用于评估组织的研发能力和运营能力。
|
||||
* 定义:所有产品的个数求和
|
||||
状态为正常
|
||||
过滤已删除的产品
|
||||
(过滤影子产品)
|
||||
* 状态为正常
|
||||
* 过滤已删除的产品
|
||||
* (过滤影子产品)
|
||||
* 度量库:
|
||||
* 收集方式:realtime
|
||||
*
|
||||
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
|
||||
* @author qixinzhi <qixinzhi@easycorp.ltd>
|
||||
* @author zhouxin <zhouxin@easycorp.ltd>
|
||||
* @package
|
||||
* @uses func
|
||||
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
|
||||
@@ -25,20 +25,20 @@
|
||||
*/
|
||||
class count_of_normal_product extends baseCalc
|
||||
{
|
||||
public $dataset = null;
|
||||
public $dataset = 'getProducts';
|
||||
|
||||
public $fieldList = array();
|
||||
public $fieldList = array('t1.status');
|
||||
|
||||
//public funtion getStatement($dao)
|
||||
//{
|
||||
//}
|
||||
public $result = 0;
|
||||
|
||||
public function calculate($data)
|
||||
public function calculate($row)
|
||||
{
|
||||
if($row->status == 'normal') $this->result += 1;
|
||||
}
|
||||
|
||||
public function getResult($options = array())
|
||||
{
|
||||
return $this->filterByOptions($this->result, $options);
|
||||
$records = array(array('value' => $this->result));
|
||||
return $this->filterByOptions($records, $options);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user