|
@@ -372,6 +372,8 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
@@ -372,6 +372,8 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
372
|
_ = transactionContext.RollbackTransaction()
|
372
|
_ = transactionContext.RollbackTransaction()
|
|
373
|
}()
|
373
|
}()
|
|
374
|
|
374
|
|
|
|
|
375
|
+ orderGoodIds, _ := utils.SliceAtoi(confirmDividendsIncentivesEstimateCommand.OrderGoodIds)
|
|
|
|
376
|
+
|
|
375
|
// 用户REST服务初始化
|
377
|
// 用户REST服务初始化
|
|
376
|
//var userService service.UserService
|
378
|
//var userService service.UserService
|
|
377
|
//if value, err := factory.CreateUserService(map[string]interface{}{}); err != nil {
|
379
|
//if value, err := factory.CreateUserService(map[string]interface{}{}); err != nil {
|
|
@@ -476,7 +478,9 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
@@ -476,7 +478,9 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
476
|
}
|
478
|
}
|
|
477
|
|
479
|
|
|
478
|
// 获取订单产品
|
480
|
// 获取订单产品
|
|
479
|
- if _, orderGoods, err := orderGoodRepository.Find(tool_funs.SimpleStructToMap(confirmDividendsIncentivesEstimateCommand)); err != nil {
|
481
|
+ if _, orderGoods, err := orderGoodRepository.Find(map[string]interface{}{
|
|
|
|
482
|
+ "orderGoodIds": orderGoodIds,
|
|
|
|
483
|
+ }); err != nil {
|
|
480
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
484
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
481
|
} else {
|
485
|
} else {
|
|
482
|
var dividendsEstimates []*domain.DividendsEstimate
|
486
|
var dividendsEstimates []*domain.DividendsEstimate
|