调整时间
This commit is contained in:
@@ -161,7 +161,7 @@ namespace WMS.Web.Domain.Services
|
|||||||
var eList = erp_list.Where(f => f.SourceBillNo == item.SourceBillNo && f.StockCode == item.StockCode).ToList();
|
var eList = erp_list.Where(f => f.SourceBillNo == item.SourceBillNo && f.StockCode == item.StockCode).ToList();
|
||||||
var e = eList.First();
|
var e = eList.First();
|
||||||
var entity = new OutStockTask();
|
var entity = new OutStockTask();
|
||||||
entity.Create((OutStockType)e.Type, e.StockCode,e.OrgCode, e.DeliveryOrgId, e.ReceiptCustomerId, (DateTime)e.CreateTime);
|
entity.Create((OutStockType)e.Type, e.StockCode, e.OrgCode, e.DeliveryOrgId, e.ReceiptCustomerId, (DateTime)e.CreateTime);
|
||||||
|
|
||||||
//找到当前对应来源单据编号的集合数据
|
//找到当前对应来源单据编号的集合数据
|
||||||
var mIds = eList.GroupBy(g => g.MaterialId).Select(s => s.Key).ToList();
|
var mIds = eList.GroupBy(g => g.MaterialId).Select(s => s.Key).ToList();
|
||||||
@@ -281,7 +281,9 @@ namespace WMS.Web.Domain.Services
|
|||||||
if (billNos == null)
|
if (billNos == null)
|
||||||
{
|
{
|
||||||
//DateTime begin = await _erpOpsSyncDateRepositories.Get(ErpOpsSyncType.OutStock);
|
//DateTime begin = await _erpOpsSyncDateRepositories.Get(ErpOpsSyncType.OutStock);
|
||||||
DateTime begin = DateTime.Now.AddDays(-3);//默认拉去三天以内的数据
|
DateTime begin = Convert.ToDateTime("2024-03-01 00:00:00");//正式环境 从3月1好开始
|
||||||
|
if (DateTime.Now > Convert.ToDateTime("2024-03-04 00:00:00"))
|
||||||
|
begin = DateTime.Now.AddDays(-3);//默认拉去三天以内的数据
|
||||||
//更新时间范围内所有
|
//更新时间范围内所有
|
||||||
result = await BillQueryForDeliveryNoticeOutStock(false, null, begin);
|
result = await BillQueryForDeliveryNoticeOutStock(false, null, begin);
|
||||||
if (!result.IsSuccess) isRollback = true;
|
if (!result.IsSuccess) isRollback = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user