|
@@ -71,7 +71,7 @@ namespace DigitalSchoolApi.Controllers |
|
|
{ |
|
|
{ |
|
|
RecurringJob.AddOrUpdate("PayFeeResultMinutes20", |
|
|
RecurringJob.AddOrUpdate("PayFeeResultMinutes20", |
|
|
() => GetResult(true), |
|
|
() => GetResult(true), |
|
|
Cron.MinuteInterval(5), TimeZoneInfo.Local); |
|
|
|
|
|
|
|
|
"0 0/5 * * * ?", TimeZoneInfo.Local); |
|
|
return Ok(); |
|
|
return Ok(); |
|
|
} |
|
|
} |
|
|
/// <summary> |
|
|
/// <summary> |
|
@@ -201,7 +201,7 @@ namespace DigitalSchoolApi.Controllers |
|
|
string lastdate = iflasttenminutes |
|
|
string lastdate = iflasttenminutes |
|
|
? DateTime.Now.AddMinutes(-30).ToString("yyyy-MM-dd HH:mm:ss") |
|
|
? DateTime.Now.AddMinutes(-30).ToString("yyyy-MM-dd HH:mm:ss") |
|
|
: DateTime.Now.AddDays(-20).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) |
|
|
foreach (var item in list) |
|
|
{ |
|
|
{ |
|
|
//校验 |
|
|
//校验 |
|
|