fuwencai 3 жил өмнө
parent
commit
6d0bc67976

+ 1 - 0
entity/order.go

@@ -67,6 +67,7 @@ type Order struct {
 	DistributionChannel string    `xorm:"distribution_channel" form:"distribution_channel" json:"distribution_channel"` //销售渠道
 	OrderChannel        string    `xorm:"order_channel" form:"order_channel" json:"order_channel"`                      //下单渠道
 	SigningSubject      string    `xorm:"signing_subject" form:"signing_subject" json:"signing_subject"`                //回款公司
+	SalespersonId       int64     `xorm:"salesperson_id" form:"salesperson_id" json:"salesperson_id"`                   //回款公司
 	/*Payment_type       int64  `xorm:"payment_type" form:"payment_type" json:"payment_type"`
 	Source_order_id    int64  `xorm:"source_order_id" form:"source_order_id" json:"source_order_id"`*/
 }

+ 1 - 0
rpc/jyOrder.proto

@@ -61,6 +61,7 @@ message Request {
   string salesChannel = 55;
   string orderChannel = 56;
   string  paybackCompany = 57;
+  int64 salesperson_id = 58;
 }
 
 message Response {

+ 1 - 0
service/orderService.go

@@ -69,6 +69,7 @@ func (s OrderService) CreateOrder(in *jyOrder.Request) (int64, string, int64) {
 	order.DistributionChannel = in.SalesChannel
 	order.OrderChannel = in.OrderChannel
 	order.SigningSubject = in.PaybackCompany
+	order.SalespersonId = in.SalespersonId
 	/*order.Payment_type = in.PaymentType
 	order.Source_order_id = in.SourceOrderId*/