Commit 81b4e3bc by guanzhenshan

同上

parent 5503dcf5
...@@ -272,7 +272,7 @@ namespace Bailun.DC.Services ...@@ -272,7 +272,7 @@ namespace Bailun.DC.Services
/// </summary> /// </summary>
/// <param name="platformsku">平台SKU列表</param> /// <param name="platformsku">平台SKU列表</param>
/// <returns></returns> /// <returns></returns>
public List<dc_base_sku_mapping> GetBailunSkuByPlatformSku(List<string> platformsku) public List<dc_base_sku_mapping> GetBailunSkuByPlatformSku(List<string> platformsku,string platform)
{ {
using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString)) using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString))
{ {
...@@ -281,7 +281,7 @@ namespace Bailun.DC.Services ...@@ -281,7 +281,7 @@ namespace Bailun.DC.Services
cn.Open(); cn.Open();
} }
var sql = $"select t1.bailun_sku,t1.platform_sku,t1.count from dc_base_sku_mapping t1 where t1.platform_sku in ('{string.Join("','", platformsku)}')"; var sql = $"select t1.bailun_sku,t1.platform_sku,t1.count from dc_base_sku_mapping t1 where t1.platform_sku in ('{string.Join("','", platformsku)}') and t1.has_deleted=0 and t1.platform='{platform}' ";
return cn.Query<dc_base_sku_mapping>(sql).AsList(); return cn.Query<dc_base_sku_mapping>(sql).AsList();
......
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