正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -1425,7 +1425,7 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s | @@ -1425,7 +1425,7 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s | ||
1425 | if tk.Id != val.TaskId { | 1425 | if tk.Id != val.TaskId { |
1426 | continue | 1426 | continue |
1427 | } | 1427 | } |
1428 | - if val.Marks == nil { | 1428 | + if len(val.Marks) == 0 { |
1429 | val.Marks = map[string]string{} | 1429 | val.Marks = map[string]string{} |
1430 | } | 1430 | } |
1431 | r := val.Remark + ",该条异常已通知" | 1431 | r := val.Remark + ",该条异常已通知" |
@@ -1433,6 +1433,7 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s | @@ -1433,6 +1433,7 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s | ||
1433 | r += val2["name"] + " " | 1433 | r += val2["name"] + " " |
1434 | } | 1434 | } |
1435 | tk.AnomalyDesc = append(tk.AnomalyDesc, r) | 1435 | tk.AnomalyDesc = append(tk.AnomalyDesc, r) |
1436 | + tk.Marks = map[string]string{} | ||
1436 | switch val.Category { | 1437 | switch val.Category { |
1437 | case domain.AnomalyCategoryType1: | 1438 | case domain.AnomalyCategoryType1: |
1438 | tk.Marks["a"] = val.Marks["a"] | 1439 | tk.Marks["a"] = val.Marks["a"] |
-
请 注册 或 登录 后发表评论