From 86aae76980bde2e9d244140013c5a4f63718b415 Mon Sep 17 00:00:00 2001 From: gazebo Date: Sun, 30 Sep 2018 19:18:00 +0800 Subject: [PATCH] - fix key name for ExportMTWaybills --- business/jxcallback/orderman/orderman_ext.go | 24 ++++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index d79c4c9b4..9d695cdf0 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -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", }, }, }