Commit 317bec10 by jianshuqin

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

parent 171214e6
......@@ -8,6 +8,7 @@ using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Linq;
using Newtonsoft.Json.Linq;
namespace Bailun.DC.Web.Areas.Component.Controllers
{
......@@ -23,7 +24,7 @@ namespace Bailun.DC.Web.Areas.Component.Controllers
switch (Request.Method)
{
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;
case "POST":
if (Request.ContentType.Contains("multipart/form-data"))
......@@ -38,7 +39,7 @@ namespace Bailun.DC.Web.Areas.Component.Controllers
stream.Read(buffer, 0, buffer.Length);
string content = Encoding.UTF8.GetString(buffer);
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;
......@@ -56,7 +57,7 @@ namespace Bailun.DC.Web.Areas.Component.Controllers
[HttpGet]
public JsonResult Get(int? id = null,string code = null)
public JsonResult Get(int? id = null, string code = null)
{
ResultDTO result = new ResultDTO();
try
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -61,7 +61,7 @@
.el-form-control .el-breadcrumb__item .el-button {
width: 35px;
padding: 0px;
padding: 2px 0px 0px 0px;
margin-left: -4px;
height: 32px;
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