* Fix method of isFirstInference.

This commit is contained in:
zhouxin
2024-03-28 16:51:56 +08:00
parent 6c5e7edf77
commit 4c049555bb
+1 -1
View File
@@ -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;