From 4c049555bbf3df22cdce453459ba2a948032f389 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Thu, 28 Mar 2024 16:51:56 +0800 Subject: [PATCH] * Fix method of isFirstInference. --- module/metric/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/metric/model.php b/module/metric/model.php index 761e8d0698..e68adac37b 100755 --- a/module/metric/model.php +++ b/module/metric/model.php @@ -2489,7 +2489,7 @@ class metricModel extends model { $inferenceRecordCount = $this->dao->select('COUNT(id) AS count')->from(TABLE_METRICLIB) ->where('calcType')->eq('inference') - ->beginIF($code == null)->andWhere('metricCode')->eq($code)->fi() + ->beginIF($code != null)->andWhere('metricCode')->eq($code)->fi() ->fetch('count'); return $inferenceRecordCount == 0 ? true : false;