调整获取时间
This commit is contained in:
@@ -285,7 +285,7 @@ namespace WMS.Web.Domain.Services
|
||||
/// </summary>
|
||||
/// <param name="sourceBillNos"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<Result> Sync(List<string> billNos = null)
|
||||
public async Task<Result> Sync(List<string> billNos = null, DateTime? begin = null)
|
||||
{
|
||||
//1.事务
|
||||
IDbContextTransaction _transaction = _transactionRepositories.GetTransaction();
|
||||
@@ -296,8 +296,7 @@ namespace WMS.Web.Domain.Services
|
||||
if (billNos == null)
|
||||
{
|
||||
//DateTime begin = await _erpOpsSyncDateRepositories.Get(ErpOpsSyncType.OutStock);
|
||||
DateTime begin = Convert.ToDateTime("2024-03-01 00:00:00");//正式环境 从3月1好开始
|
||||
if (DateTime.Now > Convert.ToDateTime("2024-03-04 00:00:00"))
|
||||
if (begin == null)
|
||||
begin = DateTime.Now.AddDays(-3);//默认拉去三天以内的数据
|
||||
//更新时间范围内所有
|
||||
result = await BillQueryForSalOutStock(false, null, begin);
|
||||
|
||||
Reference in New Issue
Block a user