抓单
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
using MyCode.Project.Infrastructure.JackYun;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MyCode.Project.Domain.Message.Request.JackYun
|
||||
{
|
||||
@@ -93,6 +94,7 @@ namespace MyCode.Project.Domain.Message.Request.JackYun
|
||||
/// <summary>
|
||||
/// 店铺ID数组
|
||||
/// </summary>
|
||||
public long[] ShopIds { get; set; }
|
||||
public List<string> ShopIds { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -107,6 +107,7 @@ namespace MyCode.Project.Services.Implementation
|
||||
}
|
||||
string now = DateTime.Now.ToString();
|
||||
_workProcessService.Add<IJackYunStockinService>(this.MerchantId, "SendInStock", "上传WMS的入库数据到吉客云", now, 1);
|
||||
Thread.Sleep(500);
|
||||
_workProcessService.Add<IJackYunStockinService>(this.MerchantId, "SendOutStock", "上传WMS的出库数据到吉客云", now, 1);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user