调整获取时间
This commit is contained in:
@@ -196,8 +196,12 @@ namespace WMS.Web.Api.Controllers
|
||||
if (loginInfo == null || loginInfo.UserInfo == null)
|
||||
return Result.ReFailure(ResultCodes.Token_Invalid_Error);
|
||||
|
||||
DateTime begin = DateTime.Now.AddDays(-3);//默认拉去三天以内的数据
|
||||
var res = await _repositories.GetEntityList(dto.Ids);
|
||||
return await _outStockTaskService.Sync(res.Select(s => s.BillNo).ToList());
|
||||
//先刷新选中的数据
|
||||
await _outStockTaskService.Sync(res.Select(s => s.BillNo).ToList());
|
||||
//再刷新3天内所有的
|
||||
return await _outStockTaskService.Sync(null, begin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user