From 16fc30eb80d2c4b2d527829293e6cfffeb3eb8f6 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 23 Nov 2023 11:07:23 +0800 Subject: [PATCH] * Refactor custom::hasScrumAuditplanData method. --- module/custom/model.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/module/custom/model.php b/module/custom/model.php index 384f3c3bbb..a489ad3466 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -1184,12 +1184,13 @@ class customModel extends model } /** - * Verify whether there is scrum auditplan data. + * 检查系统中是否有敏捷项目的审计数据。 + * Check whether there is scrum auditplan data in the system. * * @access public - * @return bool + * @return int */ - public function hasScrumAuditplanData() + public function hasScrumAuditplanData(): int { if(in_array($this->config->edition, array('max', 'ipd'))) { @@ -1200,7 +1201,7 @@ class customModel extends model ->andWhere('t2.deleted')->eq('0') ->count(); } - return false; + return 0; } /**