From 7b4cbe2e795aa25395339f55acb6a719fb7152bc Mon Sep 17 00:00:00 2001 From: wanyongkang <937888580@qq.com> Date: Thu, 5 Nov 2020 17:17:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B7=98=E5=AE=9D=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E8=A1=A8=E3=80=81=E5=AE=98=E7=BD=91=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=98=8E=E7=BB=86=E8=A1=A8=20=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AF=BC=E5=87=BA=E9=97=AE=E9=A2=98=E3=80=91?= =?UTF-8?q?=20https://www.tapd.cn/68986868/prong/stories/view/116898686800?= =?UTF-8?q?1000094?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/TaoBaoController.cs | 22 +++++++++---------- .../Controllers/ProductOrderController.cs | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Services/Hncore.Pass.Sells/Controllers/TaoBaoController.cs b/Services/Hncore.Pass.Sells/Controllers/TaoBaoController.cs index dd59262..5b2d32b 100644 --- a/Services/Hncore.Pass.Sells/Controllers/TaoBaoController.cs +++ b/Services/Hncore.Pass.Sells/Controllers/TaoBaoController.cs @@ -34,7 +34,7 @@ namespace Hncore.Pass.Live.Controllers } /// - /// 查询 + /// 锟斤拷询 /// /// /// @@ -78,19 +78,19 @@ namespace Hncore.Pass.Live.Controllers }; var title = new List(){ - new ExcelTitle { Property = "Created", Title = "创建日期" ,Format=(val)=>((DateTime) val).ToString("yyyy-MM-dd hh:mm:ss")}, - new ExcelTitle { Property = "Tid", Title = "订单号" }, - new ExcelTitle { Property = "SellerNick", Title = "销售人" }, - new ExcelTitle { Property = "BuyerNick", Title = "购买人" }, - new ExcelTitle { Property = "Phone", Title = "购买人手机号" }, - new ExcelTitle { Property = "Price", Title = "单价" }, - new ExcelTitle { Property = "Num", Title = "数量" }, - new ExcelTitle { Property = "TotalFee", Title = "订单金额" }, - new ExcelTitle { Property = "Payment", Title = "实付金额" } + new ExcelTitle { Property = "CreateDate", Title = "鏀粯鏃堕棿" ,Format=(val)=>((DateTime) val).ToString("yyyy-MM-dd HH:mm:ss")}, + new ExcelTitle { Property = "Tid", Title = "璁㈠崟鍙" }, + new ExcelTitle { Property = "SellerNick", Title = "浜у搧" }, + new ExcelTitle { Property = "BuyerNick", Title = "璐拱浜" }, + new ExcelTitle { Property = "Phone", Title = "鐐硅瘽" }, + new ExcelTitle { Property = "Price", Title = "鍗曚环" }, + new ExcelTitle { Property = "Num", Title = "鏁伴噺" }, + new ExcelTitle { Property = "TotalFee", Title = "璁㈠崟閲戦" }, + new ExcelTitle { Property = "Payment", Title = "瀹炰粯閲戦" } }; var fileBytes = ExcelHelper.ExportListToExcel(data, title); - var fileName = $"{DateTime.Now.ToString("yyyyMMdd")}淘宝订单明细.xlsx"; + var fileName = $"{DateTime.Now.ToString("yyyyMMdd")}娣樺疂璁㈠崟.xlsx"; Response.Headers.Add("X-Suggested-Filename", fileName.UrlEncode()); return File(fileBytes, "application/octet-stream", fileName); diff --git a/Services/Hncore.Pass.Vpn/Controllers/ProductOrderController.cs b/Services/Hncore.Pass.Vpn/Controllers/ProductOrderController.cs index 8b21552..1378b9f 100644 --- a/Services/Hncore.Pass.Vpn/Controllers/ProductOrderController.cs +++ b/Services/Hncore.Pass.Vpn/Controllers/ProductOrderController.cs @@ -345,7 +345,7 @@ namespace Hncore.Pass.Vpn.Controllers }; var title = new List(){ - new ExcelTitle { Property = "CreateTime", Title = "鍒涘缓鏃ユ湡" , Format=(val)=>((DateTime) val).ToString("yyyy-MM-dd hh:mm:ss") }, + new ExcelTitle { Property = "UpdateTime", Title = "鏀粯鏃ユ湡" , Format=(val)=>((DateTime) val).ToString("yyyy-MM-dd HH:mm:ss") }, new ExcelTitle { Property = "OrderNo", Title = "璁㈠崟鍙" }, new ExcelTitle { Property = "OrderType", Title = "绫诲瀷", Format=(val)=>((OrderType)val).GetEnumDisplayName() }, new ExcelTitle { Property = "UserName", Title = "鐢ㄦ埛" },