...
|
...
|
@@ -21,13 +21,14 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) CreateDivide |
|
|
var orderGooods []allied_creation_cooperation.ReqDividendsReturnedOrderGood
|
|
|
for _, v := range createDividendsReturnedOrderCommand.OrderGoods {
|
|
|
good := allied_creation_cooperation.ReqDividendsReturnedOrderGood{
|
|
|
OrderGoodId: "0",
|
|
|
CooperationContractNumber: v.CooperationContractNumber,
|
|
|
OrderGoodAmount: 0,
|
|
|
OrderGoodName: v.OrderGoodName,
|
|
|
OrderGoodPrice: v.OrderGoodPrice,
|
|
|
OrderGoodQuantity: v.OrderGoodQuantity,
|
|
|
}
|
|
|
good.OrderGoodAmount = good.OrderGoodPrice * float64(good.OrderGoodQuantity)
|
|
|
// good.OrderGoodAmount = good.OrderGoodPrice * float64(good.OrderGoodQuantity)
|
|
|
orderGooods = append(orderGooods, good)
|
|
|
}
|
|
|
result, err := creationCooperationGateway.DividendsReturnedOrderAdd(allied_creation_cooperation.ReqDividendsReturnedOrderAdd{
|
...
|
...
|
@@ -97,13 +98,14 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide |
|
|
var orderGooods []allied_creation_cooperation.ReqDividendsReturnedOrderGood
|
|
|
for _, v := range updateDividendsReturnedOrderCommand.OrderGoods {
|
|
|
good := allied_creation_cooperation.ReqDividendsReturnedOrderGood{
|
|
|
OrderGoodId: strconv.Itoa(v.OrderGoodId),
|
|
|
CooperationContractNumber: v.CooperationContractNumber,
|
|
|
OrderGoodAmount: 0,
|
|
|
OrderGoodName: v.OrderGoodName,
|
|
|
OrderGoodPrice: v.OrderGoodPrice,
|
|
|
OrderGoodQuantity: v.OrderGoodQuantity,
|
|
|
}
|
|
|
good.OrderGoodAmount = good.OrderGoodPrice * float64(good.OrderGoodQuantity)
|
|
|
// good.OrderGoodAmount = good.OrderGoodPrice * float64(good.OrderGoodQuantity)
|
|
|
orderGooods = append(orderGooods, good)
|
|
|
}
|
|
|
_, err := creationCooperationGateway.DividendsReturnedOrderUpdate(allied_creation_cooperation.ReqDividendsReturnedOrderUpdate{
|
...
|
...
|
|