master
zhangxiaofeng 5 months ago
parent 444ba4971a
commit eafa1bb376

@ -125,7 +125,10 @@ namespace EntrustSettle.Api.Controllers
public async Task<dynamic> Test()
{
// 查询所有待处理订单列表
var pendingOrderList = await orderService.QueryTop(x => x.IsSend == false && x.CreateTime < DateTime.Now.AddMinutes(-2), 10, "Id asc");
var time = DateTime.Now.AddMinutes(-5);
// 查询所有待处理订单列表
var pendingOrderList = await orderService.QueryTop(x => x.IsSend == false && x.CreateTime < time, 20, "Id asc");
//CustFee custFeeModel = new CustFee()
//{
// SENDTYPE = 0,

@ -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)
{

Loading…
Cancel
Save