作者 tangxvhui

更新

... ... @@ -203,7 +203,7 @@ type postOrderDividend struct {
type postDividendPayment struct {
QuantityControl string `json:"quantityControl"`
StateOfPayment string `json:"stateOfPayment"`
StateOfPayment int `json:"stateOfPayment"`
ProductId string `json:"productId"`
Remark string `json:"remark"`
}
... ... @@ -230,15 +230,14 @@ func (c *OrderDividendController) EditOrderDividend() {
c.ResponseError(errors.New("参数错误"))
return
}
bounsStatus, _ := strconv.Atoi(v.StateOfPayment)
if !(bounsStatus == domain.OrderGoodWaitPay || bounsStatus == domain.OrderGoodHasPay) {
if !(v.StateOfPayment == domain.OrderGoodWaitPay || v.StateOfPayment == domain.OrderGoodHasPay) {
c.ResponseError(errors.New("参数错误"))
return
}
g := orderCmd.GoodBouns{
GoodId: goodId,
Remark: v.Remark,
BounsStatus: bounsStatus,
BounsStatus: v.StateOfPayment,
}
if len(v.QuantityControl) == 0 {
g.UseGoodNumber = -1
... ...