This commit is contained in:
2025-07-21 13:59:04 +08:00
parent 4c5da5cedc
commit 3b226c74e6
3 changed files with 15 additions and 2 deletions

View File

@@ -1,16 +1,24 @@
using MyCode.Project.Domain.Message.Request.JackYun;
using MyCode.Project.Domain.Repositories;
using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Infrastructure.Enumeration;
using MyCode.Project.Infrastructure.Exceptions;
using MyCode.Project.Infrastructure.JackYun;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace MyCode.Project.Services.Implementation
{
public class JackYunService : ServiceBase , IJackYunService
{
private IYTKJTShopParameterRepository _yTKJTShopParameterRepository;
public JackYunService(IYTKJTShopParameterRepository yTKJTShopParameterRepository)
{
_yTKJTShopParameterRepository = yTKJTShopParameterRepository;
}
DateTime startTime = DateTime.Parse("2025-06-01");
/// <summary>
/// 请求开放平台服务
@@ -52,6 +60,8 @@ namespace MyCode.Project.Services.Implementation
if (now < startTime)
now = startTime;
int total = 1;
var shopConfigs = _yTKJTShopParameterRepository.Queryable().Where(t => t.FDOCUMENTSTATUS == "C").ToList();
OrderTradeFullInfoGetRequestBizData requestBizData = new OrderTradeFullInfoGetRequestBizData();
//string value = "2025-06-15 00:00:00";// DateTime.Now.Date.AddDays(-5).ToString("yyyy-MM-dd HH:mm:ss") ;
//string value1 = "2025-06-20 00:00:00";//DateTime.Now.Date.ToString("yyyy-MM-dd HH:mm:ss");
@@ -74,7 +84,7 @@ namespace MyCode.Project.Services.Implementation
//requestBizData.TradeStatus = 1010;
requestBizData.TradeType = 1;
requestBizData.SourceTradeNos = "";
requestBizData.ShopIds = null;// new long[] { 378761130654261100, 378761130654261100 };
requestBizData.ShopIds = shopConfigs.Select(t => t.FSHOPCODE).ToList(); ;// new long[] { 378761130654261100, 378761130654261100 };
List<int> TradeTypeList = new List<int>();
TradeTypeList.Add(1);
TradeTypeList.Add(7);