|
@@ -13,17 +13,17 @@ import ( |
|
@@ -13,17 +13,17 @@ import ( |
13
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/dao"
|
13
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/dao"
|
14
|
)
|
14
|
)
|
15
|
|
15
|
|
16
|
-type SummaryEvaluationServeice struct {
|
16
|
+type SummaryEvaluationService struct {
|
17
|
}
|
17
|
}
|
18
|
|
18
|
|
19
|
-func NewSummaryEvaluationServeice() *SummaryEvaluationServeice {
|
|
|
20
|
- newService := &SummaryEvaluationServeice{}
|
19
|
+func NewSummaryEvaluationService() *SummaryEvaluationService {
|
|
|
20
|
+ newService := &SummaryEvaluationService{}
|
21
|
return newService
|
21
|
return newService
|
22
|
}
|
22
|
}
|
23
|
|
23
|
|
24
|
// GetExecutorCycleList
|
24
|
// GetExecutorCycleList
|
25
|
// 获取评估执行人可用的周期列表
|
25
|
// 获取评估执行人可用的周期列表
|
26
|
-func (srv *SummaryEvaluationServeice) GetExecutorCycleList(param *command.QueryCycleList) (map[string]interface{}, error) {
|
26
|
+func (srv *SummaryEvaluationService) GetExecutorCycleList(param *command.QueryCycleList) (map[string]interface{}, error) {
|
27
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
27
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
28
|
if err != nil {
|
28
|
if err != nil {
|
29
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
29
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
@@ -71,7 +71,7 @@ func (srv *SummaryEvaluationServeice) GetExecutorCycleList(param *command.QueryC |
|
@@ -71,7 +71,7 @@ func (srv *SummaryEvaluationServeice) GetExecutorCycleList(param *command.QueryC |
71
|
|
71
|
|
72
|
// GetMenu
|
72
|
// GetMenu
|
73
|
// 根据周期获取菜单显示
|
73
|
// 根据周期获取菜单显示
|
74
|
-func (srv *SummaryEvaluationServeice) GetMenu(param *command.QueryMenu) (map[string]interface{}, error) {
|
74
|
+func (srv *SummaryEvaluationService) GetMenu(param *command.QueryMenu) (map[string]interface{}, error) {
|
75
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
75
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
76
|
if err != nil {
|
76
|
if err != nil {
|
77
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
77
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
@@ -241,7 +241,7 @@ func (srv *SummaryEvaluationServeice) GetMenu(param *command.QueryMenu) (map[str |
|
@@ -241,7 +241,7 @@ func (srv *SummaryEvaluationServeice) GetMenu(param *command.QueryMenu) (map[str |
241
|
}
|
241
|
}
|
242
|
|
242
|
|
243
|
// buildSummaryItemValue 将填写值填充进评估项
|
243
|
// buildSummaryItemValue 将填写值填充进评估项
|
244
|
-func (srv *SummaryEvaluationServeice) buildSummaryItemValue(itemList []*domain.EvaluationItemUsed, valueList []*domain.SummaryEvaluationValue) (
|
244
|
+func (srv *SummaryEvaluationService) buildSummaryItemValue(itemList []*domain.EvaluationItemUsed, valueList []*domain.SummaryEvaluationValue) (
|
245
|
itemValues []adapter.EvaluationItemAdapter) {
|
245
|
itemValues []adapter.EvaluationItemAdapter) {
|
246
|
itemValues = []adapter.EvaluationItemAdapter{}
|
246
|
itemValues = []adapter.EvaluationItemAdapter{}
|
247
|
valueMap := map[int]*domain.SummaryEvaluationValue{}
|
247
|
valueMap := map[int]*domain.SummaryEvaluationValue{}
|
|
@@ -278,7 +278,7 @@ func (srv *SummaryEvaluationServeice) buildSummaryItemValue(itemList []*domain.E |
|
@@ -278,7 +278,7 @@ func (srv *SummaryEvaluationServeice) buildSummaryItemValue(itemList []*domain.E |
278
|
}
|
278
|
}
|
279
|
|
279
|
|
280
|
// 获取综合自评详情
|
280
|
// 获取综合自评详情
|
281
|
-func (srv *SummaryEvaluationServeice) GetEvaluationSelf(param *command.QueryEvaluationInfo) (*adapter.EvaluationInfoAdapter, error) {
|
281
|
+func (srv *SummaryEvaluationService) GetEvaluationSelf(param *command.QueryEvaluationInfo) (*adapter.EvaluationInfoAdapter, error) {
|
282
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
282
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
283
|
if err != nil {
|
283
|
if err != nil {
|
284
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
284
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
@@ -350,7 +350,7 @@ func (srv *SummaryEvaluationServeice) GetEvaluationSelf(param *command.QueryEval |
|
@@ -350,7 +350,7 @@ func (srv *SummaryEvaluationServeice) GetEvaluationSelf(param *command.QueryEval |
350
|
}
|
350
|
}
|
351
|
|
351
|
|
352
|
// 编辑综合自评详情
|
352
|
// 编辑综合自评详情
|
353
|
-func (srv *SummaryEvaluationServeice) EditEvaluationSelf(param *command.EditEvaluationValue) (map[string][]adapter.EvaluationItemAdapter, error) {
|
353
|
+func (srv *SummaryEvaluationService) EditEvaluationSelf(param *command.EditEvaluationValue) (map[string][]adapter.EvaluationItemAdapter, error) {
|
354
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
354
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
355
|
if err != nil {
|
355
|
if err != nil {
|
356
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
356
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
@@ -459,7 +459,7 @@ func (srv *SummaryEvaluationServeice) EditEvaluationSelf(param *command.EditEval |
|
@@ -459,7 +459,7 @@ func (srv *SummaryEvaluationServeice) EditEvaluationSelf(param *command.EditEval |
459
|
|
459
|
|
460
|
// GetTargetUserCycleList
|
460
|
// GetTargetUserCycleList
|
461
|
// 获取周期列表,被评估的周期列表
|
461
|
// 获取周期列表,被评估的周期列表
|
462
|
-func (srv *SummaryEvaluationServeice) GetTargetUserCycleList(param *command.QueryCycleList) (map[string]interface{}, error) {
|
462
|
+func (srv *SummaryEvaluationService) GetTargetUserCycleList(param *command.QueryCycleList) (map[string]interface{}, error) {
|
463
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
463
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
464
|
if err != nil {
|
464
|
if err != nil {
|
465
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
465
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|