Commit 74ca65e2 by 泽锋 李

fix

parent a31fe0d2
......@@ -54,7 +54,7 @@ where t1.`update_time`>=@c_time
// 初始化数据才会进啦
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 EXISTS ( select * from dc_report_profit_analysis as ta where t1.warehouse_code =ta.warehouse_code and t1.bailun_sku =ta.bailun_sku ) ";
//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 ";
return _connection.Query<temp_sku_dto>(sql, parameters,commandTimeout: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