...
|
...
|
@@ -254,7 +254,8 @@ func editSelfCheckData(templateId int64, data []protocol.TemplateSelfCheck, om o |
|
|
if m.Id == 0 {
|
|
|
m.Id = idworker.NextId()
|
|
|
newSelfCheckData = append(newSelfCheckData, m)
|
|
|
} else if _, ok := oldSelfCheckMap[m.Id]; ok {
|
|
|
}
|
|
|
if _, ok := oldSelfCheckMap[m.Id]; ok {
|
|
|
updateSelfCheck = append(updateSelfCheck, m)
|
|
|
delete(oldSelfCheckMap, m.Id)
|
|
|
}
|
...
|
...
|
@@ -271,7 +272,8 @@ func editSelfCheckData(templateId int64, data []protocol.TemplateSelfCheck, om o |
|
|
if mm.Id == 0 {
|
|
|
mm.Id = idworker.NextId()
|
|
|
newSelfCheckData = append(newSelfCheckData, mm)
|
|
|
} else if _, ok := oldSelfCheckMap[m.Id]; ok {
|
|
|
}
|
|
|
if _, ok := oldSelfCheckMap[m.Id]; ok {
|
|
|
updateSelfCheck = append(updateSelfCheck, mm)
|
|
|
delete(oldSelfCheckMap, mm.Id)
|
|
|
}
|
...
|
...
|
|