Commit a64701bc by 泽锋 李

采购建议,薪资调拨暂存在途

parent 727d8448
...@@ -55,6 +55,10 @@ namespace AutoTurnOver.DB ...@@ -55,6 +55,10 @@ namespace AutoTurnOver.DB
{ {
foreach (var itemSku in item.allotScheduleProducts) foreach (var itemSku in item.allotScheduleProducts)
{ {
if (itemSku.sku == "942660104" && item.targetWareNo== "ESFBABLEM")
{
}
var db_data = new dc_base_trans_temp_schedule() var db_data = new dc_base_trans_temp_schedule()
{ {
code = item.code ?? "", code = item.code ?? "",
...@@ -109,6 +113,10 @@ GROUP BY sku_ware_no", new { sku_ware_nos = data_skus.Select(s=>s.sku_ware_no).D ...@@ -109,6 +113,10 @@ GROUP BY sku_ware_no", new { sku_ware_nos = data_skus.Select(s=>s.sku_ware_no).D
foreach (var item in temp_datas) foreach (var item in temp_datas)
{ {
if (item.bailun_sku == "942660104" && item.warehouse_code == "ESFBABLEM")
{
}
_connection.Execute("update dc_mid_transit set quantity_transfer_temp_schedule=@quantity_transfer_temp_schedule where bailun_sku=@bailun_sku and warehouse_code=@warehouse_code ", new _connection.Execute("update dc_mid_transit set quantity_transfer_temp_schedule=@quantity_transfer_temp_schedule where bailun_sku=@bailun_sku and warehouse_code=@warehouse_code ", new
{ {
bailun_sku = item.bailun_sku, bailun_sku = item.bailun_sku,
...@@ -122,6 +130,10 @@ GROUP BY sku_ware_no", new { sku_ware_nos = data_skus.Select(s=>s.sku_ware_no).D ...@@ -122,6 +130,10 @@ GROUP BY sku_ware_no", new { sku_ware_nos = data_skus.Select(s=>s.sku_ware_no).D
{ {
foreach (var item in data_0.Select(s=>new { s.sku,s.target_ware_no}).Distinct()) foreach (var item in data_0.Select(s=>new { s.sku,s.target_ware_no}).Distinct())
{ {
if (item.sku == "942660104" && item.target_ware_no == "ESFBABLEM")
{
}
_connection.Execute("update dc_mid_transit set quantity_transfer_temp_schedule=0 where bailun_sku=@bailun_sku and warehouse_code=@warehouse_code ", new _connection.Execute("update dc_mid_transit set quantity_transfer_temp_schedule=0 where bailun_sku=@bailun_sku and warehouse_code=@warehouse_code ", new
{ {
bailun_sku = item.sku, bailun_sku = item.sku,
...@@ -138,6 +150,10 @@ GROUP BY sku_ware_no", new { sku_ware_nos = data_skus.Select(s => s.sku_ware_no) ...@@ -138,6 +150,10 @@ GROUP BY sku_ware_no", new { sku_ware_nos = data_skus.Select(s => s.sku_ware_no)
foreach (var item in temp_datas2) foreach (var item in temp_datas2)
{ {
if (item.bailun_sku == "942660104" && item.warehouse_code == "ESFBABLEM")
{
}
_connection.Execute("update dc_mid_transit set quantity_transfer_temporary_storage=@quantity_transfer_temporary_storage where bailun_sku=@bailun_sku and warehouse_code=@warehouse_code ", new _connection.Execute("update dc_mid_transit set quantity_transfer_temporary_storage=@quantity_transfer_temporary_storage where bailun_sku=@bailun_sku and warehouse_code=@warehouse_code ", new
{ {
bailun_sku = item.bailun_sku, bailun_sku = item.bailun_sku,
...@@ -151,6 +167,10 @@ GROUP BY sku_ware_no", new { sku_ware_nos = data_skus.Select(s => s.sku_ware_no) ...@@ -151,6 +167,10 @@ GROUP BY sku_ware_no", new { sku_ware_nos = data_skus.Select(s => s.sku_ware_no)
{ {
foreach (var item in data_1.Select(s => new { s.sku, s.target_ware_no }).Distinct()) foreach (var item in data_1.Select(s => new { s.sku, s.target_ware_no }).Distinct())
{ {
if (item.sku == "942660104" && item.target_ware_no == "ESFBABLEM")
{
}
_connection.Execute("update dc_mid_transit set quantity_transfer_temporary_storage=0 where bailun_sku=@bailun_sku and warehouse_code=@warehouse_code ", new _connection.Execute("update dc_mid_transit set quantity_transfer_temporary_storage=0 where bailun_sku=@bailun_sku and warehouse_code=@warehouse_code ", new
{ {
bailun_sku = item.sku, bailun_sku = item.sku,
......
...@@ -196,6 +196,20 @@ namespace AutoTurnOver.Models ...@@ -196,6 +196,20 @@ namespace AutoTurnOver.Models
/// 物流切换备注 /// 物流切换备注
/// </summary> /// </summary>
public string replace_logistics_remarks { get; set; } public string replace_logistics_remarks { get; set; }
/// <summary>
/// 调拨单在途
/// </summary>
public int? quantity_transfer_order { get; set; }
/// <summary>
/// 调拨单采购临时数据
/// </summary>
public int? quantity_transfer_temp_schedule { get; set; }
/// <summary>
/// 调拨在途,暂存
/// </summary>
public int? quantity_transfer_temporary_storage { get; set; }
} }
......
...@@ -23,13 +23,13 @@ namespace AutoTurnOver.Purchase.AverageTarget ...@@ -23,13 +23,13 @@ namespace AutoTurnOver.Purchase.AverageTarget
Console.WriteLine("采购平均值计算任务启动..."); Console.WriteLine("采购平均值计算任务启动...");
try try
{ {
//PurchaseAverageTargetServices.CalculationTransfer("942517901"); //PurchaseAverageTargetServices.CalculationTransfer("N-G-TOP");
//report.ResetTransExpectArrivaltime(); //report.ResetTransExpectArrivaltime();
//report.ResetTransExpectArrivaltime(); //report.ResetTransExpectArrivaltime();
//PurchaseAverageTargetServices.CalculationTransfer(); //PurchaseAverageTargetServices.CalculationTransfer();
report.ResetTransExpectArrivaltime(); //report.ResetTransExpectArrivaltime();
} }
catch (Exception ex) catch (Exception ex)
......
...@@ -164,7 +164,7 @@ namespace AutoTurnOver.Services ...@@ -164,7 +164,7 @@ namespace AutoTurnOver.Services
var chageSkuList = AveragePurchase.GetTransferChangeSku(30, bailun_sku); var chageSkuList = AveragePurchase.GetTransferChangeSku(30, bailun_sku);
foreach (var skuItem in chageSkuList) foreach (var skuItem in chageSkuList)
{ {
if (skuItem.warehouse_code == "MMDUSFBA") if (skuItem.warehouse_code == "MDBLWYT")
{ {
} }
......
...@@ -28,6 +28,7 @@ namespace ResetOutofstock ...@@ -28,6 +28,7 @@ namespace ResetOutofstock
//report.PurchaseWeekBackUp(); //report.PurchaseWeekBackUp();
//report.PurchaseWeekBackUp(); //report.PurchaseWeekBackUp();
//await new TaskDownloadServices().Download(); //await new TaskDownloadServices().Download();
dc_base_trans_temp_schedule_dao.SynchroTransTempScheduleData();
} }
catch (Exception ex) catch (Exception ex)
{ {
......
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