作者 tangxvhui

bug 修复

@@ -273,7 +273,7 @@ func editSelfCheckData(templateId int64, data []protocol.TemplateSelfCheck, om o @@ -273,7 +273,7 @@ func editSelfCheckData(templateId int64, data []protocol.TemplateSelfCheck, om o
273 mm.Id = idworker.NextId() 273 mm.Id = idworker.NextId()
274 newSelfCheckData = append(newSelfCheckData, mm) 274 newSelfCheckData = append(newSelfCheckData, mm)
275 } 275 }
276 - if _, ok := oldSelfCheckMap[m.Id]; ok { 276 + if _, ok := oldSelfCheckMap[mm.Id]; ok {
277 updateSelfCheck = append(updateSelfCheck, mm) 277 updateSelfCheck = append(updateSelfCheck, mm)
278 delete(oldSelfCheckMap, mm.Id) 278 delete(oldSelfCheckMap, mm.Id)
279 } 279 }