@@ -1582,7 +1582,7 @@ and start_date<=@end_date and end_date>=@start_date
{
varsql=@"select t1.*,t3.warehouse_name from dc_auto_sales_forecast_config as t1 left join dc_base_warehouse as t3 on t1.warehouse_code = t3.warehouse_code where 1 = 1 ";
@@ -1679,7 +1679,7 @@ and start_date<=@end_date and end_date>=@start_date
vardata=_connection.QueryFirstOrDefault<dc_auto_sales_forecast_config_dto>("select * from dc_auto_sales_forecast_config where id=@id ",new{id=id});
data.bailun_skus=string.Join(",",_connection.Query<string>(" select bailun_sku from dc_auto_sales_forecast_sku_config where config_id=@config_id ",new{config_id=id}).ToList());
data.product_codes=string.Join(",",_connection.Query<string>(" select product_code from dc_auto_sales_forecast_product_code_config where config_id=@config_id ",new{config_id=id}).ToList());
data.stages=_connection.Query<dc_auto_sales_forecast_stage_config>(" select * from dc_auto_sales_forecast_stage_config where config_id=@config_id ",new{config_id=id}).OrderBy(s=>s.index).ToList();
data.stages=_connection.Query<dc_auto_sales_forecast_stage_config>(" select * from dc_auto_sales_forecast_stage_config where config_id=@config_id ",new{config_id=id}).OrderBy(s=>s.index).ToList();
returndata;
}
...
...
@@ -1690,7 +1690,7 @@ and start_date<=@end_date and end_date>=@start_date
/// <param name="id"></param>
publicstaticvoidDelSalesForecastConfig(intid)
{
_connection.Execute(" update dc_auto_sales_forecast_config set is_delete=1,delete_time=now() where id=@id and is_delete=0 ",new{id=id});
_connection.Execute(" update dc_auto_sales_forecast_config set is_delete=1,delete_time=now() where id=@id and is_delete=0 ",new{id=id});
}
#endregion
...
...
@@ -1730,7 +1730,7 @@ and start_date<=@end_date and end_date>=@start_date
try
{
m.platform_type=(m.platform_type??"");
m.platform_type=(m.platform_type??"");
m.web_stite=(m.web_stite??"");
if(m.id>0)
{
...
...
@@ -1914,7 +1914,7 @@ where 1 = 1 ";
if(m.id>0)
{
varold_data=_connection.QueryFirstOrDefault<dc_auto_return_goods_config>("select * from dc_auto_return_goods_config where id=@id ",new{id=m.id});
varold_data=_connection.QueryFirstOrDefault<dc_auto_return_goods_config>("select * from dc_auto_return_goods_config where id=@id ",new{id=m.id});
vardc_base_head_transport_config_old_data=_connection.QuerySingleOrDefault<dc_base_head_transport_config>(" select * from dc_base_head_transport_config where bailun_sku=@bailun_sku and is_delete=0 limit 1 ",new
_connection.Execute(" update dc_auto_turnover set head_transport_type=@head_transport_type,head_transport_logistics_code=@head_transport_logistics_code where bailun_sku=@bailun_sku ",new{