|
@@ -770,7 +770,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
/// 导出Excel
|
|
/// 导出Excel
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
|
- public string ExportExcel(Orders data, string UserIdMakerCode, string UserIdRealName, string PayModeSelect, string StoreIdStoreNo, string StoreIdStoreName, string RefundStatusSelect, string DeliveryTypeSelect, string SendStatusSelect, string ProductIdSelect, string StoreTypeSelect, string StoreUserIdMakerCode, string StoreUserIdRealName, string PayStatusSelect, string RedisKey = "ExportKey")
|
|
|
|
|
|
|
+ public string ExportExcel(Orders data, string UserIdMakerCode, string UserIdRealName, string PayModeSelect, string StoreIdStoreNo, string StoreIdStoreName, string RefundStatusSelect, string DeliveryTypeSelect, string SendStatusSelect, string ProductIdSelect, string StoreTypeSelect, string StoreUserIdMakerCode, string StoreUserIdRealName, string PayStatusSelect, string PayDateData, string RedisKey = "ExportKey")
|
|
|
{
|
|
{
|
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
Fields.Add("CreateDate", "3"); //时间
|
|
Fields.Add("CreateDate", "3"); //时间
|
|
@@ -850,6 +850,14 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
{
|
|
|
condition += " and PayStatus=" + PayStatusSelect;
|
|
condition += " and PayStatus=" + PayStatusSelect;
|
|
|
}
|
|
}
|
|
|
|
|
+ //支付时间
|
|
|
|
|
+ if (!string.IsNullOrEmpty(PayDateData))
|
|
|
|
|
+ {
|
|
|
|
|
+ string[] datelist = PayDateData.Split(new string[] { " - " }, StringSplitOptions.None);
|
|
|
|
|
+ string start = datelist[0];
|
|
|
|
|
+ string end = datelist[1];
|
|
|
|
|
+ condition += " and PayDate>='" + start + " 00:00:00' and PayDate<='" + end + " 23:59:59'";
|
|
|
|
|
+ }
|
|
|
//创建工作薄
|
|
//创建工作薄
|
|
|
var workbook = new XSSFWorkbook();
|
|
var workbook = new XSSFWorkbook();
|
|
|
//创建表
|
|
//创建表
|
|
@@ -1126,7 +1134,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
{
|
|
|
condition += " and PayStatus=" + PayStatusSelect;
|
|
condition += " and PayStatus=" + PayStatusSelect;
|
|
|
}
|
|
}
|
|
|
- Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).IndexData("Orders", Fields, "Id desc", "0", 1, 20000, condition, "UserId,OrderNo,RealName,Mobile,TotalPrice,Areas,Address,ErpName,ErpCode,SendDate,PayMode,TradeNo,StoreId,RefundStatus,DeliveryType,SendStatus,ProductId,StoreContact,StoreType,StoreUserId,TopUserId,PayStatus,BuyCount,Remark,Id", false);
|
|
|
|
|
|
|
+ Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).IndexData("Orders", Fields, "Id desc", "0", 1, 20000, condition, "UserId,OrderNo,RealName,Mobile,TotalPrice,Areas,Address,ErpName,ErpCode,SendDate,PayMode,PayDate,TradeNo,StoreId,RefundStatus,DeliveryType,SendStatus,ProductId,StoreContact,StoreType,StoreUserId,TopUserId,PayStatus,BuyCount,Remark,Id", false);
|
|
|
List<Dictionary<string, object>> diclist = obj["data"] as List<Dictionary<string, object>>;
|
|
List<Dictionary<string, object>> diclist = obj["data"] as List<Dictionary<string, object>>;
|
|
|
foreach (Dictionary<string, object> dic in diclist)
|
|
foreach (Dictionary<string, object> dic in diclist)
|
|
|
{
|
|
{
|
|
@@ -1220,6 +1228,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
ReturnFields.Add("ErpCode", "运单号");
|
|
ReturnFields.Add("ErpCode", "运单号");
|
|
|
ReturnFields.Add("SendDate", "发货时间");
|
|
ReturnFields.Add("SendDate", "发货时间");
|
|
|
ReturnFields.Add("PayMode", "支付方式");
|
|
ReturnFields.Add("PayMode", "支付方式");
|
|
|
|
|
+ ReturnFields.Add("PayDate", "支付时间");
|
|
|
ReturnFields.Add("TradeNo", "支付交易号");
|
|
ReturnFields.Add("TradeNo", "支付交易号");
|
|
|
ReturnFields.Add("StoreIdStoreNo", "仓库编号");
|
|
ReturnFields.Add("StoreIdStoreNo", "仓库编号");
|
|
|
ReturnFields.Add("StoreIdStoreName", "仓库名称");
|
|
ReturnFields.Add("StoreIdStoreName", "仓库名称");
|