|
@@ -668,6 +668,11 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf(param *domain. |
|
@@ -668,6 +668,11 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf(param *domain. |
668
|
if err != nil {
|
668
|
if err != nil {
|
669
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
669
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
670
|
}
|
670
|
}
|
|
|
671
|
+ //添加确认绩效成绩提醒短信提醒
|
|
|
672
|
+ err = notify.AddNotifyConfirmEvaluationScore(evaluationFinishList[0])
|
|
|
673
|
+ if err != nil {
|
|
|
674
|
+ return application.ThrowError(application.TRANSACTION_ERROR, "创建短信提醒失败"+err.Error())
|
|
|
675
|
+ }
|
671
|
}
|
676
|
}
|
672
|
}
|
677
|
}
|
673
|
if err := transactionContext.CommitTransaction(); err != nil {
|
678
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
@@ -767,8 +772,14 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluation360Hrbp(param *doma |
|
@@ -767,8 +772,14 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluation360Hrbp(param *doma |
767
|
if err != nil {
|
772
|
if err != nil {
|
768
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
773
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
769
|
}
|
774
|
}
|
|
|
775
|
+ //添加确认绩效成绩提醒短信提醒
|
|
|
776
|
+ err = notify.AddNotifyConfirmEvaluationScore(evaluationFinishList[0])
|
|
|
777
|
+ if err != nil {
|
|
|
778
|
+ return application.ThrowError(application.TRANSACTION_ERROR, "创建短信提醒失败"+err.Error())
|
770
|
}
|
779
|
}
|
771
|
}
|
780
|
}
|
|
|
781
|
+
|
|
|
782
|
+ }
|
772
|
if err := transactionContext.CommitTransaction(); err != nil {
|
783
|
if err := transactionContext.CommitTransaction(); err != nil {
|
773
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
784
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
774
|
}
|
785
|
}
|
|
@@ -824,16 +835,17 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSuper(param *domain |
|
@@ -824,16 +835,17 @@ func (srv *SummaryEvaluationService) AfterCompletedEvaluationSuper(param *domain |
824
|
if err != nil {
|
835
|
if err != nil {
|
825
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
836
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
826
|
}
|
837
|
}
|
|
|
838
|
+ //添加确认绩效成绩提醒短信提醒
|
|
|
839
|
+ err = notify.AddNotifyConfirmEvaluationScore(evaluationList[0])
|
|
|
840
|
+ if err != nil {
|
|
|
841
|
+ return application.ThrowError(application.TRANSACTION_ERROR, "创建短信提醒失败"+err.Error())
|
|
|
842
|
+ }
|
827
|
}
|
843
|
}
|
828
|
|
844
|
|
829
|
if err := transactionContext.CommitTransaction(); err != nil {
|
845
|
if err := transactionContext.CommitTransaction(); err != nil {
|
830
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
846
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
831
|
}
|
847
|
}
|
832
|
- //添加确认绩效成绩提醒短信提醒
|
|
|
833
|
- err = notify.AddNotifyConfirmEvaluationScore(param)
|
|
|
834
|
- if err != nil {
|
|
|
835
|
- return application.ThrowError(application.TRANSACTION_ERROR, "创建短信提醒失败"+err.Error())
|
|
|
836
|
- }
|
848
|
+
|
837
|
return nil
|
849
|
return nil
|
838
|
}
|
850
|
}
|
839
|
|
851
|
|