作者 tangxvhui

机会模板编辑修改

... ... @@ -701,6 +701,7 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs
if len(template.Videos) > 0 {
_ = json.Unmarshal([]byte(template.Videos), &rsp.Videos)
}
//兼容就数据
if auditForm, err = models.GetAuditFormByTemplateId(int(template.Id)); err != nil {
log.Error("id:%v msg:%v", template.Id, err.Error())
... ... @@ -739,6 +740,11 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs
rsp.AuditFlowConfig = protocol.AuditFlowConfig{
NoApprover: int(template.NoApprover),
ProcessConfig: make([]protocol.ProcessConfig, 0),
SelfCheckNeed: template.SelfCheckNeed,
}
//兼容旧数据
if template.SelfCheckNeed == 0 {
rsp.AuditFlowConfig.SelfCheckNeed = models.AuditSelfCheckNeedYes
}
for i := range configs {
config := configs[i]
... ...