Commit 317bec10 by jianshuqin

修复BUG:退款流水(财务)导出格式

parent 171214e6
...@@ -8,6 +8,7 @@ using System.Collections.Generic; ...@@ -8,6 +8,7 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Text; using System.Text;
using System.Linq; using System.Linq;
using Newtonsoft.Json.Linq;
namespace Bailun.DC.Web.Areas.Component.Controllers namespace Bailun.DC.Web.Areas.Component.Controllers
{ {
...@@ -23,7 +24,7 @@ namespace Bailun.DC.Web.Areas.Component.Controllers ...@@ -23,7 +24,7 @@ namespace Bailun.DC.Web.Areas.Component.Controllers
switch (Request.Method) switch (Request.Method)
{ {
case "GET": case "GET":
Request.Query.Keys.ForEach(l => sqlparam.Add(l, Request.Query[l])); Request.Query.Keys.ForEach(l => sqlparam.Add(l, (Request.Query[l].Count > 0 ? (object)Request.Query[l].ToArray() : Request.Query[l])));
break; break;
case "POST": case "POST":
if (Request.ContentType.Contains("multipart/form-data")) if (Request.ContentType.Contains("multipart/form-data"))
...@@ -38,7 +39,7 @@ namespace Bailun.DC.Web.Areas.Component.Controllers ...@@ -38,7 +39,7 @@ namespace Bailun.DC.Web.Areas.Component.Controllers
stream.Read(buffer, 0, buffer.Length); stream.Read(buffer, 0, buffer.Length);
string content = Encoding.UTF8.GetString(buffer); string content = Encoding.UTF8.GetString(buffer);
IDictionary<string, object> dic = JsonConvert.DeserializeObject<IDictionary<string, object>>(content); IDictionary<string, object> dic = JsonConvert.DeserializeObject<IDictionary<string, object>>(content);
dic.ForEach(l => sqlparam.Add(l.Key, dic[l.Key])); dic.ForEach(l => sqlparam.Add(l.Key, dic[l.Key] is JArray ? string.Join(",", (JArray)dic[l.Key]) : dic[l.Key]));
} }
} }
break; break;
...@@ -56,7 +57,7 @@ namespace Bailun.DC.Web.Areas.Component.Controllers ...@@ -56,7 +57,7 @@ namespace Bailun.DC.Web.Areas.Component.Controllers
[HttpGet] [HttpGet]
public JsonResult Get(int? id = null,string code = null) public JsonResult Get(int? id = null, string code = null)
{ {
ResultDTO result = new ResultDTO(); ResultDTO result = new ResultDTO();
try try
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
.el-form-control .el-breadcrumb__item .el-button { .el-form-control .el-breadcrumb__item .el-button {
width: 35px; width: 35px;
padding: 0px; padding: 2px 0px 0px 0px;
margin-left: -4px; margin-left: -4px;
height: 32px; height: 32px;
border-top-left-radius: 0px; border-top-left-radius: 0px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment