feat: 优化UPF流量统计逻辑

This commit is contained in:
TsMask
2025-03-04 14:51:52 +08:00
parent 32630fbb4a
commit 986624c48f
7 changed files with 282 additions and 143 deletions

View File

@@ -56,7 +56,6 @@ func (s *UPFController) TotalFlow(c *gin.Context) {
return
}
data := s.perfKPIService.SelectUPFTotalFlow(neInfo.NeType, neInfo.RmUID, querys.Day)
c.JSON(200, result.OkData(data))
up, down := s.perfKPIService.UPFTodayFlowFind(neInfo.RmUID, querys.Day)
c.JSON(200, result.OkData(map[string]int64{"up": up, "down": down}))
}