作者 唐旭辉

错误修正

@@ -563,8 +563,8 @@ func (c *OrderInfoController) GetOrderReal() { @@ -563,8 +563,8 @@ func (c *OrderInfoController) GetOrderReal() {
563 //实际订单 563 //实际订单
564 type postRealOrderDetail struct { 564 type postRealOrderDetail struct {
565 postPurposeOrderDetail 565 postPurposeOrderDetail
566 - PartnerCategory int64 `json:"partner_category"`  
567 - ShipmentsId string `json:"shipmentsId"` //发货单号 566 + PartnerCategoryId int64 `json:"partnerCategoryId"`
  567 + ShipmentsId string `json:"shipmentsId"` //发货单号
568 } 568 }
569 569
570 func (postData *postRealOrderDetail) Valid() error { 570 func (postData *postRealOrderDetail) Valid() error {
@@ -629,7 +629,7 @@ func (c *OrderInfoController) addOrderReal(param postRealOrderDetail) error { @@ -629,7 +629,7 @@ func (c *OrderInfoController) addOrderReal(param postRealOrderDetail) error {
629 SalesmanBonusPercent: param.CommissionProportion, 629 SalesmanBonusPercent: param.CommissionProportion,
630 Goods: newGoods, 630 Goods: newGoods,
631 CompanyId: companyId, 631 CompanyId: companyId,
632 - PartnerCategory: param.PartnerCategory, 632 + PartnerCategory: param.PartnerCategoryId,
633 } 633 }
634 _, err := orderSrv.CreateNewOrder(createcmd) 634 _, err := orderSrv.CreateNewOrder(createcmd)
635 return err 635 return err
@@ -659,7 +659,7 @@ func (c *OrderInfoController) editOrderReal(param postRealOrderDetail) error { @@ -659,7 +659,7 @@ func (c *OrderInfoController) editOrderReal(param postRealOrderDetail) error {
659 SalesmanBonusPercent: param.CommissionProportion, 659 SalesmanBonusPercent: param.CommissionProportion,
660 Goods: newGoods, 660 Goods: newGoods,
661 CompanyId: companyId, 661 CompanyId: companyId,
662 - PartnerCategory: param.PartnerCategory, 662 + PartnerCategory: param.PartnerCategoryId,
663 } 663 }
664 orderSrv := orderService.NewOrderInfoService(nil) 664 orderSrv := orderService.NewOrderInfoService(nil)
665 _, err := orderSrv.UpdateOrderData(updatecmd) 665 _, err := orderSrv.UpdateOrderData(updatecmd)