1.修改租赁订单导出接口,导出excel增加商品串码列数据。
This commit is contained in:
parent
23afe85436
commit
5e37171e67
|
@ -618,7 +618,7 @@ func OrderListExport(list []Order) (string, error) {
|
||||||
fileName := time.Now().Format(TimeFormat) + "租赁订单" + ".xlsx"
|
fileName := time.Now().Format(TimeFormat) + "租赁订单" + ".xlsx"
|
||||||
fmt.Println("url fileName:", url+fileName)
|
fmt.Println("url fileName:", url+fileName)
|
||||||
|
|
||||||
title := []interface{}{"租赁ID", "用户ID", "会员剩余时长", "取货方式", "状态", "取货码", "实付款", "下单时间", "租赁卡ID", "游戏卡ID",
|
title := []interface{}{"租赁ID", "用户ID", "会员剩余时长", "取货方式", "状态", "取货码", "实付款", "下单时间", "游戏卡ID",
|
||||||
"游戏名称", "游戏卡状态"}
|
"游戏名称", "游戏卡状态"}
|
||||||
cell, _ := excelize.CoordinatesToCellName(1, 1)
|
cell, _ := excelize.CoordinatesToCellName(1, 1)
|
||||||
if err = streamWriter.SetRow(cell, title); err != nil {
|
if err = streamWriter.SetRow(cell, title); err != nil {
|
||||||
|
@ -675,10 +675,12 @@ func OrderListExport(list []Order) (string, error) {
|
||||||
list[rowId].PickupCode,
|
list[rowId].PickupCode,
|
||||||
list[rowId].PayPrice,
|
list[rowId].PayPrice,
|
||||||
list[rowId].PayTime,
|
list[rowId].PayTime,
|
||||||
list[rowId].OrderCards[i].ID,
|
//list[rowId].OrderCards[i].ID, // 租赁卡ID不导出
|
||||||
list[rowId].OrderCards[i].GameCardId,
|
list[rowId].OrderCards[i].GameCardId,
|
||||||
list[rowId].OrderCards[i].GameName,
|
list[rowId].OrderCards[i].GameName,
|
||||||
cardState}
|
cardState,
|
||||||
|
list[rowId].OrderCards[i].SerialNumber,
|
||||||
|
}
|
||||||
|
|
||||||
cell, _ := excelize.CoordinatesToCellName(1, nExcelStartRow+2)
|
cell, _ := excelize.CoordinatesToCellName(1, nExcelStartRow+2)
|
||||||
if err := streamWriter.SetRow(cell, row); err != nil {
|
if err := streamWriter.SetRow(cell, row); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user