正在显示
4 个修改的文件
包含
10 行增加
和
7 行删除
@@ -28,8 +28,8 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD | @@ -28,8 +28,8 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD | ||
28 | OrderGoodPrice: v.OrderGoodPrice, | 28 | OrderGoodPrice: v.OrderGoodPrice, |
29 | OrderGoodQuantity: v.OrderGoodQuantity, | 29 | OrderGoodQuantity: v.OrderGoodQuantity, |
30 | } | 30 | } |
31 | - orderGoodAmount := v.OrderGoodPrice*float64(v.OrderGoodQuantity) - v.OrderGoodExpense | ||
32 | - good.OrderGoodAmount = orderGoodAmount | 31 | + // orderGoodAmount := v.OrderGoodPrice*float64(v.OrderGoodQuantity) - v.OrderGoodExpense |
32 | + // good.OrderGoodAmount = orderGoodAmount | ||
33 | orderGoods = append(orderGoods, good) | 33 | orderGoods = append(orderGoods, good) |
34 | } | 34 | } |
35 | creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(createDividendsOrderCommand.Operator) | 35 | creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(createDividendsOrderCommand.Operator) |
@@ -114,8 +114,8 @@ func (dividendsOrderService *DividendsOrderService) UpdateDividendsOrder(updateD | @@ -114,8 +114,8 @@ func (dividendsOrderService *DividendsOrderService) UpdateDividendsOrder(updateD | ||
114 | OrderGoodPrice: v.OrderGoodPrice, | 114 | OrderGoodPrice: v.OrderGoodPrice, |
115 | OrderGoodQuantity: v.OrderGoodQuantity, | 115 | OrderGoodQuantity: v.OrderGoodQuantity, |
116 | } | 116 | } |
117 | - orderGoodAmount := v.OrderGoodPrice*float64(v.OrderGoodQuantity) - v.OrderGoodExpense | ||
118 | - good.OrderGoodAmount = orderGoodAmount | 117 | + // orderGoodAmount := v.OrderGoodPrice*float64(v.OrderGoodQuantity) - v.OrderGoodExpense |
118 | + // good.OrderGoodAmount = orderGoodAmount | ||
119 | orderGoods = append(orderGoods, good) | 119 | orderGoods = append(orderGoods, good) |
120 | } | 120 | } |
121 | creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(updateDividendsOrderCommand.Operator) | 121 | creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(updateDividendsOrderCommand.Operator) |
@@ -12,7 +12,7 @@ type UpdateDividendsReturnedOrderCommand struct { | @@ -12,7 +12,7 @@ type UpdateDividendsReturnedOrderCommand struct { | ||
12 | DividendsOrderNumber string `json:"dividendsOrderNumber"` //分红单号 | 12 | DividendsOrderNumber string `json:"dividendsOrderNumber"` //分红单号 |
13 | OriginalOrderNum string `json:"originalOrderNum"` //源单号 | 13 | OriginalOrderNum string `json:"originalOrderNum"` //源单号 |
14 | OrderGoods []struct { | 14 | OrderGoods []struct { |
15 | - OrderGoodId int64 `json:"orderGoodId,string"` // 订单产品id | 15 | + OrderGoodId int `json:"orderGoodId,string"` // 订单产品id |
16 | CooperationContractNumber string `json:"cooperationContractNumber"` //关联的共创合约编号 | 16 | CooperationContractNumber string `json:"cooperationContractNumber"` //关联的共创合约编号 |
17 | // OrderGoodAmount float64 `json:"orderGoodAmount"` //订单产品金额 | 17 | // OrderGoodAmount float64 `json:"orderGoodAmount"` //订单产品金额 |
18 | OrderGoodName string `json:"orderGoodName"` //订单产品名称 | 18 | OrderGoodName string `json:"orderGoodName"` //订单产品名称 |
@@ -21,13 +21,14 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) CreateDivide | @@ -21,13 +21,14 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) CreateDivide | ||
21 | var orderGooods []allied_creation_cooperation.ReqDividendsReturnedOrderGood | 21 | var orderGooods []allied_creation_cooperation.ReqDividendsReturnedOrderGood |
22 | for _, v := range createDividendsReturnedOrderCommand.OrderGoods { | 22 | for _, v := range createDividendsReturnedOrderCommand.OrderGoods { |
23 | good := allied_creation_cooperation.ReqDividendsReturnedOrderGood{ | 23 | good := allied_creation_cooperation.ReqDividendsReturnedOrderGood{ |
24 | + OrderGoodId: "0", | ||
24 | CooperationContractNumber: v.CooperationContractNumber, | 25 | CooperationContractNumber: v.CooperationContractNumber, |
25 | OrderGoodAmount: 0, | 26 | OrderGoodAmount: 0, |
26 | OrderGoodName: v.OrderGoodName, | 27 | OrderGoodName: v.OrderGoodName, |
27 | OrderGoodPrice: v.OrderGoodPrice, | 28 | OrderGoodPrice: v.OrderGoodPrice, |
28 | OrderGoodQuantity: v.OrderGoodQuantity, | 29 | OrderGoodQuantity: v.OrderGoodQuantity, |
29 | } | 30 | } |
30 | - good.OrderGoodAmount = good.OrderGoodPrice * float64(good.OrderGoodQuantity) | 31 | + // good.OrderGoodAmount = good.OrderGoodPrice * float64(good.OrderGoodQuantity) |
31 | orderGooods = append(orderGooods, good) | 32 | orderGooods = append(orderGooods, good) |
32 | } | 33 | } |
33 | result, err := creationCooperationGateway.DividendsReturnedOrderAdd(allied_creation_cooperation.ReqDividendsReturnedOrderAdd{ | 34 | result, err := creationCooperationGateway.DividendsReturnedOrderAdd(allied_creation_cooperation.ReqDividendsReturnedOrderAdd{ |
@@ -97,13 +98,14 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide | @@ -97,13 +98,14 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) UpdateDivide | ||
97 | var orderGooods []allied_creation_cooperation.ReqDividendsReturnedOrderGood | 98 | var orderGooods []allied_creation_cooperation.ReqDividendsReturnedOrderGood |
98 | for _, v := range updateDividendsReturnedOrderCommand.OrderGoods { | 99 | for _, v := range updateDividendsReturnedOrderCommand.OrderGoods { |
99 | good := allied_creation_cooperation.ReqDividendsReturnedOrderGood{ | 100 | good := allied_creation_cooperation.ReqDividendsReturnedOrderGood{ |
101 | + OrderGoodId: strconv.Itoa(v.OrderGoodId), | ||
100 | CooperationContractNumber: v.CooperationContractNumber, | 102 | CooperationContractNumber: v.CooperationContractNumber, |
101 | OrderGoodAmount: 0, | 103 | OrderGoodAmount: 0, |
102 | OrderGoodName: v.OrderGoodName, | 104 | OrderGoodName: v.OrderGoodName, |
103 | OrderGoodPrice: v.OrderGoodPrice, | 105 | OrderGoodPrice: v.OrderGoodPrice, |
104 | OrderGoodQuantity: v.OrderGoodQuantity, | 106 | OrderGoodQuantity: v.OrderGoodQuantity, |
105 | } | 107 | } |
106 | - good.OrderGoodAmount = good.OrderGoodPrice * float64(good.OrderGoodQuantity) | 108 | + // good.OrderGoodAmount = good.OrderGoodPrice * float64(good.OrderGoodQuantity) |
107 | orderGooods = append(orderGooods, good) | 109 | orderGooods = append(orderGooods, good) |
108 | } | 110 | } |
109 | _, err := creationCooperationGateway.DividendsReturnedOrderUpdate(allied_creation_cooperation.ReqDividendsReturnedOrderUpdate{ | 111 | _, err := creationCooperationGateway.DividendsReturnedOrderUpdate(allied_creation_cooperation.ReqDividendsReturnedOrderUpdate{ |
@@ -50,6 +50,7 @@ type ( | @@ -50,6 +50,7 @@ type ( | ||
50 | 50 | ||
51 | // | 51 | // |
52 | ReqDividendsReturnedOrderGood struct { | 52 | ReqDividendsReturnedOrderGood struct { |
53 | + OrderGoodId string `json:"orderGoodId"` | ||
53 | CooperationContractNumber string `json:"cooperationContractNumber"` //关联的共创合约编号 | 54 | CooperationContractNumber string `json:"cooperationContractNumber"` //关联的共创合约编号 |
54 | OrderGoodAmount float64 `json:"orderGoodAmount"` //订单产品金额 | 55 | OrderGoodAmount float64 `json:"orderGoodAmount"` //订单产品金额 |
55 | OrderGoodName string `json:"orderGoodName"` //订单产品名称 | 56 | OrderGoodName string `json:"orderGoodName"` //订单产品名称 |
-
请 注册 或 登录 后发表评论