Commit 63c140a9 by guanzhenshan

解决数据仓搜索sku出错的问题

parent 8601791b
...@@ -43,9 +43,9 @@ namespace Bailun.DC.Services ...@@ -43,9 +43,9 @@ namespace Bailun.DC.Services
if (arr.Count > 0) if (arr.Count > 0)
{ {
sql += " and t1.sku in ('@searchkey')"; sql += " and t1.sku in @searchkey";
countsql += " and t1.sku in ('@searchkey')"; countsql += " and t1.sku in @searchkey";
sqlparams.Add("searchkey", string.Join("','",arr)); sqlparams.Add("searchkey", arr.ToArray());
} }
} }
...@@ -203,8 +203,8 @@ namespace Bailun.DC.Services ...@@ -203,8 +203,8 @@ namespace Bailun.DC.Services
if (arr.Count > 0) if (arr.Count > 0)
{ {
sql += " and t1.sku in ('@searchkey')"; sql += " and t1.sku in @searchkey";
sqlparams.Add("searchkey", string.Join("','", arr)); sqlparams.Add("searchkey", arr.ToArray());
} }
} }
......
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