...
|
...
|
@@ -475,13 +475,12 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if len(request.SelfCheck) > 0 {
|
|
|
err = editSelfCheckData(template.Id, request.SelfCheck, orm)
|
|
|
if err != nil {
|
|
|
log.Error("更新audit_check数据失败:err:%s", err)
|
|
|
orm.Rollback()
|
|
|
return rsp, protocol.NewErrWithMessage("1")
|
|
|
}
|
|
|
|
|
|
err = editSelfCheckData(template.Id, request.SelfCheck, orm)
|
|
|
if err != nil {
|
|
|
log.Error("更新audit_check数据失败:err:%s", err)
|
|
|
orm.Rollback()
|
|
|
return rsp, protocol.NewErrWithMessage("1")
|
|
|
}
|
|
|
|
|
|
orm.Commit()
|
...
|
...
|
|