作者 yangfu

公告直接发布,发布给所有人

... ... @@ -111,6 +111,8 @@ func TemplateAdd(uid, companyId int64, request *protocol.TemplateAddRequest) (rs
flowConfig.ToRole = jsonAssertMarsh(getIdsFrom(config.ToRole))
flowConfig.ToUser = jsonAssertMarsh(getIdsFrom(config.ToUser))
flowConfig.ActionType = config.AcitonType
//flowConfig.FlowType = config.ProcessType
//flowConfig.AuditFlowType = config.ApproveType
flowConfig.CreateAt = time.Now()
flowConfig.AuditGroupId = int64(config.GroupId)
flowConfig.ConfigData = jsonAssertMarsh(config)
... ... @@ -220,7 +222,7 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques
for i := range request.AuditFlowConfig.ProcessConfig {
config := request.AuditFlowConfig.ProcessConfig[i]
flowConfig := &models.AuditFlowConfig{
AuditFlowType: config.ProcessType,
//AuditFlowType: config.ApproveType,
}
if config.ProcessType == models.FlowTypeNormal {
flowConfig.Level = normalLevel
... ... @@ -233,6 +235,8 @@ func TemplateUpdate(uid, companyId int64, request *protocol.TemplateUpdateReques
flowConfig.ToRole = jsonAssertMarsh(getIdsFrom(config.ToRole))
flowConfig.ToUser = jsonAssertMarsh(getIdsFrom(config.ToUser))
flowConfig.ActionType = config.AcitonType
flowConfig.FlowType = config.ProcessType
flowConfig.AuditFlowType = config.ApproveType
flowConfig.CreateAt = time.Now()
flowConfig.AuditGroupId = int64(config.GroupId)
flowConfig.ConfigData = jsonAssertMarsh(config)
... ...