|
@@ -483,203 +483,203 @@ func (srv *SummaryEvaluationService) getSummaryEvaluation(transactionContext app |
|
@@ -483,203 +483,203 @@ func (srv *SummaryEvaluationService) getSummaryEvaluation(transactionContext app |
483
|
}
|
483
|
}
|
484
|
|
484
|
|
485
|
// 编辑综合自评详情
|
485
|
// 编辑综合自评详情
|
486
|
-func (srv *SummaryEvaluationService) EditEvaluationSelf(param *command.EditEvaluationValue) (map[string][]adapter.EvaluationItemAdapter, error) {
|
|
|
487
|
- lock := xredis.NewLockSummaryEvaluationId(param.SummaryEvaluationId)
|
|
|
488
|
- err := lock.Lock()
|
|
|
489
|
- if err != nil {
|
|
|
490
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "未能完全提交评估内容")
|
|
|
491
|
- }
|
|
|
492
|
- defer func() {
|
|
|
493
|
- lock.UnLock()
|
|
|
494
|
- }()
|
|
|
495
|
- transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
496
|
- if err != nil {
|
|
|
497
|
- return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
498
|
- }
|
|
|
499
|
- if err := transactionContext.StartTransaction(); err != nil {
|
|
|
500
|
- return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
501
|
- }
|
|
|
502
|
- defer func() {
|
|
|
503
|
- _ = transactionContext.RollbackTransaction()
|
|
|
504
|
- }()
|
|
|
505
|
- evaluationRepo := factory.CreateSummaryEvaluationRepository(map[string]interface{}{
|
|
|
506
|
- "transactionContext": transactionContext,
|
|
|
507
|
- })
|
|
|
508
|
- itemUsedRepo := factory.CreateEvaluationItemUsedRepository(map[string]interface{}{
|
|
|
509
|
- "transactionContext": transactionContext,
|
|
|
510
|
- })
|
486
|
+// func (srv *SummaryEvaluationService) EditEvaluationSelf(param *command.EditEvaluationValue) (map[string][]adapter.EvaluationItemAdapter, error) {
|
|
|
487
|
+// lock := xredis.NewLockSummaryEvaluationId(param.SummaryEvaluationId)
|
|
|
488
|
+// err := lock.Lock()
|
|
|
489
|
+// if err != nil {
|
|
|
490
|
+// return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "未能完全提交评估内容")
|
|
|
491
|
+// }
|
|
|
492
|
+// defer func() {
|
|
|
493
|
+// lock.UnLock()
|
|
|
494
|
+// }()
|
|
|
495
|
+// transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
496
|
+// if err != nil {
|
|
|
497
|
+// return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
498
|
+// }
|
|
|
499
|
+// if err := transactionContext.StartTransaction(); err != nil {
|
|
|
500
|
+// return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
501
|
+// }
|
|
|
502
|
+// defer func() {
|
|
|
503
|
+// _ = transactionContext.RollbackTransaction()
|
|
|
504
|
+// }()
|
|
|
505
|
+// evaluationRepo := factory.CreateSummaryEvaluationRepository(map[string]interface{}{
|
|
|
506
|
+// "transactionContext": transactionContext,
|
|
|
507
|
+// })
|
|
|
508
|
+// itemUsedRepo := factory.CreateEvaluationItemUsedRepository(map[string]interface{}{
|
|
|
509
|
+// "transactionContext": transactionContext,
|
|
|
510
|
+// })
|
511
|
|
511
|
|
512
|
- itemValueRepo := factory.CreateSummaryEvaluationValueRepository(map[string]interface{}{
|
|
|
513
|
- "transactionContext": transactionContext,
|
|
|
514
|
- })
|
|
|
515
|
- evaluationData, err := evaluationRepo.FindOne(map[string]interface{}{
|
|
|
516
|
- "id": param.SummaryEvaluationId,
|
|
|
517
|
- })
|
|
|
518
|
- if err != nil {
|
|
|
519
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取评估"+err.Error())
|
|
|
520
|
- }
|
|
|
521
|
- if evaluationData.Types != domain.EvaluationSelf {
|
|
|
522
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
|
|
|
523
|
- }
|
512
|
+// itemValueRepo := factory.CreateSummaryEvaluationValueRepository(map[string]interface{}{
|
|
|
513
|
+// "transactionContext": transactionContext,
|
|
|
514
|
+// })
|
|
|
515
|
+// evaluationData, err := evaluationRepo.FindOne(map[string]interface{}{
|
|
|
516
|
+// "id": param.SummaryEvaluationId,
|
|
|
517
|
+// })
|
|
|
518
|
+// if err != nil {
|
|
|
519
|
+// return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取评估"+err.Error())
|
|
|
520
|
+// }
|
|
|
521
|
+// if evaluationData.Types != domain.EvaluationSelf {
|
|
|
522
|
+// return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
|
|
|
523
|
+// }
|
524
|
|
524
|
|
525
|
- if evaluationData.Executor.UserId != param.ExecutorId {
|
|
|
526
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
|
|
|
527
|
- }
|
525
|
+// if evaluationData.Executor.UserId != param.ExecutorId {
|
|
|
526
|
+// return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
|
|
|
527
|
+// }
|
528
|
|
528
|
|
529
|
- if evaluationData.CompanyId != param.CompanyId {
|
|
|
530
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
|
|
|
531
|
- }
|
529
|
+// if evaluationData.CompanyId != param.CompanyId {
|
|
|
530
|
+// return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
|
|
|
531
|
+// }
|
532
|
|
532
|
|
533
|
- _, itemList, err := itemUsedRepo.Find(map[string]interface{}{
|
|
|
534
|
- "evaluationProjectId": evaluationData.EvaluationProjectId,
|
|
|
535
|
- "nodeType": domain.LinkNodeSelfAssessment,
|
|
|
536
|
- })
|
|
|
537
|
- if err != nil {
|
|
|
538
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
539
|
- }
|
533
|
+// _, itemList, err := itemUsedRepo.Find(map[string]interface{}{
|
|
|
534
|
+// "evaluationProjectId": evaluationData.EvaluationProjectId,
|
|
|
535
|
+// "nodeType": domain.LinkNodeSelfAssessment,
|
|
|
536
|
+// })
|
|
|
537
|
+// if err != nil {
|
|
|
538
|
+// return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
539
|
+// }
|
540
|
|
540
|
|
541
|
- _, itemValueList, err := itemValueRepo.Find(map[string]interface{}{
|
|
|
542
|
- "summaryEvaluationId": evaluationData.Id,
|
|
|
543
|
- })
|
541
|
+// _, itemValueList, err := itemValueRepo.Find(map[string]interface{}{
|
|
|
542
|
+// "summaryEvaluationId": evaluationData.Id,
|
|
|
543
|
+// })
|
544
|
|
544
|
|
545
|
- if err != nil {
|
|
|
546
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
547
|
- }
|
545
|
+// if err != nil {
|
|
|
546
|
+// return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
547
|
+// }
|
548
|
|
548
|
|
549
|
- err = srv.editEvaluationValue(evaluationData, &itemValueList, itemList, param.EvaluationItems, nil, param.IsTemporary)
|
|
|
550
|
- if err != nil {
|
|
|
551
|
- return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
552
|
- }
|
549
|
+// err = srv.editEvaluationValue(evaluationData, &itemValueList, itemList, param.EvaluationItems, nil, param.IsTemporary)
|
|
|
550
|
+// if err != nil {
|
|
|
551
|
+// return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
|
|
552
|
+// }
|
553
|
|
553
|
|
554
|
- //保存填写值
|
|
|
555
|
- for _, v := range itemValueList {
|
|
|
556
|
- err = itemValueRepo.Save(v)
|
|
|
557
|
- if err != nil {
|
|
|
558
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
559
|
- }
|
|
|
560
|
- }
|
|
|
561
|
- if !param.IsTemporary {
|
|
|
562
|
- evaluationData.Status = domain.EvaluationCompleted
|
|
|
563
|
- }
|
|
|
564
|
- err = evaluationRepo.Save(evaluationData)
|
|
|
565
|
- if err != nil {
|
|
|
566
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
567
|
- }
|
|
|
568
|
- if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
569
|
- return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
570
|
- }
|
|
|
571
|
- if !param.IsTemporary {
|
|
|
572
|
- err = srv.AfterCompletedEvaluationSelf(evaluationData)
|
|
|
573
|
- if err != nil {
|
|
|
574
|
- return nil, err
|
|
|
575
|
- }
|
|
|
576
|
- }
|
554
|
+// //保存填写值
|
|
|
555
|
+// for _, v := range itemValueList {
|
|
|
556
|
+// err = itemValueRepo.Save(v)
|
|
|
557
|
+// if err != nil {
|
|
|
558
|
+// return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
559
|
+// }
|
|
|
560
|
+// }
|
|
|
561
|
+// if !param.IsTemporary {
|
|
|
562
|
+// evaluationData.Status = domain.EvaluationCompleted
|
|
|
563
|
+// }
|
|
|
564
|
+// err = evaluationRepo.Save(evaluationData)
|
|
|
565
|
+// if err != nil {
|
|
|
566
|
+// return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
567
|
+// }
|
|
|
568
|
+// if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
569
|
+// return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
570
|
+// }
|
|
|
571
|
+// if !param.IsTemporary {
|
|
|
572
|
+// err = srv.AfterCompletedEvaluationSelf(evaluationData)
|
|
|
573
|
+// if err != nil {
|
|
|
574
|
+// return nil, err
|
|
|
575
|
+// }
|
|
|
576
|
+// }
|
577
|
|
577
|
|
578
|
- itemValueAdapter := srv.buildSummaryItemValue(itemList, itemValueList)
|
|
|
579
|
- return map[string][]adapter.EvaluationItemAdapter{
|
|
|
580
|
- "EvaluationItems": itemValueAdapter,
|
|
|
581
|
- }, nil
|
|
|
582
|
-}
|
578
|
+// itemValueAdapter := srv.buildSummaryItemValue(itemList, itemValueList)
|
|
|
579
|
+// return map[string][]adapter.EvaluationItemAdapter{
|
|
|
580
|
+// "EvaluationItems": itemValueAdapter,
|
|
|
581
|
+// }, nil
|
|
|
582
|
+// }
|
583
|
|
583
|
|
584
|
-// 员工提交自评内容后,
|
|
|
585
|
-// 员工作为被评估人,
|
|
|
586
|
-// 变更360评估/人资评估/的开始时间
|
|
|
587
|
-// 或者变更上级评估的开始时间
|
|
|
588
|
-// 或者生成考核结果
|
|
|
589
|
-func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf(param *domain.SummaryEvaluation) error {
|
|
|
590
|
- lock := xredis.NewLockSummaryEvaluation(param.TargetUser.UserId)
|
|
|
591
|
- err := lock.Lock()
|
|
|
592
|
- if err != nil {
|
|
|
593
|
- return application.ThrowError(application.INTERNAL_SERVER_ERROR, "未能完全提交评估内容")
|
|
|
594
|
- }
|
|
|
595
|
- defer func() {
|
|
|
596
|
- lock.UnLock()
|
|
|
597
|
- }()
|
|
|
598
|
- transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
599
|
- if err != nil {
|
|
|
600
|
- return application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
601
|
- }
|
|
|
602
|
- if err := transactionContext.StartTransaction(); err != nil {
|
|
|
603
|
- return application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
604
|
- }
|
|
|
605
|
- defer func() {
|
|
|
606
|
- _ = transactionContext.RollbackTransaction()
|
|
|
607
|
- }()
|
|
|
608
|
- evaluationRepo := factory.CreateSummaryEvaluationRepository(map[string]interface{}{
|
|
|
609
|
- "transactionContext": transactionContext,
|
|
|
610
|
- })
|
|
|
611
|
- _, evaluationList, err := evaluationRepo.Find(map[string]interface{}{
|
|
|
612
|
- "targetUserId": param.TargetUser.UserId,
|
|
|
613
|
- "typesList": []int{int(domain.Evaluation360), int(domain.EvaluationHrbp)},
|
|
|
614
|
- "cycleId": param.CycleId,
|
|
|
615
|
- "limit": 1000,
|
|
|
616
|
- })
|
|
|
617
|
- if err != nil {
|
|
|
618
|
- return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
619
|
- }
|
|
|
620
|
- if len(evaluationList) == 0 {
|
|
|
621
|
- //如果没有360评估和hrbp 评估,查找上级评估
|
|
|
622
|
- _, evaluationList, err = evaluationRepo.Find(map[string]interface{}{
|
|
|
623
|
- "targetUserId": param.TargetUser.UserId,
|
|
|
624
|
- "typesList": []int{int(domain.EvaluationSuper)},
|
|
|
625
|
- "cycleId": param.CycleId,
|
|
|
626
|
- "limit": 10,
|
|
|
627
|
- })
|
|
|
628
|
- if err != nil {
|
|
|
629
|
- return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
630
|
- }
|
|
|
631
|
- }
|
|
|
632
|
- nowTime := time.Now()
|
|
|
633
|
- updatedId := []int{}
|
|
|
634
|
- // 变更360评估/人资评估/上级评估的开始时间
|
|
|
635
|
- for _, v := range evaluationList {
|
|
|
636
|
- if v.BeginTime.After(nowTime) {
|
|
|
637
|
- v.BeginTime = nowTime
|
|
|
638
|
- updatedId = append(updatedId, v.Id)
|
|
|
639
|
- }
|
|
|
640
|
- }
|
|
|
641
|
- evaluationDao := dao.NewSummaryEvaluationDao(map[string]interface{}{
|
|
|
642
|
- "transactionContext": transactionContext,
|
|
|
643
|
- })
|
|
|
644
|
- err = evaluationDao.UpdateBeginTime(updatedId, nowTime)
|
|
|
645
|
- if err != nil {
|
|
|
646
|
- return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
647
|
- }
|
|
|
648
|
- if len(evaluationList) == 0 {
|
|
|
649
|
- //没有上级评估、360评估、hrbp 评估
|
|
|
650
|
- //直接进入考核结果阶段
|
|
|
651
|
- _, evaluationFinishList, err := evaluationRepo.Find(map[string]interface{}{
|
|
|
652
|
- "targetUserId": param.TargetUser.UserId,
|
|
|
653
|
- "typesList": []int{int(domain.EvaluationFinish)},
|
|
|
654
|
- "cycleId": param.CycleId,
|
|
|
655
|
- "limit": 1,
|
|
|
656
|
- })
|
|
|
657
|
- if err != nil {
|
|
|
658
|
- return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
659
|
- }
|
|
|
660
|
- if len(evaluationFinishList) > 0 {
|
|
|
661
|
- //进入考核结果
|
|
|
662
|
- //自评的结束时间
|
|
|
663
|
- if evaluationFinishList[0].BeginTime.After(nowTime) {
|
|
|
664
|
- evaluationFinishList[0].BeginTime = nowTime
|
|
|
665
|
- }
|
|
|
666
|
- evaluationFinishList[0].Status = domain.EvaluationCompleted
|
|
|
667
|
- err = evaluationRepo.Save(evaluationFinishList[0])
|
|
|
668
|
- if err != nil {
|
|
|
669
|
- return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
|
|
670
|
- }
|
|
|
671
|
- //添加确认绩效成绩提醒短信提醒
|
|
|
672
|
- err = notify.AddNotifyConfirmEvaluationScore(evaluationFinishList[0])
|
|
|
673
|
- if err != nil {
|
|
|
674
|
- return application.ThrowError(application.TRANSACTION_ERROR, "创建短信提醒失败"+err.Error())
|
|
|
675
|
- }
|
|
|
676
|
- }
|
|
|
677
|
- }
|
|
|
678
|
- if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
679
|
- return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
680
|
- }
|
|
|
681
|
- return nil
|
|
|
682
|
-}
|
584
|
+// // 员工提交自评内容后,
|
|
|
585
|
+// // 员工作为被评估人,
|
|
|
586
|
+// // 变更360评估/人资评估/的开始时间
|
|
|
587
|
+// // 或者变更上级评估的开始时间
|
|
|
588
|
+// // 或者生成考核结果
|
|
|
589
|
+// func (srv *SummaryEvaluationService) AfterCompletedEvaluationSelf(param *domain.SummaryEvaluation) error {
|
|
|
590
|
+// lock := xredis.NewLockSummaryEvaluation(param.TargetUser.UserId)
|
|
|
591
|
+// err := lock.Lock()
|
|
|
592
|
+// if err != nil {
|
|
|
593
|
+// return application.ThrowError(application.INTERNAL_SERVER_ERROR, "未能完全提交评估内容")
|
|
|
594
|
+// }
|
|
|
595
|
+// defer func() {
|
|
|
596
|
+// lock.UnLock()
|
|
|
597
|
+// }()
|
|
|
598
|
+// transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
599
|
+// if err != nil {
|
|
|
600
|
+// return application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
601
|
+// }
|
|
|
602
|
+// if err := transactionContext.StartTransaction(); err != nil {
|
|
|
603
|
+// return application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
604
|
+// }
|
|
|
605
|
+// defer func() {
|
|
|
606
|
+// _ = transactionContext.RollbackTransaction()
|
|
|
607
|
+// }()
|
|
|
608
|
+// evaluationRepo := factory.CreateSummaryEvaluationRepository(map[string]interface{}{
|
|
|
609
|
+// "transactionContext": transactionContext,
|
|
|
610
|
+// })
|
|
|
611
|
+// _, evaluationList, err := evaluationRepo.Find(map[string]interface{}{
|
|
|
612
|
+// "targetUserId": param.TargetUser.UserId,
|
|
|
613
|
+// "typesList": []int{int(domain.Evaluation360), int(domain.EvaluationHrbp)},
|
|
|
614
|
+// "cycleId": param.CycleId,
|
|
|
615
|
+// "limit": 1000,
|
|
|
616
|
+// })
|
|
|
617
|
+// if err != nil {
|
|
|
618
|
+// return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
619
|
+// }
|
|
|
620
|
+// if len(evaluationList) == 0 {
|
|
|
621
|
+// //如果没有360评估和hrbp 评估,查找上级评估
|
|
|
622
|
+// _, evaluationList, err = evaluationRepo.Find(map[string]interface{}{
|
|
|
623
|
+// "targetUserId": param.TargetUser.UserId,
|
|
|
624
|
+// "typesList": []int{int(domain.EvaluationSuper)},
|
|
|
625
|
+// "cycleId": param.CycleId,
|
|
|
626
|
+// "limit": 10,
|
|
|
627
|
+// })
|
|
|
628
|
+// if err != nil {
|
|
|
629
|
+// return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
630
|
+// }
|
|
|
631
|
+// }
|
|
|
632
|
+// nowTime := time.Now()
|
|
|
633
|
+// updatedId := []int{}
|
|
|
634
|
+// // 变更360评估/人资评估/上级评估的开始时间
|
|
|
635
|
+// for _, v := range evaluationList {
|
|
|
636
|
+// if v.BeginTime.After(nowTime) {
|
|
|
637
|
+// v.BeginTime = nowTime
|
|
|
638
|
+// updatedId = append(updatedId, v.Id)
|
|
|
639
|
+// }
|
|
|
640
|
+// }
|
|
|
641
|
+// evaluationDao := dao.NewSummaryEvaluationDao(map[string]interface{}{
|
|
|
642
|
+// "transactionContext": transactionContext,
|
|
|
643
|
+// })
|
|
|
644
|
+// err = evaluationDao.UpdateBeginTime(updatedId, nowTime)
|
|
|
645
|
+// if err != nil {
|
|
|
646
|
+// return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
647
|
+// }
|
|
|
648
|
+// if len(evaluationList) == 0 {
|
|
|
649
|
+// //没有上级评估、360评估、hrbp 评估
|
|
|
650
|
+// //直接进入考核结果阶段
|
|
|
651
|
+// _, evaluationFinishList, err := evaluationRepo.Find(map[string]interface{}{
|
|
|
652
|
+// "targetUserId": param.TargetUser.UserId,
|
|
|
653
|
+// "typesList": []int{int(domain.EvaluationFinish)},
|
|
|
654
|
+// "cycleId": param.CycleId,
|
|
|
655
|
+// "limit": 1,
|
|
|
656
|
+// })
|
|
|
657
|
+// if err != nil {
|
|
|
658
|
+// return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
659
|
+// }
|
|
|
660
|
+// if len(evaluationFinishList) > 0 {
|
|
|
661
|
+// //进入考核结果
|
|
|
662
|
+// //自评的结束时间
|
|
|
663
|
+// if evaluationFinishList[0].BeginTime.After(nowTime) {
|
|
|
664
|
+// evaluationFinishList[0].BeginTime = nowTime
|
|
|
665
|
+// }
|
|
|
666
|
+// evaluationFinishList[0].Status = domain.EvaluationCompleted
|
|
|
667
|
+// err = evaluationRepo.Save(evaluationFinishList[0])
|
|
|
668
|
+// if err != nil {
|
|
|
669
|
+// return application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存考核结果,"+err.Error())
|
|
|
670
|
+// }
|
|
|
671
|
+// //添加确认绩效成绩提醒短信提醒
|
|
|
672
|
+// err = notify.AddNotifyConfirmEvaluationScore(evaluationFinishList[0])
|
|
|
673
|
+// if err != nil {
|
|
|
674
|
+// return application.ThrowError(application.TRANSACTION_ERROR, "创建短信提醒失败"+err.Error())
|
|
|
675
|
+// }
|
|
|
676
|
+// }
|
|
|
677
|
+// }
|
|
|
678
|
+// if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
679
|
+// return application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
680
|
+// }
|
|
|
681
|
+// return nil
|
|
|
682
|
+// }
|
683
|
|
683
|
|
684
|
// 提交员工的人资评估 或者 360 评估
|
684
|
// 提交员工的人资评估 或者 360 评估
|
685
|
// 变更上级评估的开始时间
|
685
|
// 变更上级评估的开始时间
|
|
@@ -2152,14 +2152,6 @@ func (srv *SummaryEvaluationService) editEvaluationValueUnlimited( |
|
@@ -2152,14 +2152,6 @@ func (srv *SummaryEvaluationService) editEvaluationValueUnlimited( |
2152
|
}
|
2152
|
}
|
2153
|
}
|
2153
|
}
|
2154
|
}
|
2154
|
}
|
2155
|
- // 等待产品确认
|
|
|
2156
|
- // if evaluationData.Types == domain.EvaluationSelf {
|
|
|
2157
|
- // // 填充评估填写值
|
|
|
2158
|
- // err := newItemValue.EvaluationSelfFillValue(evaluationItem, v.Value, v.Remark)
|
|
|
2159
|
- // if err != nil {
|
|
|
2160
|
- // return err
|
|
|
2161
|
- // }
|
|
|
2162
|
- // } else {
|
|
|
2163
|
//填充评估填写值
|
2155
|
//填充评估填写值
|
2164
|
err := newItemValue.FillValue(evaluationItem, v.Value, v.Remark)
|
2156
|
err := newItemValue.FillValue(evaluationItem, v.Value, v.Remark)
|
2165
|
if err != nil {
|
2157
|
if err != nil {
|