正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
@@ -203,7 +203,7 @@ type postOrderDividend struct { | @@ -203,7 +203,7 @@ type postOrderDividend struct { | ||
203 | 203 | ||
204 | type postDividendPayment struct { | 204 | type postDividendPayment struct { |
205 | QuantityControl string `json:"quantityControl"` | 205 | QuantityControl string `json:"quantityControl"` |
206 | - StateOfPayment string `json:"stateOfPayment"` | 206 | + StateOfPayment int `json:"stateOfPayment"` |
207 | ProductId string `json:"productId"` | 207 | ProductId string `json:"productId"` |
208 | Remark string `json:"remark"` | 208 | Remark string `json:"remark"` |
209 | } | 209 | } |
@@ -230,15 +230,14 @@ func (c *OrderDividendController) EditOrderDividend() { | @@ -230,15 +230,14 @@ func (c *OrderDividendController) EditOrderDividend() { | ||
230 | c.ResponseError(errors.New("参数错误")) | 230 | c.ResponseError(errors.New("参数错误")) |
231 | return | 231 | return |
232 | } | 232 | } |
233 | - bounsStatus, _ := strconv.Atoi(v.StateOfPayment) | ||
234 | - if !(bounsStatus == domain.OrderGoodWaitPay || bounsStatus == domain.OrderGoodHasPay) { | 233 | + if !(v.StateOfPayment == domain.OrderGoodWaitPay || v.StateOfPayment == domain.OrderGoodHasPay) { |
235 | c.ResponseError(errors.New("参数错误")) | 234 | c.ResponseError(errors.New("参数错误")) |
236 | return | 235 | return |
237 | } | 236 | } |
238 | g := orderCmd.GoodBouns{ | 237 | g := orderCmd.GoodBouns{ |
239 | GoodId: goodId, | 238 | GoodId: goodId, |
240 | Remark: v.Remark, | 239 | Remark: v.Remark, |
241 | - BounsStatus: bounsStatus, | 240 | + BounsStatus: v.StateOfPayment, |
242 | } | 241 | } |
243 | if len(v.QuantityControl) == 0 { | 242 | if len(v.QuantityControl) == 0 { |
244 | g.UseGoodNumber = -1 | 243 | g.UseGoodNumber = -1 |
-
请 注册 或 登录 后发表评论