瀏覽代碼

【修改】西昌-缴费后处理接口:优化处理顺序和定时执行时间;

master
dyy 4 月之前
父節點
當前提交
dd9ff2a120
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs

+ 2
- 2
DigitalSchoolApi/Controllers/PayFeeResultTwoController.cs 查看文件

@@ -71,7 +71,7 @@ namespace DigitalSchoolApi.Controllers
{
RecurringJob.AddOrUpdate("PayFeeResultMinutes20",
() => GetResult(true),
Cron.MinuteInterval(5), TimeZoneInfo.Local);
"0 0/5 * * * ?", TimeZoneInfo.Local);
return Ok();
}
/// <summary>
@@ -201,7 +201,7 @@ namespace DigitalSchoolApi.Controllers
string lastdate = iflasttenminutes
? DateTime.Now.AddMinutes(-30).ToString("yyyy-MM-dd HH:mm:ss")
: DateTime.Now.AddDays(-20).ToString("yyyy-MM-dd HH:mm:ss");
List<FinaChargeStuOrderEntity> list = conn.Query<FinaChargeStuOrderEntity>("select * from FinaChargeStuOrder where PlaceOrderTime>='" + lastdate + "' and Status=0 and OrderType=1 ").ToList();
List<FinaChargeStuOrderEntity> list = conn.Query<FinaChargeStuOrderEntity>("select * from FinaChargeStuOrder where PlaceOrderTime>='" + lastdate + "' and Status=0 and OrderType=1 order by PlaceOrderTime desc").ToList();
foreach (var item in list)
{
//校验


Loading…
取消
儲存