fix: 黄金指标5s数据sql调整

This commit is contained in:
TsMask
2024-01-27 18:36:37 +08:00
parent 68f202d935
commit ba936d0a46
2 changed files with 13 additions and 3 deletions

View File

@@ -49,6 +49,10 @@ func (s *PerfKPIController) GoldKPI(c *gin.Context) {
c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400")))
return
}
if querys.Interval < 5 || querys.Interval > 3600 {
c.JSON(400, result.CodeMsg(400, i18n.TKey(language, "app.common.err400")))
return
}
// 查询网元获取IP
neInfo := s.neInfoService.SelectNeInfoByNeTypeAndNeID(querys.NeType, querys.NeID)