Commit bd70436b by guanzhenshan

重跑逻辑仓库数据

parent b27dde27
...@@ -20,26 +20,17 @@ namespace Bailun.DC.LogicWareHouse ...@@ -20,26 +20,17 @@ namespace Bailun.DC.LogicWareHouse
//static void Main(string[] args) //static void Main(string[] args)
//{ //{
// //new Services().Save(); // var _service = new Services();
// //半成品库存
// //new Services().SemiStock();
// //半成品销量 // //半成品销量
// //new Services().UpdateSemiSale(); // //_service.UpdateSemiSale();
// // 更新缺货数和待发货数据
// //new Services().UpdateOutStockAndNoShipping();
// //更新30天现金流
// //new Services().UpdateCash30Days();
// //new Services().UpdateLogicWareHouseSemiSale(); // //更新半成品销量和现金流
// //_service.UpdateLogicWareHouseSemiSale();
// //new Services().SaleWHDailySnaps();
// new Services().UpdateAvailableDays(); // //保存每日数据快照
// //_service.SaleWHDailySnaps();
//} //}
} }
} }
...@@ -386,9 +386,7 @@ namespace Bailun.DC.LogicWareHouse ...@@ -386,9 +386,7 @@ namespace Bailun.DC.LogicWareHouse
{ {
cn.Open(); cn.Open();
} }
cn.Execute("update dc_skuwarehouse_stock_sales set cash_in_30days=0,cash_out_30days=0,cash_net = 0"); cn.Execute("update dc_skuwarehouse_stock_sales set cash_in_30days=0,cash_out_30days=0,cash_net = 0");
cn.Execute("TRUNCATE dc_base_stock_cash;"); cn.Execute("TRUNCATE dc_base_stock_cash;");
...@@ -481,7 +479,7 @@ select DATE_SUB(curdate(),INTERVAL 1 DAY) as day,t1.* from (select t1.hq_type,t1 ...@@ -481,7 +479,7 @@ select DATE_SUB(curdate(),INTERVAL 1 DAY) as day,t1.* from (select t1.hq_type,t1
{ {
cn.Open(); cn.Open();
} }
cn.Execute("delete from dc_daily_logic_wh_statistic where day='"+DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd")+"'");
cn.Execute(sql, null, null, 6 * 60); cn.Execute(sql, null, null, 6 * 60);
} }
......
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