@@ -1439,12 +1443,13 @@ where t1.gmt_modified>=@btime and t1.gmt_modified<=@etime
...
@@ -1439,12 +1443,13 @@ where t1.gmt_modified>=@btime and t1.gmt_modified<=@etime
{
{
#regionMyRegion
#regionMyRegion
varquantity_safe_inventory=_connection.QueryFirstOrDefault<int?>(" select quantity_safe_inventory from dc_base_forecast_history where warehouse_code=@warehouse_code and bailun_sku=@bailun_sku and date_str=@date_str limit 1 ",new
vardc_base_forecast_historydata=_connection.QueryFirstOrDefault<dc_base_forecast_history>(" select * from dc_base_forecast_history where warehouse_code=@warehouse_code and bailun_sku=@bailun_sku and date_str=@date_str limit 1 ",new
@@ -1486,13 +1491,12 @@ where t1.gmt_modified>=@btime and t1.gmt_modified<=@etime
...
@@ -1486,13 +1491,12 @@ where t1.gmt_modified>=@btime and t1.gmt_modified<=@etime
date=this_time,
date=this_time,
val=Math.Round(modalData.unit_price??0,1)
val=Math.Round(modalData.unit_price??0,1)
});
});
vardc_base_forecast_historydata=_connection.QueryFirstOrDefault<dc_base_forecast_history>(" select * from dc_base_forecast_history where warehouse_code=@warehouse_code and bailun_sku=@bailun_sku and date_str=@date_str limit 1 ",new
@@ -1504,13 +1508,7 @@ where t1.gmt_modified>=@btime and t1.gmt_modified<=@etime
...
@@ -1504,13 +1508,7 @@ where t1.gmt_modified>=@btime and t1.gmt_modified<=@etime
date=this_time,
date=this_time,
val=modalData.quantity_final_advise_amount
val=modalData.quantity_final_advise_amount
});
});
modalData.purchase_quantity=_connection.QueryFirstOrDefault<decimal?>(" select sum(quantity_purchase) from dc_base_purchase_details where warehouse_into_code=@warehouse_into_code and bailun_sku=@bailun_sku and status!=-1 and create_time>=@btime and create_time<=@etime ",new