正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -48,7 +48,7 @@ func TemplateAdd(uid, companyId int64, request *protocol.TemplateAddRequest) (rs | @@ -48,7 +48,7 @@ func TemplateAdd(uid, companyId int64, request *protocol.TemplateAddRequest) (rs | ||
48 | Doc: request.Template.Doc, | 48 | Doc: request.Template.Doc, |
49 | Icon: request.Template.Icon, | 49 | Icon: request.Template.Icon, |
50 | Code: request.Template.Code, | 50 | Code: request.Template.Code, |
51 | - NoApprover: int8(request.AuditFlowConfig.NoApprover), //TODO:配置 | 51 | + NoApprover: int8(request.AuditFlowConfig.NoApprover), |
52 | SortNum: 0, | 52 | SortNum: 0, |
53 | VisibleType: int8(0), | 53 | VisibleType: int8(0), |
54 | EnableStatus: 1, | 54 | EnableStatus: 1, |
@@ -174,7 +174,7 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques | @@ -174,7 +174,7 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques | ||
174 | template.Name = request.Template.Name | 174 | template.Name = request.Template.Name |
175 | template.Doc = request.Template.Doc | 175 | template.Doc = request.Template.Doc |
176 | template.Icon = request.Template.Icon | 176 | template.Icon = request.Template.Icon |
177 | - template.NoApprover = 1 | 177 | + template.NoApprover = int8(request.AuditFlowConfig.NoApprover) |
178 | template.Example = request.Example | 178 | template.Example = request.Example |
179 | template.UpdateAt = time.Now() | 179 | template.UpdateAt = time.Now() |
180 | if err = models.UpdateAuditTemplateById(template); err != nil { | 180 | if err = models.UpdateAuditTemplateById(template); err != nil { |
-
请 注册 或 登录 后发表评论