...
|
...
|
@@ -34,7 +34,7 @@ func (rs *EvaluationTemplateService) Create(in *command.CreateTemplateCommand) ( |
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
if count > 0 {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "名称已存在")
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, "已存在相同名称的评估模板")
|
|
|
}
|
|
|
|
|
|
linkNodes := make([]*domain.LinkNode, 0)
|
...
|
...
|
@@ -44,30 +44,35 @@ func (rs *EvaluationTemplateService) Create(in *command.CreateTemplateCommand) ( |
|
|
Id: sid + 1,
|
|
|
Type: domain.LinkNodeSelfAssessment,
|
|
|
Name: "填写自评反馈",
|
|
|
NodeContents: make([]*domain.NodeContent, 0),
|
|
|
KpiCycle: domain.KpiCycleDay,
|
|
|
})
|
|
|
linkNodes = append(linkNodes, &domain.LinkNode{
|
|
|
Id: sid + 2,
|
|
|
Type: domain.LinkNodeAllInvite,
|
|
|
Name: "360°邀请",
|
|
|
NodeContents: make([]*domain.NodeContent, 0),
|
|
|
KpiCycle: domain.KpiCycleDay,
|
|
|
})
|
|
|
linkNodes = append(linkNodes, &domain.LinkNode{
|
|
|
Id: sid + 3,
|
|
|
Type: domain.LinkNodeAllAssessment,
|
|
|
Name: "360°评估",
|
|
|
NodeContents: make([]*domain.NodeContent, 0),
|
|
|
KpiCycle: domain.KpiCycleDay,
|
|
|
})
|
|
|
linkNodes = append(linkNodes, &domain.LinkNode{
|
|
|
Id: sid + 4,
|
|
|
Type: domain.LinkNodeSuperiorAssessment,
|
|
|
Name: "上级评估",
|
|
|
NodeContents: make([]*domain.NodeContent, 0),
|
|
|
KpiCycle: domain.KpiCycleDay,
|
|
|
})
|
|
|
linkNodes = append(linkNodes, &domain.LinkNode{
|
|
|
Id: sid + 5,
|
|
|
Type: domain.LinkNodeViewResult,
|
|
|
Name: "绩效结果查看",
|
|
|
NodeContents: make([]*domain.NodeContent, 0),
|
|
|
KpiCycle: domain.KpiCycleDay,
|
|
|
})
|
|
|
|
...
|
...
|
|