阶段性提交

This commit is contained in:
刘祥超
2020-12-23 09:52:50 +08:00
parent 88bbde47ec
commit 7efce621b0
8 changed files with 247 additions and 146 deletions

View File

@@ -486,6 +486,10 @@ func (this *ServerDAO) UpdateServerNames(serverId int64, serverNames []byte) err
serverNames = []byte("[]")
}
op.ServerNames = serverNames
err := this.Save(op)
if err != nil {
return err
}
return this.createEvent()
}
@@ -503,7 +507,11 @@ func (this *ServerDAO) UpdateAuditingServerNames(serverId int64, isAuditing bool
} else {
op.AuditingServerNames = auditingServerNamesJSON
}
op.AuditingResult = `{"isOk":true}`
err := this.Save(op)
if err != nil {
return err
}
return this.createEvent()
}