- 订单导出添加courierVendorName

This commit is contained in:
gazebo
2019-06-14 10:25:07 +08:00
parent 2739dfc963
commit 52ae2696ab
2 changed files with 3 additions and 0 deletions

View File

@@ -419,6 +419,7 @@ func (c *OrderManager) ExportOrders(ctx *jxcontext.Context, fromDateStr, toDateS
}, ",")
if order == nil || v.ID != order.ID {
order = v
v.CourierVendorName = model.VendorChineseNames[v.WaybillVendorID]
v.Status2 = model.OrderStatusName[v.Status]
v.SkuInfo = skuStr
orders2 = append(orders2, v)
@@ -453,6 +454,7 @@ func (c *OrderManager) ExportOrders(ctx *jxcontext.Context, fromDateStr, toDateS
"waybillVendorID",
"orderCreatedAt",
"orderFinishedAt",
"courierVendorName",
"courierName",
"courierMobile",
"courierMobile",

View File

@@ -16,6 +16,7 @@ type GoodsOrderExt struct {
CourierName string `orm:"size(32)" json:"courierName"`
CourierMobile string `orm:"size(32)" json:"courierMobile"`
CurrentConsigneeMobile string `orm:"-" json:"currentConsigneeMobile"`
CourierVendorName string `json:"courierVendorName"`
Status2 string `json:"status2"`
ActualFee int64 `json:"actualFee"` // 实际要支付给快递公司的费用