作者 tangxvhui

修复map 取值 异常

... ... @@ -1425,7 +1425,7 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s
if tk.Id != val.TaskId {
continue
}
if val.Marks == nil {
if len(val.Marks) == 0 {
val.Marks = map[string]string{}
}
r := val.Remark + ",该条异常已通知"
... ... @@ -1433,6 +1433,7 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s
r += val2["name"] + " "
}
tk.AnomalyDesc = append(tk.AnomalyDesc, r)
tk.Marks = map[string]string{}
switch val.Category {
case domain.AnomalyCategoryType1:
tk.Marks["a"] = val.Marks["a"]
... ...