* [task#135727] add count of yearly delete rows in user metric.

This commit is contained in:
liyang
2025-01-06 16:59:04 +08:00
committed by 曹延义
parent c30d26ea57
commit cbd52ab4dd
@@ -103,3 +103,15 @@ class count_of_yearly_delete_rows_in_user extends baseCalc
* @return void
*/
public function getResult($options = array())
{
if(empty($options))
{
$begin = date('Y-m-d', strtotime('-1 year'));
$end = date('Y-m-d');
}
else
{
$year = (int)$options['year'];
$begin = "{$year}-01-01";
$end = "{$year}-12-31";
}