Commit ec6b2bc7 by lizefeng

优化实时库存内部编码查询

parent 97fb5133
......@@ -333,15 +333,15 @@ left join dc_base_warehouse as dbw on t1.warehouse_code = dbw.warehouse_code
if (!string.IsNullOrWhiteSpace(product_inner_code))
{
sql += " and t1.product_inner_code like @product_inner_code ";
countSql += " and t1.product_inner_code like @product_inner_code ";
sql += " and t3.product_inner_code like @product_inner_code ";
countSql += " and t3.product_inner_code like @product_inner_code ";
parameters.Add("product_inner_code", $"%{product_inner_code}%");
}
if (!string.IsNullOrWhiteSpace(sku_title_cn))
{
sql += " and t1.sku_title_cn like @sku_title_cn ";
countSql += " and t1.sku_title_cn like @sku_title_cn ";
sql += " and t3.sku_title_cn like @sku_title_cn ";
countSql += " and t3.sku_title_cn like @sku_title_cn ";
parameters.Add("sku_title_cn", $"%{sku_title_cn}%");
}
......
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