...
|
...
|
@@ -197,14 +197,14 @@ func (c *OrderDividendController) OrderDividendDetail() { |
|
|
}
|
|
|
|
|
|
type postOrderDividend struct {
|
|
|
Id string `json:"id"`
|
|
|
Id int64 `json:"id"`
|
|
|
DividendPayments []postDividendPayment `json:"dividendPayment"`
|
|
|
}
|
|
|
|
|
|
type postDividendPayment struct {
|
|
|
QuantityControl string `json:"quantityControl"`
|
|
|
StateOfPayment int `json:"stateOfPayment"`
|
|
|
ProductId int `json:"productId"`
|
|
|
ProductId int64 `json:"productId"`
|
|
|
Remark string `json:"remark"`
|
|
|
}
|
|
|
|
...
|
...
|
@@ -218,8 +218,8 @@ func (c *OrderDividendController) EditOrderDividend() { |
|
|
c.ResponseError(errors.New("json数据解析失败"))
|
|
|
return
|
|
|
}
|
|
|
orderId, _ := strconv.ParseInt(param.Id, 10, 64)
|
|
|
if orderId == 0 {
|
|
|
|
|
|
if param.Id == 0 {
|
|
|
c.ResponseError(errors.New("参数错误"))
|
|
|
return
|
|
|
}
|
...
|
...
|
@@ -251,7 +251,7 @@ func (c *OrderDividendController) EditOrderDividend() { |
|
|
goodbouns = append(goodbouns, g)
|
|
|
}
|
|
|
cmd := orderCmd.UpdateGoodBouns{
|
|
|
Id: orderId,
|
|
|
Id: param.Id,
|
|
|
GoodBouns: goodbouns,
|
|
|
}
|
|
|
orderSrv := orderService.NewOrderInfoService(nil)
|
...
|
...
|
|