...
|
...
|
@@ -24,12 +24,14 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD |
|
|
good := allied_creation_cooperation.DividendsOrderGoodAdd{
|
|
|
CooperationContractNumber: v.CooperationContractNumber,
|
|
|
DividendsOrderNumber: v.DividendsOrderNumber,
|
|
|
OrderGoodAmount: v.OrderGoodAmount,
|
|
|
OrderGoodAmount: 0,
|
|
|
OrderGoodExpense: v.OrderGoodExpense,
|
|
|
OrderGoodName: v.OrderGoodName,
|
|
|
OrderGoodPrice: v.OrderGoodPrice,
|
|
|
OrderGoodQuantity: v.OrderGoodQuantity,
|
|
|
}
|
|
|
orderGoodAmount := v.OrderGoodPrice * float64(v.OrderGoodQuantity)
|
|
|
good.OrderGoodAmount = orderGoodAmount
|
|
|
orderGoods = append(orderGoods, good)
|
|
|
}
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(createDividendsOrderCommand.Operator)
|
...
|
...
|
@@ -84,9 +86,6 @@ func (dividendsOrderService *DividendsOrderService) RemoveDividendsOrder(removeD |
|
|
|
|
|
// 查询分红订单方法
|
|
|
func (dividendsOrderService *DividendsOrderService) SearchDividendsOrder(searchDividendsOrderQuery *query.SearchDividendsOrderQuery) (int, interface{}, error) {
|
|
|
// if err := searchDividendsOrderQuery.ValidateQuery(); err != nil {
|
|
|
// return 0, nil, application.ThrowError(application.ARG_ERROR, err.Error())
|
|
|
// }
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(searchDividendsOrderQuery.Operator)
|
|
|
result, err := creationCooperationGateway.DividendsOrderSearch(allied_creation_cooperation.ReqDividendsOrderSearch{
|
|
|
PageNumber: searchDividendsOrderQuery.PageNumber,
|
...
|
...
|
@@ -115,12 +114,14 @@ func (dividendsOrderService *DividendsOrderService) UpdateDividendsOrder(updateD |
|
|
good := allied_creation_cooperation.DividendsOrderGoods{
|
|
|
CooperationContractNumber: v.CooperationContractNumber,
|
|
|
DividendsOrderNumber: v.DividendsOrderNumber,
|
|
|
OrderGoodAmount: v.OrderGoodAmount,
|
|
|
OrderGoodExpense: v.OrderGoodExpense,
|
|
|
OrderGoodAmount: 0,
|
|
|
OrderGoodName: v.OrderGoodName,
|
|
|
OrderGoodPrice: v.OrderGoodPrice,
|
|
|
OrderGoodQuantity: v.OrderGoodQuantity,
|
|
|
}
|
|
|
orderGoodAmount := v.OrderGoodPrice * float64(v.OrderGoodQuantity)
|
|
|
good.OrderGoodAmount = orderGoodAmount
|
|
|
orderGoods = append(orderGoods, good)
|
|
|
}
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(updateDividendsOrderCommand.Operator)
|
...
|
...
|
|