作者 yangfu

模板修改

... ... @@ -48,7 +48,7 @@ func TemplateAdd(uid, companyId int64, request *protocol.TemplateAddRequest) (rs
Doc: request.Template.Doc,
Icon: request.Template.Icon,
Code: request.Template.Code,
NoApprover: int8(request.AuditFlowConfig.NoApprover), //TODO:配置
NoApprover: int8(request.AuditFlowConfig.NoApprover),
SortNum: 0,
VisibleType: int8(0),
EnableStatus: 1,
... ... @@ -174,7 +174,7 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques
template.Name = request.Template.Name
template.Doc = request.Template.Doc
template.Icon = request.Template.Icon
template.NoApprover = 1
template.NoApprover = int8(request.AuditFlowConfig.NoApprover)
template.Example = request.Example
template.UpdateAt = time.Now()
if err = models.UpdateAuditTemplateById(template); err != nil {
... ...