mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-03-19 22:47:15 +00:00
the abandoned fba repricing feature
* Merge master into branch (#15) * Bug fix * Bug fix when retriving shipment stock status id * Various bug fixs and improvements to stock SKU reconciliation * Last MWS report import date time saved * master into branch (#16) * Bug fix * Bug fix when retriving shipment stock status id * Various bug fixs and improvements to stock SKU reconciliation * Last MWS report import date time saved * wip * wip * wip * wip * wip * some extra tidying up to get it to complie and the main merge is complete * wip
This commit is contained in:
@@ -50,6 +50,8 @@ namespace bnhtrade.Core.Data.Database
|
||||
return;
|
||||
}
|
||||
|
||||
var distinctList = orValueList.Distinct().ToList();
|
||||
|
||||
string sqlWhere = @"
|
||||
";
|
||||
|
||||
@@ -61,7 +63,7 @@ namespace bnhtrade.Core.Data.Database
|
||||
sqlWhere += " " + columnReference + " IN ( ";
|
||||
|
||||
var paramters = new Dictionary<string, object>();
|
||||
int listCount = orValueList.Count();
|
||||
int listCount = distinctList.Count();
|
||||
for (int i = 0; i < listCount; i++, parameterCount++)
|
||||
{
|
||||
if (i > 0)
|
||||
@@ -71,7 +73,7 @@ namespace bnhtrade.Core.Data.Database
|
||||
|
||||
string param = "@parameter" + parameterCount;
|
||||
sqlWhere += param;
|
||||
paramters.Add(param, orValueList[i]);
|
||||
paramters.Add(param, distinctList[i]);
|
||||
}
|
||||
sqlWhere += " )";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user