Преглед на файлове

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

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)
{
//校验


Зареждане…
Отказ
Запис