|
|
|
@ -53,9 +53,10 @@ namespace EntrustSettle.Tasks
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine($"{nameof(JobHydSubmitQuartz)} 执行 {DateTime.Now.ToShortTimeString()}");
|
|
|
|
|
|
|
|
|
|
var time = DateTime.Now.AddMinutes(-5);
|
|
|
|
|
|
|
|
|
|
// 查询所有待处理订单列表
|
|
|
|
|
var pendingOrderList = await orderService.QueryTop(x => x.IsSend == false && x.CreateTime < DateTime.Now.AddMinutes(-2), 20, "Id asc");
|
|
|
|
|
var pendingOrderList = await orderService.QueryTop(x => x.IsSend == false && x.CreateTime < time, 20, "Id asc");
|
|
|
|
|
|
|
|
|
|
if (pendingOrderList.Count == 0)
|
|
|
|
|
{
|
|
|
|
|