作者 tangxvhui

bug修复

@@ -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()