正在显示
1 个修改的文件
包含
6 行增加
和
7 行删除
| @@ -475,13 +475,12 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques | @@ -475,13 +475,12 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques | ||
| 475 | } | 475 | } |
| 476 | } | 476 | } |
| 477 | } | 477 | } |
| 478 | - if len(request.SelfCheck) > 0 { | ||
| 479 | - err = editSelfCheckData(template.Id, request.SelfCheck, orm) | ||
| 480 | - if err != nil { | ||
| 481 | - log.Error("更新audit_check数据失败:err:%s", err) | ||
| 482 | - orm.Rollback() | ||
| 483 | - return rsp, protocol.NewErrWithMessage("1") | ||
| 484 | - } | 478 | + |
| 479 | + err = editSelfCheckData(template.Id, request.SelfCheck, orm) | ||
| 480 | + if err != nil { | ||
| 481 | + log.Error("更新audit_check数据失败:err:%s", err) | ||
| 482 | + orm.Rollback() | ||
| 483 | + return rsp, protocol.NewErrWithMessage("1") | ||
| 485 | } | 484 | } |
| 486 | 485 | ||
| 487 | orm.Commit() | 486 | orm.Commit() |
-
请 注册 或 登录 后发表评论