Commit 9bf80fc2 by 泽锋 李

fix

parent c1213d7f
...@@ -53,13 +53,10 @@ where t1.`update_time`>=@c_time ...@@ -53,13 +53,10 @@ where t1.`update_time`>=@c_time
{ {
// 初始化数据才会进啦 // 初始化数据才会进啦
sql += " and t2.hq_type!='国内仓' "; sql += " and t2.hq_type!='国内仓' ";
sql += " and not EXISTS ( select * from dc_average_warehouse as ta where t1.warehouse_code =ta.warehouse_code and t1.bailun_sku =ta.bailun_sku and (ta.update_time>'2021-03-12' ) ) "; //sql += " and not EXISTS ( select * from dc_average_warehouse as ta where t1.warehouse_code =ta.warehouse_code and t1.bailun_sku =ta.bailun_sku and (ta.update_time>'2021-03-12' ) ) ";
sql += " and EXISTS ( select * from dc_report_profit_analysis as ta where t1.warehouse_code =ta.warehouse_code and t1.bailun_sku =ta.bailun_sku ) ";
} }
sql += " group by t1.bailun_sku,t1.warehouse_code "; sql += " group by t1.bailun_sku,t1.warehouse_code ";
if (is_transfer)
{
sql += " order by t1.usable_stock desc";
}
return _connection.Query<temp_sku_dto>(sql, parameters,commandTimeout:0); return _connection.Query<temp_sku_dto>(sql, parameters,commandTimeout:0);
......
...@@ -62,7 +62,7 @@ left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code where ...@@ -62,7 +62,7 @@ left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code where
return obj.AsList(); return obj.AsList();
} }
catch (Exception) catch (Exception ex)
{ {
return list; return list;
} }
......
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