作者 yangfu

分红编辑修改

... ... @@ -41,7 +41,7 @@ func (c *DividendsController) Edit() {
StateOfPayment string `json:"stateOfPayment"`
}
type Parameter struct {
Id int64 `json:"id"` //订单编号
Id string `json:"id"` //订单编号
DividendPayment []DividendPaymentItem `json:"dividendPayment"`
}
var (
... ... @@ -53,8 +53,13 @@ func (c *DividendsController) Edit() {
c.ResponseError(errors.New("json数据解析失败"))
return
}
if len(param.Id) == 0 {
c.ResponseError(errors.New("id is empty"))
return
}
orderId, _ := strconv.ParseInt(param.Id, 10, 64)
cmd := OrderPaymentCmd.CreateOrderPaymentCommand{
OrderId: param.Id,
OrderId: orderId,
DivdendPaymentItem: make([]OrderPaymentCmd.DivdendPyamentItem, 0),
}
... ...