|
|
@@ -0,0 +1,40 @@ |
|
|
|
using BPA.KitChen.GroupMealOrder.Core.Entity; |
|
|
|
using BPA.KitChen.GroupMealOrder.SqlSugar; |
|
|
|
using BPA.KitChen.WeChat.WechatServer.Service; |
|
|
|
using Furion.Schedule; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
namespace BPA.KitChen.GroupMealOrder.Application.Job |
|
|
|
{ |
|
|
|
public class OrderJob : IJob |
|
|
|
{ |
|
|
|
private readonly IWechatPayService _wechatPayService; |
|
|
|
|
|
|
|
public OrderJob(IWechatPayService wechatPayService) |
|
|
|
{ |
|
|
|
_wechatPayService= wechatPayService; |
|
|
|
} |
|
|
|
public Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken) |
|
|
|
{ |
|
|
|
|
|
|
|
//查询所有订单 |
|
|
|
|
|
|
|
var order = SqlSugarDb.Db.Queryable<BPA_WeighOrder>() |
|
|
|
.ClearFilter() |
|
|
|
.Where(x=>x.States==0&&x.PayStates==0) |
|
|
|
.ToList(); |
|
|
|
|
|
|
|
foreach (var item in order) |
|
|
|
{ |
|
|
|
// var res= _wechatPayService. |
|
|
|
} |
|
|
|
|
|
|
|
//查询订单 |
|
|
|
return Task.CompletedTask; |
|
|
|
} |
|
|
|
} |
|
|
|
} |