作者 tangxvhui

调整默认反馈异常数量

@@ -10,7 +10,6 @@ import ( @@ -10,7 +10,6 @@ import (
10 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/notify" 10 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/notify"
11 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/staff_assess/command" 11 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/staff_assess/command"
12 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain" 12 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
13 - "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/dao"  
14 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/log" 13 "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/log"
15 ) 14 )
16 15
@@ -133,7 +132,7 @@ func (srv StaffAssessServeice) CreateStaffAssessTask(transactionContext applicat @@ -133,7 +132,7 @@ func (srv StaffAssessServeice) CreateStaffAssessTask(transactionContext applicat
133 //保存 员工的需要填写的每日任务型 指标项 132 //保存 员工的需要填写的每日任务型 指标项
134 taskRecordRepo := factory.CreateTaskRecordRepository(map[string]interface{}{"transactionContext": transactionContext}) 133 taskRecordRepo := factory.CreateTaskRecordRepository(map[string]interface{}{"transactionContext": transactionContext})
135 // 保存 员工的需要填写的每日任务型 指标项 134 // 保存 员工的需要填写的每日任务型 指标项
136 - taskDao := dao.NewTaskDao(map[string]interface{}{"transactionContext": transactionContext}) 135 + // taskDao := dao.NewTaskDao(map[string]interface{}{"transactionContext": transactionContext})
137 136
138 newTaskIdList := []int{} 137 newTaskIdList := []int{}
139 for i := range assessList { 138 for i := range assessList {
@@ -162,10 +161,10 @@ func (srv StaffAssessServeice) CreateStaffAssessTask(transactionContext applicat @@ -162,10 +161,10 @@ func (srv StaffAssessServeice) CreateStaffAssessTask(transactionContext applicat
162 } 161 }
163 } 162 }
164 } 163 }
165 - err = taskDao.IncreaseAnomaly(newTaskIdList, 1)  
166 - if err != nil {  
167 - return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存个人任务型指标项"+err.Error())  
168 - } 164 + // err = taskDao.IncreaseAnomaly(newTaskIdList, 1)
  165 + // if err != nil {
  166 + // return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "保存个人任务型指标项"+err.Error())
  167 + // }
169 return map[string]interface{}{ 168 return map[string]interface{}{
170 "assessTaskId": assessTaskData.Id, 169 "assessTaskId": assessTaskData.Id,
171 }, nil 170 }, nil