正在显示
4 个修改的文件
包含
10 行增加
和
4 行删除
@@ -28,13 +28,16 @@ func (dividendsEstimateService *DividendsEstimateService) CancelDividendsEstimat | @@ -28,13 +28,16 @@ func (dividendsEstimateService *DividendsEstimateService) CancelDividendsEstimat | ||
28 | func (dividendsEstimateService *DividendsEstimateService) EstimateDividendsIncentives(estimateDividendsIncentivesCommand *command.EstimateDividendsIncentivesCommand) (interface{}, error) { | 28 | func (dividendsEstimateService *DividendsEstimateService) EstimateDividendsIncentives(estimateDividendsIncentivesCommand *command.EstimateDividendsIncentivesCommand) (interface{}, error) { |
29 | creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation( | 29 | creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation( |
30 | estimateDividendsIncentivesCommand.Operator) | 30 | estimateDividendsIncentivesCommand.Operator) |
31 | - _, err := creationCooperationGateway.DividendsEstimateDividendsIncentives(allied_creation_cooperation.ReqDividendsEstimateDividendsIncentives{ | 31 | + result, err := creationCooperationGateway.DividendsEstimateDividendsIncentives(allied_creation_cooperation.ReqDividendsEstimateDividendsIncentives{ |
32 | OrderGoodIds: estimateDividendsIncentivesCommand.OrderGoodIds, | 32 | OrderGoodIds: estimateDividendsIncentivesCommand.OrderGoodIds, |
33 | }) | 33 | }) |
34 | if err != nil { | 34 | if err != nil { |
35 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 35 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) |
36 | } | 36 | } |
37 | - return estimateDividendsIncentivesCommand, nil | 37 | + respData := map[string]string{ |
38 | + "result": result.Report, | ||
39 | + } | ||
40 | + return respData, nil | ||
38 | } | 41 | } |
39 | 42 | ||
40 | // 确定预算金额激励分红 | 43 | // 确定预算金额激励分红 |
@@ -126,7 +126,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide | @@ -126,7 +126,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide | ||
126 | return updateDividendsReturnedOrderCommand, nil | 126 | return updateDividendsReturnedOrderCommand, nil |
127 | } | 127 | } |
128 | 128 | ||
129 | -// 更新分红退货单服务 | 129 | +// 分红单下拉选择列表 |
130 | func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDividendsOrder(selectorDividendsOrderQuery *query.SelectorDividendsOrderQuery) ( | 130 | func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDividendsOrder(selectorDividendsOrderQuery *query.SelectorDividendsOrderQuery) ( |
131 | int, interface{}, error) { | 131 | int, interface{}, error) { |
132 | creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(selectorDividendsOrderQuery.Operator) | 132 | creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(selectorDividendsOrderQuery.Operator) |
@@ -134,6 +134,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDivi | @@ -134,6 +134,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) SelectorDivi | ||
134 | DividendsOrderNumber: selectorDividendsOrderQuery.DividendsOrderNumber, | 134 | DividendsOrderNumber: selectorDividendsOrderQuery.DividendsOrderNumber, |
135 | PageNumber: 1, | 135 | PageNumber: 1, |
136 | PageSize: 999, | 136 | PageSize: 999, |
137 | + OrgId: selectorDividendsOrderQuery.Operator.OrgId, | ||
137 | }) | 138 | }) |
138 | if err != nil { | 139 | if err != nil { |
139 | return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 140 | return 0, nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) |
@@ -244,6 +244,7 @@ type ( | @@ -244,6 +244,7 @@ type ( | ||
244 | OrderGoodIds []string `json:"orderGoodIds"` | 244 | OrderGoodIds []string `json:"orderGoodIds"` |
245 | } | 245 | } |
246 | 246 | ||
247 | - DataDividendsEstimateDividendsIncentives []struct { | 247 | + DataDividendsEstimateDividendsIncentives struct { |
248 | + Report string `json:"report"` | ||
248 | } | 249 | } |
249 | ) | 250 | ) |
@@ -127,6 +127,7 @@ type ( | @@ -127,6 +127,7 @@ type ( | ||
127 | CompanyId int `json:"companyId"` | 127 | CompanyId int `json:"companyId"` |
128 | CustomerName string `json:"customerName"` | 128 | CustomerName string `json:"customerName"` |
129 | DividendsOrderNumber string `json:"dividendsOrderNumber"` | 129 | DividendsOrderNumber string `json:"dividendsOrderNumber"` |
130 | + OrgId int64 `json:"orgId"` | ||
130 | OrgIds []int64 `json:"orgIds"` | 131 | OrgIds []int64 `json:"orgIds"` |
131 | PageNumber int `json:"pageNumber"` | 132 | PageNumber int `json:"pageNumber"` |
132 | PageSize int `json:"pageSize"` | 133 | PageSize int `json:"pageSize"` |
-
请 注册 或 登录 后发表评论