feat: HLR跟踪页面标识为UDM

This commit is contained in:
TsMask
2025-07-07 10:44:47 +08:00
parent acab82a3f6
commit 4c63533390

View File

@@ -60,7 +60,7 @@ func (r *TraceTaskHlr) DeleteByIds(ids []int64) (int64, error) {
if len(rows) == len(ids) {
// 停止任务
neInfos := r.neInfoService.Find(neModel.NeInfo{NeType: "HLR"}, false, false)
neInfos := r.neInfoService.Find(neModel.NeInfo{NeType: "UDM"}, false, false)
for _, r := range rows {
if r.Status == "0" {
continue
@@ -98,7 +98,7 @@ func (r *TraceTaskHlr) Start(task model.TraceTaskHlr) (int64, error) {
}
// 发送创建任务
neInfos := r.neInfoService.Find(neModel.NeInfo{NeType: "HLR"}, false, false)
neInfos := r.neInfoService.Find(neModel.NeInfo{NeType: "UDM"}, false, false)
for _, neInfo := range neInfos {
hlrItem := map[string]any{
"neType": neInfo.NeType,
@@ -129,7 +129,7 @@ func (r *TraceTaskHlr) Start(task model.TraceTaskHlr) (int64, error) {
func (r *TraceTaskHlr) Stop(task model.TraceTaskHlr) error {
hlrList := []map[string]any{}
// 发送停止任务
neInfos := r.neInfoService.Find(neModel.NeInfo{NeType: "HLR"}, false, false)
neInfos := r.neInfoService.Find(neModel.NeInfo{NeType: "UDM"}, false, false)
for _, neInfo := range neInfos {
hlrItem := map[string]any{
"neType": neInfo.NeType,
@@ -161,7 +161,7 @@ func (r *TraceTaskHlr) Stop(task model.TraceTaskHlr) error {
func (r *TraceTaskHlr) File(traceId, dirPath string) ([]map[string]any, error) {
hlrList := []map[string]any{}
// 查询所有匹配的网元类型
neInfos := r.neInfoService.Find(neModel.NeInfo{NeType: "HLR"}, false, false)
neInfos := r.neInfoService.Find(neModel.NeInfo{NeType: "UDM"}, false, false)
if len(neInfos) == 0 {
return nil, fmt.Errorf("not found network element")
}