feat: UPF总流量数 N3上行 N6下行

This commit is contained in:
TsMask
2024-01-29 15:47:29 +08:00
parent ba936d0a46
commit f1b17e00ab
5 changed files with 12 additions and 10 deletions

View File

@@ -11,5 +11,5 @@ type IPerfKPI interface {
SelectGoldKPITitle(neType string) []model.GoldKPITitle
// SelectUPFTotalFlow 查询UPF总流量 N3上行 N6下行
SelectUPFTotalFlow(neType, rmUID string, day int) []map[string]any
SelectUPFTotalFlow(neType, rmUID string, day int) map[string]any
}

View File

@@ -40,11 +40,11 @@ func (r *PerfKPIImpl) SelectGoldKPITitle(neType string) []model.GoldKPITitle {
}
// SelectUPFTotalFlow 查询UPF总流量 N3上行 N6下行
func (r *PerfKPIImpl) SelectUPFTotalFlow(neType, rmUID string, day int) []map[string]any {
func (r *PerfKPIImpl) SelectUPFTotalFlow(neType, rmUID string, day int) map[string]any {
// 获取当前日期
now := time.Now()
endDate := now.Format("2006-01-02")
// 将当前日期天数
// 将当前日期前几天数
afterDays := now.AddDate(0, 0, -day)
startDate := afterDays.Format("2006-01-02")