正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -197,14 +197,14 @@ func (c *OrderDividendController) OrderDividendDetail() { | @@ -197,14 +197,14 @@ func (c *OrderDividendController) OrderDividendDetail() { | ||
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | type postOrderDividend struct { | 199 | type postOrderDividend struct { |
| 200 | - Id string `json:"id"` | 200 | + Id int64 `json:"id"` |
| 201 | DividendPayments []postDividendPayment `json:"dividendPayment"` | 201 | DividendPayments []postDividendPayment `json:"dividendPayment"` |
| 202 | } | 202 | } |
| 203 | 203 | ||
| 204 | type postDividendPayment struct { | 204 | type postDividendPayment struct { |
| 205 | QuantityControl string `json:"quantityControl"` | 205 | QuantityControl string `json:"quantityControl"` |
| 206 | StateOfPayment int `json:"stateOfPayment"` | 206 | StateOfPayment int `json:"stateOfPayment"` |
| 207 | - ProductId int `json:"productId"` | 207 | + ProductId int64 `json:"productId"` |
| 208 | Remark string `json:"remark"` | 208 | Remark string `json:"remark"` |
| 209 | } | 209 | } |
| 210 | 210 | ||
| @@ -218,8 +218,8 @@ func (c *OrderDividendController) EditOrderDividend() { | @@ -218,8 +218,8 @@ func (c *OrderDividendController) EditOrderDividend() { | ||
| 218 | c.ResponseError(errors.New("json数据解析失败")) | 218 | c.ResponseError(errors.New("json数据解析失败")) |
| 219 | return | 219 | return |
| 220 | } | 220 | } |
| 221 | - orderId, _ := strconv.ParseInt(param.Id, 10, 64) | ||
| 222 | - if orderId == 0 { | 221 | + |
| 222 | + if param.Id == 0 { | ||
| 223 | c.ResponseError(errors.New("参数错误")) | 223 | c.ResponseError(errors.New("参数错误")) |
| 224 | return | 224 | return |
| 225 | } | 225 | } |
| @@ -251,7 +251,7 @@ func (c *OrderDividendController) EditOrderDividend() { | @@ -251,7 +251,7 @@ func (c *OrderDividendController) EditOrderDividend() { | ||
| 251 | goodbouns = append(goodbouns, g) | 251 | goodbouns = append(goodbouns, g) |
| 252 | } | 252 | } |
| 253 | cmd := orderCmd.UpdateGoodBouns{ | 253 | cmd := orderCmd.UpdateGoodBouns{ |
| 254 | - Id: orderId, | 254 | + Id: param.Id, |
| 255 | GoodBouns: goodbouns, | 255 | GoodBouns: goodbouns, |
| 256 | } | 256 | } |
| 257 | orderSrv := orderService.NewOrderInfoService(nil) | 257 | orderSrv := orderService.NewOrderInfoService(nil) |
-
请 注册 或 登录 后发表评论