- 订单导出添加courierVendorName
This commit is contained in:
@@ -419,6 +419,7 @@ func (c *OrderManager) ExportOrders(ctx *jxcontext.Context, fromDateStr, toDateS
|
|||||||
}, ",")
|
}, ",")
|
||||||
if order == nil || v.ID != order.ID {
|
if order == nil || v.ID != order.ID {
|
||||||
order = v
|
order = v
|
||||||
|
v.CourierVendorName = model.VendorChineseNames[v.WaybillVendorID]
|
||||||
v.Status2 = model.OrderStatusName[v.Status]
|
v.Status2 = model.OrderStatusName[v.Status]
|
||||||
v.SkuInfo = skuStr
|
v.SkuInfo = skuStr
|
||||||
orders2 = append(orders2, v)
|
orders2 = append(orders2, v)
|
||||||
@@ -453,6 +454,7 @@ func (c *OrderManager) ExportOrders(ctx *jxcontext.Context, fromDateStr, toDateS
|
|||||||
"waybillVendorID",
|
"waybillVendorID",
|
||||||
"orderCreatedAt",
|
"orderCreatedAt",
|
||||||
"orderFinishedAt",
|
"orderFinishedAt",
|
||||||
|
"courierVendorName",
|
||||||
"courierName",
|
"courierName",
|
||||||
"courierMobile",
|
"courierMobile",
|
||||||
"courierMobile",
|
"courierMobile",
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ type GoodsOrderExt struct {
|
|||||||
CourierName string `orm:"size(32)" json:"courierName"`
|
CourierName string `orm:"size(32)" json:"courierName"`
|
||||||
CourierMobile string `orm:"size(32)" json:"courierMobile"`
|
CourierMobile string `orm:"size(32)" json:"courierMobile"`
|
||||||
CurrentConsigneeMobile string `orm:"-" json:"currentConsigneeMobile"`
|
CurrentConsigneeMobile string `orm:"-" json:"currentConsigneeMobile"`
|
||||||
|
CourierVendorName string `json:"courierVendorName"`
|
||||||
|
|
||||||
Status2 string `json:"status2"`
|
Status2 string `json:"status2"`
|
||||||
ActualFee int64 `json:"actualFee"` // 实际要支付给快递公司的费用
|
ActualFee int64 `json:"actualFee"` // 实际要支付给快递公司的费用
|
||||||
|
|||||||
Reference in New Issue
Block a user