...
|
...
|
@@ -4,6 +4,7 @@ import ( |
|
|
"github.com/linmadan/egglib-go/core/application"
|
|
|
"github.com/linmadan/egglib-go/utils/tool_funs"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory"
|
|
|
roleService "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/role"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/summary_evaluation/adapter"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/summary_evaluation/command"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
|
...
|
...
|
@@ -55,9 +56,9 @@ func (srv *SummaryEvaluationServeice) GetCycleList(param *command.QueryCycleList |
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
cycleList := []adapter.CycleList{}
|
|
|
cycleList := []adapter.CycleListAdapter{}
|
|
|
for _, v := range cycleData {
|
|
|
m := adapter.CycleList{
|
|
|
m := adapter.CycleListAdapter{
|
|
|
CycleId: v.CycleId,
|
|
|
CycleName: v.CycleName,
|
|
|
ExecutorId: v.ExecutorId,
|
...
|
...
|
@@ -120,28 +121,36 @@ func (srv *SummaryEvaluationServeice) GetMenu(param *command.QueryMenu) (map[str |
|
|
"limit": 1,
|
|
|
"status": string(domain.EvaluationUncompleted),
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
|
|
|
isHrbp, err := roleService.GetHRBP(transactionContext, param.CompanyId, param.UserId)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
|
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
|
|
|
menuList := []adapter.MenuList{}
|
|
|
menuList := []adapter.MenuListAdapter{}
|
|
|
|
|
|
//模块-我的绩效
|
|
|
menu1 := adapter.MenuList{
|
|
|
menu1 := adapter.MenuListAdapter{
|
|
|
CycleId: 0,
|
|
|
NodeName: "我的绩效",
|
|
|
StatusName: "",
|
|
|
Types: "",
|
|
|
Child: []adapter.MenuList{},
|
|
|
Child: []adapter.MenuListAdapter{},
|
|
|
}
|
|
|
menu1_1 := adapter.MenuList{
|
|
|
menu1_1 := adapter.MenuListAdapter{
|
|
|
CycleId: param.CycleId,
|
|
|
NodeName: "填写综合自评",
|
|
|
StatusName: "",
|
|
|
Types: "填写综合自评",
|
|
|
}
|
|
|
menu1_2 := adapter.MenuList{
|
|
|
menu1_2 := adapter.MenuListAdapter{
|
|
|
CycleId: param.CycleId,
|
|
|
NodeName: "查看综合自评",
|
|
|
StatusName: "",
|
...
|
...
|
@@ -161,14 +170,14 @@ func (srv *SummaryEvaluationServeice) GetMenu(param *command.QueryMenu) (map[str |
|
|
}
|
|
|
menu1.Child = append(menu1.Child, menu1_1, menu1_2)
|
|
|
menuList = append(menuList, menu1)
|
|
|
menu2 := adapter.MenuList{
|
|
|
menu2 := adapter.MenuListAdapter{
|
|
|
CycleId: 0,
|
|
|
NodeName: "给他人评估",
|
|
|
StatusName: "",
|
|
|
Types: "",
|
|
|
Child: []adapter.MenuList{},
|
|
|
Child: []adapter.MenuListAdapter{},
|
|
|
}
|
|
|
menu2_1 := adapter.MenuList{
|
|
|
menu2_1 := adapter.MenuListAdapter{
|
|
|
CycleId: param.CycleId,
|
|
|
NodeName: "360综评",
|
|
|
StatusName: "",
|
...
|
...
|
@@ -181,14 +190,14 @@ func (srv *SummaryEvaluationServeice) GetMenu(param *command.QueryMenu) (map[str |
|
|
}
|
|
|
menu2.Child = append(menu2.Child, menu2_1)
|
|
|
menuList = append(menuList, menu2)
|
|
|
menu3 := adapter.MenuList{
|
|
|
menu3 := adapter.MenuListAdapter{
|
|
|
CycleId: 0,
|
|
|
NodeName: "人资评估",
|
|
|
StatusName: "",
|
|
|
Types: "",
|
|
|
Child: []adapter.MenuList{},
|
|
|
Child: []adapter.MenuListAdapter{},
|
|
|
}
|
|
|
menu3_1 := adapter.MenuList{
|
|
|
menu3_1 := adapter.MenuListAdapter{
|
|
|
CycleId: param.CycleId,
|
|
|
NodeName: "上级综评",
|
|
|
StatusName: "",
|
...
|
...
|
@@ -200,16 +209,18 @@ func (srv *SummaryEvaluationServeice) GetMenu(param *command.QueryMenu) (map[str |
|
|
menu3_1.StatusName = "已完成"
|
|
|
}
|
|
|
menu3.Child = append(menu3.Child, menu3_1)
|
|
|
|
|
|
//hrbp 才有这个菜单
|
|
|
if isHrbp > 0 {
|
|
|
menuList = append(menuList, menu3)
|
|
|
menu4 := adapter.MenuList{
|
|
|
}
|
|
|
menu4 := adapter.MenuListAdapter{
|
|
|
CycleId: 0,
|
|
|
NodeName: "我的团队绩效",
|
|
|
StatusName: "",
|
|
|
Types: "",
|
|
|
Child: []adapter.MenuList{},
|
|
|
Child: []adapter.MenuListAdapter{},
|
|
|
}
|
|
|
menu4_1 := adapter.MenuList{
|
|
|
menu4_1 := adapter.MenuListAdapter{
|
|
|
CycleId: param.CycleId,
|
|
|
NodeName: "上级综评",
|
|
|
StatusName: "",
|
...
|
...
|
@@ -229,7 +240,7 @@ func (srv *SummaryEvaluationServeice) GetMenu(param *command.QueryMenu) (map[str |
|
|
}
|
|
|
|
|
|
// 获取综合自评详情
|
|
|
func (srv *SummaryEvaluationServeice) GetEvaluationSelf() {}
|
|
|
func (srv *SummaryEvaluationServeice) GetEvaluationSelf(param *command.QueryEvaluationInfo) {}
|
|
|
|
|
|
// 编辑综合自评详情
|
|
|
func (srv *SummaryEvaluationServeice) EditEvaluationSelf() {} |
...
|
...
|
|