正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -204,7 +204,7 @@ type postOrderDividend struct { | @@ -204,7 +204,7 @@ type postOrderDividend struct { | ||
| 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 string `json:"productId"` | 207 | + ProductId int `json:"productId"` |
| 208 | Remark string `json:"remark"` | 208 | Remark string `json:"remark"` |
| 209 | } | 209 | } |
| 210 | 210 | ||
| @@ -225,8 +225,7 @@ func (c *OrderDividendController) EditOrderDividend() { | @@ -225,8 +225,7 @@ func (c *OrderDividendController) EditOrderDividend() { | ||
| 225 | } | 225 | } |
| 226 | goodbouns := []orderCmd.GoodBouns{} | 226 | goodbouns := []orderCmd.GoodBouns{} |
| 227 | for _, v := range param.DividendPayments { | 227 | for _, v := range param.DividendPayments { |
| 228 | - goodId, _ := strconv.ParseInt(v.ProductId, 10, 64) | ||
| 229 | - if goodId == 0 { | 228 | + if v.ProductId == 0 { |
| 230 | c.ResponseError(errors.New("参数错误")) | 229 | c.ResponseError(errors.New("参数错误")) |
| 231 | return | 230 | return |
| 232 | } | 231 | } |
| @@ -235,7 +234,7 @@ func (c *OrderDividendController) EditOrderDividend() { | @@ -235,7 +234,7 @@ func (c *OrderDividendController) EditOrderDividend() { | ||
| 235 | return | 234 | return |
| 236 | } | 235 | } |
| 237 | g := orderCmd.GoodBouns{ | 236 | g := orderCmd.GoodBouns{ |
| 238 | - GoodId: goodId, | 237 | + GoodId: v.ProductId, |
| 239 | Remark: v.Remark, | 238 | Remark: v.Remark, |
| 240 | BounsStatus: v.StateOfPayment, | 239 | BounsStatus: v.StateOfPayment, |
| 241 | } | 240 | } |
-
请 注册 或 登录 后发表评论