From f824f015fbd240c17a0be2b1878c37a0080807a1 Mon Sep 17 00:00:00 2001 From: wangsheng <123456> Date: 星期日, 26 九月 2021 15:19:28 +0800 Subject: [PATCH] 1、优化重发短信记录的导出功能,仅导出重发的短信记录 2、下行及重发导出数据新增是否为补发短信和补发状态字段 --- web/web/ExportDocument.aspx.cs | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/web/web/ExportDocument.aspx.cs b/web/web/ExportDocument.aspx.cs index 0d28a08..af68933 100644 --- a/web/web/ExportDocument.aspx.cs +++ b/web/web/ExportDocument.aspx.cs @@ -302,8 +302,23 @@ this.Response.Write("<script type='text/javascript'>alert('瀵煎嚭鏁版嵁涓嶈兘澶т簬100涓囨潯锛�');location.href='GwSm.aspx';</script>"); this.Response.End(); } - DataTable dataTable = gwSmDao.LoadSpDataTable(apMid, opName, clientId, spid, mobile, sDate, beginTime, endTime, content, @int, opstat); - + + DataTable dataTable = new DataTable(); + if (this.AppContext.GetString("SendType") == "ReSend") + { + dataTable= gwSmDao.LoadSpDataTable(apMid, opName, clientId, spid, mobile, sDate, beginTime, endTime, content, @int, opstat, this.AppContext.GetString("SendType")); + } + else + { + dataTable = gwSmDao.LoadSpDataTable(apMid, opName, clientId, spid, mobile, sDate, beginTime, endTime, content, @int, opstat); + } + + //if(dataTable.Rows.Count>1000000) + //{ + // this.Response.Write("<script type='text/javascript'>alert('瀵煎嚭鏁版嵁涓嶈兘澶т簬100涓囨潯锛�');location.href='GwSm.aspx';</script>"); + // this.Response.End(); + //} + WebTool webTool = new WebTool(); Dictionary<string, string> dictionary = new Dictionary<string, string>(); dictionary["AP娑堟伅ID"] = "AP_MID"; @@ -329,6 +344,8 @@ dictionary["鐘舵�佹姤鍛婂洖鎵ф椂闂�"] = "OP_DELIVER_TIME"; dictionary["鍐呭"] = "MSG_CONTENT"; dictionary["鐘舵��"] = "STAT"; + dictionary["鐭俊绫诲瀷"] = "ResendStatus";//0==姝e父 1==琛ュ彂 + dictionary["琛ュ彂鐘舵��"] = "ResendFlag"; dictionary["鑰楁椂"] = "OUT_TIME"; webTool.Export(dataTable, dictionary, "鏃ュ織_" + sDate, this.Context.Response); } -- Gitblit v1.9.1