- fix key name for ExportMTWaybills

This commit is contained in:
gazebo
2018-09-30 19:18:00 +08:00
parent d0df68740e
commit 86aae76980

View File

@@ -20,8 +20,8 @@ const (
type tMTWaybillExport struct {
model.Waybill
StoreName string
StoreID int `orm:"column(store_id)"`
StoreName string `json:"storeName"`
StoreID int `json:"storeID" orm:"column(store_id)"`
}
func (c *OrderManager) GetStoreOrderInfo(storeID string, lastHours int, fromStatus, toStatus, offset, pageSize int) (orders []*model.GoodsOrderExt, err error) {
@@ -200,16 +200,16 @@ func (c *OrderManager) ExportMTWaybills(fromDateStr, toDateStr string) (excelCon
Title: "Sheet1",
Data: waybills,
CaptionList: []string{
"VendorWaybillID",
"WaybillVendorID",
"VendorOrderID",
"OrderVendorID",
"StoreName",
"StoreID",
"CourierName",
"Status",
"DesiredFee",
"WaybillCreatedAt",
"vendorWaybillID",
"waybillVendorID",
"vendorOrderID",
"orderVendorID",
"storeName",
"storeID",
"courierName",
"status",
"desiredFee",
"waybillCreatedAt",
},
},
}