...
|
...
|
@@ -37,8 +37,8 @@ func (c *DividendsController) Prepare() { |
|
|
func (c *DividendsController) Edit() {
|
|
|
//用与适配前端定义的数据结构
|
|
|
type DividendPaymentItem struct {
|
|
|
PaymentForGoods string `json:"paymentForGoods"`
|
|
|
StateOfPayment string `json:"stateOfPayment"`
|
|
|
PaymentForGoods float64 `json:"paymentForGoods"`
|
|
|
StateOfPayment int `json:"stateOfPayment"`
|
|
|
}
|
|
|
type Parameter struct {
|
|
|
Id string `json:"id"` //订单编号
|
...
|
...
|
@@ -67,8 +67,8 @@ func (c *DividendsController) Edit() { |
|
|
for i := range param.DividendPayment {
|
|
|
item := param.DividendPayment[i]
|
|
|
paymentItem := OrderPaymentCmd.DivdendPyamentItem{}
|
|
|
paymentItem.PaymentForGoods, _ = strconv.ParseFloat(item.PaymentForGoods, 64)
|
|
|
paymentItem.StateOfPayment, _ = strconv.Atoi(item.StateOfPayment)
|
|
|
paymentItem.PaymentForGoods = item.PaymentForGoods
|
|
|
paymentItem.StateOfPayment = item.StateOfPayment
|
|
|
paymentItem.PaymentSn = i + 1
|
|
|
|
|
|
if paymentItem.StateOfPayment == domain.BonusPaid {
|
...
|
...
|
|