- fix key name for ExportMTWaybills
This commit is contained in:
@@ -20,8 +20,8 @@ const (
|
|||||||
|
|
||||||
type tMTWaybillExport struct {
|
type tMTWaybillExport struct {
|
||||||
model.Waybill
|
model.Waybill
|
||||||
StoreName string
|
StoreName string `json:"storeName"`
|
||||||
StoreID int `orm:"column(store_id)"`
|
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) {
|
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",
|
Title: "Sheet1",
|
||||||
Data: waybills,
|
Data: waybills,
|
||||||
CaptionList: []string{
|
CaptionList: []string{
|
||||||
"VendorWaybillID",
|
"vendorWaybillID",
|
||||||
"WaybillVendorID",
|
"waybillVendorID",
|
||||||
"VendorOrderID",
|
"vendorOrderID",
|
||||||
"OrderVendorID",
|
"orderVendorID",
|
||||||
"StoreName",
|
"storeName",
|
||||||
"StoreID",
|
"storeID",
|
||||||
"CourierName",
|
"courierName",
|
||||||
"Status",
|
"status",
|
||||||
"DesiredFee",
|
"desiredFee",
|
||||||
"WaybillCreatedAt",
|
"waybillCreatedAt",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user