From 0a8e0b0de5d18443f469a5a87f830de49a8dc143 Mon Sep 17 00:00:00 2001
From: lai <371757574@qq.com>
Date: Fri, 22 Nov 2024 14:38:41 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=89=E6=8B=A9SPGW=20ID?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../performance/generalCsta/general_csta_up.php | 15 ++++++++++++++-
wxc2_omc/performance/generalCsta/spgw_day.php | 8 +++++---
2 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/wxc2_omc/performance/generalCsta/general_csta_up.php b/wxc2_omc/performance/generalCsta/general_csta_up.php
index 79f27a2..a13c770 100755
--- a/wxc2_omc/performance/generalCsta/general_csta_up.php
+++ b/wxc2_omc/performance/generalCsta/general_csta_up.php
@@ -32,7 +32,9 @@ function sel_date_from_change()
{
keyTwo=document.myform.keyTwo.value;
}
-
+ else if(sysTypeNo == 362 && page_id == 0){
+ keyTwo=document.myform.keyTwo.value;
+ }
//var scrollY=document.body.scrollTop;
if(down_date_from<=down_date_to)
down_date_to=down_date_from;
@@ -240,6 +242,17 @@ else if($sysTypeNo == 364)
}//if page==1
}
+else if($sysTypeNo == 362){
+ echo "System ID  ";
+}
else
{
echo "";
diff --git a/wxc2_omc/performance/generalCsta/spgw_day.php b/wxc2_omc/performance/generalCsta/spgw_day.php
index ec6c1c5..d82c0da 100644
--- a/wxc2_omc/performance/generalCsta/spgw_day.php
+++ b/wxc2_omc/performance/generalCsta/spgw_day.php
@@ -3,6 +3,7 @@ $cstaConf=GetCstaConf($sysTypeNo);
if(0)
{
echo "sel_date_from=$sel_date_from,sel_date_to=$sel_date_to
";
+ echo "keyTwo=$keyTwo
";
echo "
"; print_r($cstaConf); echo ""; @@ -14,7 +15,7 @@ $endTime=date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d")-$sel_date_to,dat //echo "startTime=$startTime,endTime=$endTime
";
@@ -41,15 +42,16 @@ function printVolumeWithUnits($bytes) {
$echartDown=printVolumeWithUnits($cstaData[0][downlink_total_volume]+0);
$echartUp=printVolumeWithUnits($cstaData[0][uplink_total_volume]+0);
-
+//echo $_REQUEST['keyTwo'];
global $cstaDbConn;
$dataTable=$cstaConf[DataObject][0][DetailDataTable];
$fieldList=$cstaConf[DataObject][0][DetailFieldList];
if(strlen($fieldList)){
$fieldList="$fieldList,csta_datetime";
}
-$sql="select {$fieldList} from CSTA_DB.{$dataTable} where csta_datetime >= '{$startTime}' and csta_datetime <= '{$endTime}' order by csta_datetime asc ";
+$sql="select {$fieldList} from CSTA_DB.{$dataTable} where csta_datetime >= '{$startTime}' and csta_datetime <= '{$endTime}' and key_sys_id = {$keyTwo} order by csta_datetime asc ";
$res=mysqli_query($cstaDbConn,$sql);
+//echo $sql;
//echo mysqli_error($cstaDbConn);
$num=mysqli_num_rows($res);
//set downArr upArr