新增SPGW统计

This commit is contained in:
lai
2024-11-19 18:01:38 +08:00
parent 5fba2be54d
commit 6d5307cbce
3 changed files with 399 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ define(iGRS_SYSTYPENO,387);
define(TMG_SYSTYPENO,391);
define(AMRMG_SYSTYPENO,392);
define(RCS_SYSTYPENO,364);
define(SPGW_SYSTYPENO,362);
global $OMC_server;
$cstaDbConn=mysqli_connect($OMC_server[0]['host'],$OMC_server[0]['user'],$OMC_server[0]['password'], $csta_db);
@@ -135,7 +136,7 @@ function GetCstaDataByDay($cstaConf,$startTime,$endTime,$dataType,$keyOneConditi
$sql="select {$fieldList} from CSTA_DB.{$dataTable} where csta_datetime >= '{$startTime}' and csta_datetime <= '{$endTime}' {$keyCondition} ";
if(strcmp($condition,""))
$sql.=" and $condition ";
if(0)
if($DEBUG)
echo "$sql<br>";
$res=mysqli_query($cstaDbConn,$sql);
$num=mysqli_num_rows($res);
@@ -164,7 +165,7 @@ function GetCstaDataByDay($cstaConf,$startTime,$endTime,$dataType,$keyOneConditi
}
// debug_log("/tmp/debugperformance","cstaData=$cstaData");
}
return $cstaData;
}