From e8caf1468de7b113295875b092011eb4fb0c4161 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 13 Sep 2021 15:09:59 +0800 Subject: [PATCH] aa --- business/jxcallback/orderman/order.go | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index ed2caaff3..cf5469d80 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -2318,19 +2318,19 @@ func BuildFakeMatterOrder() { func ExportOrderWithSku(ctx *jxcontext.Context, orders []*model.GoodsOrderExt) (downloadURL string, err error) { type ExportOrderWithSkuExt struct { - StoreName string `json:"门店名"` - VendorName string `json:"平台名"` - OrderCreatedAt string `json:"下单时间"` - VendorOrderID string `orm:"column(vendor_order_id)" json:"订单号"` - EarningPrice int `json:"订单结算"` - SkuName string `json:"商品名"` - CategoryNameFst string `json:"一级分类名"` - CategoryNameSnd string `json:"二级分类名"` - ShopPrice int `json:"商品报价"` - Count int `json:"数量"` - EarningPriceSku int `json:"商品结算"` - Upc string `json:"条形码"` - IsAfs int `json:"是否已售后"` + StoreName string `json:"门店名"` + VendorName string `json:"平台名"` + OrderCreatedAt string `json:"下单时间"` + VendorOrderID string `orm:"column(vendor_order_id)" json:"订单号"` + EarningPrice float64 `json:"订单结算"` + SkuName string `json:"商品名"` + CategoryNameFst string `json:"一级分类名"` + CategoryNameSnd string `json:"二级分类名"` + ShopPrice float64 `json:"商品报价"` + Count int `json:"数量"` + EarningPriceSku float64 `json:"商品结算"` + Upc string `json:"条形码"` + IsAfs int `json:"是否已售后"` } var ( db = dao.GetDB() @@ -2373,6 +2373,7 @@ func ExportOrderWithSku(ctx *jxcontext.Context, orders []*model.GoodsOrderExt) ( ` sqlParams := []interface{}{model.YES, vendorOrderIDs} dao.GetRows(db, &results, sql, sqlParams) + fmt.Println(utils.Format4Output(results, true)) var sheetList []*excel.Obj2ExcelSheetConfig excelConf := &excel.Obj2ExcelSheetConfig{ Title: "sheet1",