...
|
...
|
@@ -16,7 +16,7 @@ type AcceptanceTaskService struct { |
|
|
transactionContext *pgTransaction.TransactionContext
|
|
|
}
|
|
|
|
|
|
func (service *AcceptanceTaskService) Acceptance(taskId int64, operatorUid int64, participators []int64, taskPercentage []*domain.TaskPercentageItem, referenceResourceScore []*domain.ReferenceResourceItem, solveReport string, solvePictureUrls []string, actualCompletionTime time.Time) (*domain.Task, error) {
|
|
|
func (service *AcceptanceTaskService) Acceptance(taskId int64, operatorUid int64, participators []int64, suMoney float64, taskPercentage []*domain.TaskPercentageItem, referenceResourceScore []*domain.ReferenceResourceItem, solveReport string, solvePictureUrls []string, actualCompletionTime time.Time) (*domain.Task, error) {
|
|
|
var employeeRepository domain.EmployeeRepository
|
|
|
var taskRepository domain.TaskRepository
|
|
|
var suMoneyTransactionRecordRepository domain.SuMoneyTransactionRecordRepository
|
...
|
...
|
@@ -74,7 +74,7 @@ func (service *AcceptanceTaskService) Acceptance(taskId int64, operatorUid int64 |
|
|
participatorInfos = append(participatorInfos, participator.EmployeeInfo)
|
|
|
}
|
|
|
}
|
|
|
if err := task.Acceptance(participatorInfos, taskPercentage, referenceResourceScore, solveReport, solvePictureUrls, actualCompletionTime); err != nil {
|
|
|
if err := task.Acceptance(participatorInfos, suMoney, taskPercentage, referenceResourceScore, solveReport, solvePictureUrls, actualCompletionTime); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
for _, taskPercentageItem := range taskPercentage {
|
...
|
...
|
|