Commit bc8af3b6 by 泽锋 李

fix

parent cb165566
......@@ -1719,8 +1719,17 @@ left join dc_base_warehouse as tdb on t1.warehouse_code = tdb.warehouse_code whe
{
if (!string.IsNullOrWhiteSpace(search_data.platform_type))
{
sql += " and t1.platform_type = @platform_type ";
parameters.Add("platform_type",search_data.platform_type);
if("amazon".Equals(search_data.platform_type, StringComparison.OrdinalIgnoreCase))
{
sql += " and t1.platform_type in @platform_types ";
parameters.Add("platform_types", new List<string> { "Amazon", "FBA" });
}
else
{
sql += " and t1.platform_type = @platform_type ";
parameters.Add("platform_type", search_data.platform_type);
}
}
if (!string.IsNullOrWhiteSpace(search_data.warehousetype))
{
......
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