Commit db526318 by xiezhigang

批量查询

parent a03d6508
......@@ -265,3 +265,4 @@ Web/UploadFiles/BeautyProduct/*
Web/App_Data/*
Web/Properties/PublishProfiles/*.pubxml
Web/UploadFiles/*
/WebApi/ExprotFile/ExprotProduct
......@@ -228,20 +228,21 @@ namespace DbConn
}
else
{
string[] searchs = objCon.search.Split(',');
if (objCon.searchType == 1)
cdnSql.Append(" and s_sku = @0", objCon.search);
cdnSql.Append(" and s_sku in (@search)", new { search = searchs });
else if (objCon.searchType == 2)
cdnSql.Append(" and s_product = @0", objCon.search);
cdnSql.Append(" and s_product in (@search)", new { search = searchs });
else if (objCon.searchType == 3)
cdnSql.Append(" and s_ctitle = @0", objCon.search);
cdnSql.Append(" and s_ctitle in (@search)", new { search = searchs });
else if (objCon.searchType == 4)
cdnSql.Append(" and s_goods_code = @0", objCon.search);
cdnSql.Append(" and s_goods_code in (@search)", new { search = searchs });
else if (objCon.searchType == 5)
cdnSql.Append(" and s_product_code = @0", objCon.search);
cdnSql.Append(" and s_product_code in (@search)", new { search = searchs });
else if (objCon.searchType == 6)
cdnSql.Append(" and s_id in (select sp_sid from yt_product_supplier where sp_deliver_name = @0)", objCon.search);
cdnSql.Append(" and s_id in (select sp_sid from yt_product_supplier where sp_deliver_name in (@search))", new { search = searchs });
else if (objCon.searchType == 601)
cdnSql.Append(" and s_id in (select is_sid from dv_import_sku where is_custom_product = @0)", objCon.search);
cdnSql.Append(" and s_id in (select is_sid from dv_import_sku where is_custom_product in (@search))", new { search = searchs });
}
}
if (objCon.cateId > 0)
......
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