切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
2fad1ae89cc268efc288e4a06ec8f07d7dc15b00
1 个父辈
b74f5838
修复bug
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
23 行增加
和
15 行删除
pkg/application/summary_evaluation/service/edit_evaluation_hrbp.go
pkg/application/summary_evaluation/service/edit_evaluation_self.go
pkg/application/summary_evaluation/service/edit_evaluation_hrbp.go
查看文件 @
2fad1ae
...
...
@@ -230,6 +230,10 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluation360Hrbp(
evaluationFinishList
[
0
]
.
BeginTime
=
nowTime
}
evaluationFinishList
[
0
]
.
Status
=
domain
.
EvaluationCompleted
err
=
evaluationRepo
.
Save
(
evaluationFinishList
[
0
])
if
err
!=
nil
{
return
application
.
ThrowError
(
application
.
INTERNAL_SERVER_ERROR
,
"保存考核结果,"
+
err
.
Error
())
}
//添加确认绩效成绩提醒短信提醒
err
=
notify
.
AddNotifyConfirmEvaluationScore
(
evaluationFinishList
[
0
])
if
err
!=
nil
{
...
...
@@ -237,17 +241,17 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluation360Hrbp(
}
}
}
if
noSuper
&&
len
(
evaluationFinishList
)
>
0
{
//
if noSuper && len(evaluationFinishList) > 0 {
//不存在上级评估
// err = srv.syncEvaluationFinishValue(transactionContext, evaluationFinishList[0], evaluationValue)
// if err != nil {
// return err
// }
}
else
if
len
(
evaluationList
)
==
0
&&
len
(
evaluationFinishList
)
>
0
{
err
=
evaluationRepo
.
Save
(
evaluationFinishList
[
0
])
if
err
!=
nil
{
return
application
.
ThrowError
(
application
.
INTERNAL_SERVER_ERROR
,
"保存考核结果,"
+
err
.
Error
())
}
}
// } else if len(evaluationList) == 0 && len(evaluationFinishList) > 0 {
// err = evaluationRepo.Save(evaluationFinishList[0])
// if err != nil {
// return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
// }
// }
return
nil
}
...
...
pkg/application/summary_evaluation/service/edit_evaluation_self.go
查看文件 @
2fad1ae
...
...
@@ -192,6 +192,10 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf(
evaluationFinish
.
BeginTime
=
nowTime
}
evaluationFinish
.
Status
=
domain
.
EvaluationCompleted
err
=
evaluationRepo
.
Save
(
evaluationFinish
)
if
err
!=
nil
{
return
application
.
ThrowError
(
application
.
INTERNAL_SERVER_ERROR
,
"保存考核结果,"
+
err
.
Error
())
}
//添加确认绩效成绩提醒短信提醒
err
=
notify
.
AddNotifyConfirmEvaluationScore
(
evaluationFinish
)
if
err
!=
nil
{
...
...
@@ -199,8 +203,8 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf(
}
}
}
if
noSuper
&&
evaluationFinish
!=
nil
{
_
=
noSuper
// if noSuper && evaluationFinish != nil {
//没有上级评估 同步数据到考核结果
// itemUsedRepo := factory.CreateEvaluationItemUsedRepository(map[string]interface{}{
...
...
@@ -232,12 +236,12 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf(
// return err
// }
}
else
if
len
(
targetEvaluation
)
==
0
&&
evaluationFinish
!=
nil
{
err
=
evaluationRepo
.
Save
(
evaluationFinish
)
if
err
!=
nil
{
return
application
.
ThrowError
(
application
.
INTERNAL_SERVER_ERROR
,
"保存考核结果,"
+
err
.
Error
())
}
}
// } else if len(targetEvaluation) == 0 && evaluationFinish != nil {
// err = evaluationRepo.Save(evaluationFinish)
// if err != nil {
// return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
// }
// }
return
nil
}
...
...
请
注册
或
登录
后发表评论