aa
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user