作者 郑周

模板 邀请ID

@@ -38,7 +38,7 @@ func (rs *EvaluationTemplateService) Create(in *command.CreateTemplateCommand) ( @@ -38,7 +38,7 @@ func (rs *EvaluationTemplateService) Create(in *command.CreateTemplateCommand) (
38 38
39 linkNodes := make([]*domain.LinkNode, 0) 39 linkNodes := make([]*domain.LinkNode, 0)
40 linkNodes = append(linkNodes, &domain.LinkNode{ 40 linkNodes = append(linkNodes, &domain.LinkNode{
41 - Type: domain.LinkNodeAssessment, 41 + Type: domain.LinkNodeSelfAssessment,
42 Name: "填写自评反馈", 42 Name: "填写自评反馈",
43 KpiCycle: domain.KpiCycleDay, 43 KpiCycle: domain.KpiCycleDay,
44 }) 44 })
@@ -48,12 +48,12 @@ func (rs *EvaluationTemplateService) Create(in *command.CreateTemplateCommand) ( @@ -48,12 +48,12 @@ func (rs *EvaluationTemplateService) Create(in *command.CreateTemplateCommand) (
48 KpiCycle: domain.KpiCycleDay, 48 KpiCycle: domain.KpiCycleDay,
49 }) 49 })
50 linkNodes = append(linkNodes, &domain.LinkNode{ 50 linkNodes = append(linkNodes, &domain.LinkNode{
51 - Type: domain.LinkNodeAssessment, 51 + Type: domain.LinkNodeAllAssessment,
52 Name: "360°评估", 52 Name: "360°评估",
53 KpiCycle: domain.KpiCycleDay, 53 KpiCycle: domain.KpiCycleDay,
54 }) 54 })
55 linkNodes = append(linkNodes, &domain.LinkNode{ 55 linkNodes = append(linkNodes, &domain.LinkNode{
56 - Type: domain.LinkNodeAssessment, 56 + Type: domain.LinkNodeSuperiorAssessment,
57 Name: "上级评估", 57 Name: "上级评估",
58 KpiCycle: domain.KpiCycleDay, 58 KpiCycle: domain.KpiCycleDay,
59 }) 59 })
@@ -12,15 +12,15 @@ const ( @@ -12,15 +12,15 @@ const (
12 ) 12 )
13 13
14 const ( 14 const (
15 - //LinkNodeSelfAssessment int = 1 // 环节-填写反馈自评  
16 - //LinkNodeAllInvite int = 2 // 环节-360°邀请  
17 - //LinkNodeAllAssessment int = 3 // 环节-360°评估  
18 - //LinkNodeSuperiorAssessment int = 4 // 环节-上级评估  
19 - //LinkNodeViewResult int = 5 // 环节-绩效结果查看  
20 -  
21 - LinkNodeAssessment int = 1 // 环节-评估(自评、360°评估、上级评估) 15 + LinkNodeSelfAssessment int = 1 // 环节-填写反馈自评
22 LinkNodeAllInvite int = 2 // 环节-360°邀请 16 LinkNodeAllInvite int = 2 // 环节-360°邀请
23 - LinkNodeViewResult int = 3 // 环节-绩效结果查看 17 + LinkNodeAllAssessment int = 3 // 环节-360°评估
  18 + LinkNodeSuperiorAssessment int = 4 // 环节-上级评估
  19 + LinkNodeViewResult int = 5 // 环节-绩效结果查看
  20 +
  21 + //LinkNodeAssessment int = 1 // 环节-评估(自评、360°评估、上级评估)
  22 + //LinkNodeAllInvite int = 2 // 环节-360°邀请
  23 + //LinkNodeViewResult int = 3 // 环节-绩效结果查看
24 24
25 ) 25 )
26 26
@@ -47,6 +47,8 @@ type NodeContent struct { @@ -47,6 +47,8 @@ type NodeContent struct {
47 47
48 // NodeAllInvite 360°邀请 48 // NodeAllInvite 360°邀请
49 type NodeAllInvite struct { 49 type NodeAllInvite struct {
  50 + ParentDifferentIds []int64 `json:"parentDifferentIds" comment:"不同上级同事ID"`
  51 + ParentSameIds []int64 `json:"parentSameIds" comment:"相同上级同事ID"`
50 } 52 }
51 53
52 // NodeKpiResult 绩效结果查看 54 // NodeKpiResult 绩效结果查看