修改了同步领料出库

This commit is contained in:
2025-07-02 14:28:05 +08:00
parent 8f7e3d3160
commit 3691cda997
3 changed files with 33 additions and 15 deletions

View File

@@ -450,10 +450,14 @@ namespace WMS.Web.Domain.Services
//DateTime begin = await _erpOpsSyncDateRepositories.Get(ErpOpsSyncType.OutStock);
if (begin == null)
begin = DateTime.Now.AddHours(-8);//默认拉去8小时以内的数据ALTER BY YZH
// begin = DateTime.Now.AddDays(-200);//默认拉去8小时以内的数据ALTER BY YZH
//更新时间范围内所有
//result = await BillQueryForTransferOutOutStock(false, null, begin);
//if (!result.IsSuccess) isRollback = true;
// begin = DateTime.Now.AddDays(-200);//默认拉去8小时以内的数据ALTER BY YZH
//更新时间范围内所有
//result = await BillQueryForTransferOutOutStock(false, null, begin);
//if (!result.IsSuccess) isRollback = true;
result = await BillQueryForPickingOutStock(false, null, begin);
if (!result.IsSuccess) isRollback = true;
result = await BillQueryForSalOutStock(false, null, begin);
if (!result.IsSuccess) isRollback = true;
@@ -466,8 +470,6 @@ namespace WMS.Web.Domain.Services
result = await BillQueryForMisDeliveryOutStock(false, null, begin);
if (!result.IsSuccess) isRollback = true;
result = await BillQueryForPickingOutStock(false, null, begin);
if (!result.IsSuccess) isRollback = true;
//更新时间管理
@@ -538,7 +540,7 @@ namespace WMS.Web.Domain.Services
}
if (PickingOut_Nos.Count() > 0)
{
result = await BillQueryForPickingOutStock(false, MisDeliveryOut_Nos);
result = await BillQueryForPickingOutStock(false, PickingOut_Nos);
if (!result.IsSuccess) isRollback = true;
}