...
|
...
|
@@ -204,7 +204,7 @@ type postOrderDividend struct { |
|
|
type postDividendPayment struct {
|
|
|
QuantityControl string `json:"quantityControl"`
|
|
|
StateOfPayment int `json:"stateOfPayment"`
|
|
|
ProductId string `json:"productId"`
|
|
|
ProductId int `json:"productId"`
|
|
|
Remark string `json:"remark"`
|
|
|
}
|
|
|
|
...
|
...
|
@@ -225,8 +225,7 @@ func (c *OrderDividendController) EditOrderDividend() { |
|
|
}
|
|
|
goodbouns := []orderCmd.GoodBouns{}
|
|
|
for _, v := range param.DividendPayments {
|
|
|
goodId, _ := strconv.ParseInt(v.ProductId, 10, 64)
|
|
|
if goodId == 0 {
|
|
|
if v.ProductId == 0 {
|
|
|
c.ResponseError(errors.New("参数错误"))
|
|
|
return
|
|
|
}
|
...
|
...
|
@@ -235,7 +234,7 @@ func (c *OrderDividendController) EditOrderDividend() { |
|
|
return
|
|
|
}
|
|
|
g := orderCmd.GoodBouns{
|
|
|
GoodId: goodId,
|
|
|
GoodId: v.ProductId,
|
|
|
Remark: v.Remark,
|
|
|
BounsStatus: v.StateOfPayment,
|
|
|
}
|
...
|
...
|
|