fix: UPF流量总计7,30天累计数据查询

This commit is contained in:
TsMask committed 2025-03-24 14:15:11 +08:00
1 parent 8e2f48f97d
commit f55fe005ad
4 files changed
+46 -45

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ func (k *KpiCReport) Get(c *gin.Context) {
dbg := db.DB("").Model(&KpiCReport{}).Table(tableName)
if querys.NeID != "" {
conditions = append(conditions, "rm_uid = (select n.rm_uid from ne_info n where n.ne_type=? and n.ne_id=? and n.status=1)")
conditions = append(conditions, "rm_uid = (select n.rm_uid from ne_info n where n.ne_type=? and n.ne_id=?)")
params = append(params, strings.ToUpper(querys.NeType), querys.NeID)
} else {
c.JSON(http.StatusBadRequest, services.ErrResp("Not found required parameter NE ID"))
+1 -1
View File
@@ -202,7 +202,7 @@ func saveKPIData(kpiReport KpiReport, index int64) int64 {
// 更新UPF总流量
upValue := parse.Number(kpiEvent["UPF.03"])
downValue := parse.Number(kpiEvent["UPF.06"])
neDataService.NewKpiReport.UPFTodayFlowUpdate(neInfo.RmUID, upValue, downValue, false)
neDataService.NewKpiReport.UPFTodayFlowUpdate(neInfo.RmUID, upValue, downValue)
}
}
}