|
@@ -489,6 +489,7 @@ func OrderOutput(c *gin.Context) { |
|
|
} |
|
|
} |
|
|
for _, vv := range orderGoods { |
|
|
for _, vv := range orderGoods { |
|
|
data[enterpriseName][v.Oid]["date"] = v.CreateAt.Format("2006-01-02") |
|
|
data[enterpriseName][v.Oid]["date"] = v.CreateAt.Format("2006-01-02") |
|
|
|
|
|
data[enterpriseName][v.Oid]["send_date"] = gjson.Get(v.BuyInfo, "date").String() |
|
|
data[enterpriseName][v.Oid]["goods_name"] = vv.GoodsTitle |
|
|
data[enterpriseName][v.Oid]["goods_name"] = vv.GoodsTitle |
|
|
skuData := make([]md.Sku, 0) |
|
|
skuData := make([]md.Sku, 0) |
|
|
json.Unmarshal([]byte(vv.Sku), &skuData) |
|
|
json.Unmarshal([]byte(vv.Sku), &skuData) |
|
@@ -523,6 +524,7 @@ func OrderOutput(c *gin.Context) { |
|
|
vv["goods_name"], |
|
|
vv["goods_name"], |
|
|
vv["sku_str"], |
|
|
vv["sku_str"], |
|
|
vv["num"], |
|
|
vv["num"], |
|
|
|
|
|
vv["send_date"], |
|
|
}) |
|
|
}) |
|
|
xlsx.SetRowHeight("Sheet1", j, 18) |
|
|
xlsx.SetRowHeight("Sheet1", j, 18) |
|
|
total += utils.StrToInt(vv["num"]) |
|
|
total += utils.StrToInt(vv["num"]) |
|
|