导出订单增加字段

This commit is contained in:
苏尹岚
2020-04-29 15:32:52 +08:00
parent 21ddced471
commit 00285a58ba

View File

@@ -331,6 +331,7 @@ func (c *OrderManager) ExportOrders(ctx *jxcontext.Context, fromDateStr, toDateS
}
}
if v.SkuCount2 > 1 {
if v.SkuEarningPrice != 0 {
skuStr := strings.Join([]string{
utils.Int2Str(v.SkuID),
utils.Int2Str(v.SkuCount2),
@@ -360,6 +361,7 @@ func (c *OrderManager) ExportOrders(ctx *jxcontext.Context, fromDateStr, toDateS
} else {
order.SkuInfo2 += ";" + skuStr + ";" + skuStr2
}
}
} else {
order.SkuInfo2 = ""
}
@@ -402,6 +404,7 @@ func (c *OrderManager) ExportOrders(ctx *jxcontext.Context, fromDateStr, toDateS
"waybillFinishedAt",
"status2",
"skuInfo",
"skuInfo2",
"waybillTipMoney",
},
}