feat: HLR跟踪页面标识为UDM
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user