Commit 1f6d6ff1 by guanzhenshan

不合理分析的清货判断改为判断sku是否停售

parent ee6bf84f
......@@ -329,9 +329,9 @@ namespace Bailun.DC.MonthSalePutin
var sql = @"";
//是否清货
sql = $@"select DISTINCT t1.id from dc_mid_month_sale_putin_report t1
sql = $@"select t1.id from dc_mid_month_sale_putin_report t1
join dc_mid_month_sale_putin t2 on t1.sale_putin_id = t2.id
left join dc_base_purchase t3 on t2.bailun_sku=t3.bailun_sku and t2.warehouse_code=t3.warehouse_code and t3.create_time>'{DateTime.Now.AddMonths(-2).ToString("yyyy-MM-dd HH:mm:ss")}'
join dc_base_sku t3 on t2.bailun_sku=t3.bailun_sku and t3.status=1
where t2.`month`='{month}' and t3.create_time is null";
using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString))
{
......
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