shanji 3 years ago
parent
commit
ab4ee3f221
  1. 2
      BBWY.Server.API/appsettings.json
  2. 2
      BBWY.Server.Business/PlatformSDK/JDBusiness.cs
  3. 8
      BBWY.Server.Business/Sync/JD/JDPopularizeReportFormOrderLevelSyncBusiness.cs
  4. 22
      BBWY.Test/JDBaoBiaoAPITest.cs
  5. 2
      BBWY.Test/Program.cs

2
BBWY.Server.API/appsettings.json

@ -18,7 +18,7 @@
"PlatformAPIs": [
{
"Platform": 1, //
"APIHost": "http://116.196.81.215/"
"APIHost": "https://yunding.qiyue666.com/"
}
],
"Stores": [

2
BBWY.Server.Business/PlatformSDK/JDBusiness.cs

@ -594,7 +594,7 @@ namespace BBWY.Server.Business
req.clickStartDay = request.StartDate.ToString("yyyy-MM-dd");
req.clickEndDay = request.EndDate.ToString("yyyy-MM-dd");
req.giftFlag = "0";
req.orderStatus = "4";
//req.orderStatus = "4";
req.page = request.PageIndex.ToString();
//if (request.Business == 134217728)
req.myself = "1,3";

8
BBWY.Server.Business/Sync/JD/JDPopularizeReportFormOrderLevelSyncBusiness.cs

@ -73,10 +73,10 @@ namespace BBWY.Server.Business.Sync
DeleteOldData(shopList, startDate, endDate);
foreach (var shop in shopList)
{
//Task.Factory.StartNew(() => SyncShopPopularizeReportFormOrderLevelByDate(shop, startDate, endDate, 2),
// System.Threading.CancellationToken.None,
// TaskCreationOptions.LongRunning,
// taskSchedulerManager.JDPopularizeTaskScheduler);
Task.Factory.StartNew(() => SyncShopPopularizeReportFormOrderLevelByDate(shop, startDate, endDate, 2),
System.Threading.CancellationToken.None,
TaskCreationOptions.LongRunning,
taskSchedulerManager.JDPopularizeTaskScheduler);
Task.Factory.StartNew(() => SyncShopPopularizeReportFormOrderLevelByDate(shop, startDate, endDate, 134217728),
System.Threading.CancellationToken.None,

22
BBWY.Test/JDBaoBiaoAPITest.cs

@ -565,5 +565,27 @@ namespace BBWY.Test
var res = client.Execute(req, token, DateTime.Now.ToLocalTime());
Console.WriteLine(JsonConvert.SerializeObject(res));
}
public void Test_订单维度_快车(IJdClient client, string token)
{
var req = new AdsIbgUniversalJosServiceOrderQueryRequest();
req.businessType = "2";
req.clickOrOrderDay = "0";
req.pageSize = "100";
req.clickOrOrderCaliber = "1";
req.orderStartDay = "2022-10-01";
req.orderEndDay = "2022-10-29";
req.clickStartDay = "2022-10-01";
req.clickEndDay = "2022-10-29";
req.giftFlag = "0";
//req.orderStatus = "2,4";
req.page = "1";
req.myself = "1,3";
var res = client.Execute(req, token, DateTime.Now.ToLocalTime());
Console.WriteLine(JsonConvert.SerializeObject(res));
Console.WriteLine();
}
}
}

2
BBWY.Test/Program.cs

@ -30,7 +30,7 @@ namespace BBWY.Test
IJdClient client = GetJdClient(appkey, appSecret);
var test1 = new JDBaoBiaoAPITest();
test1.Test1(client, token);
test1.Test_订单维度_快车(client, token);
Console.WriteLine();
Console.WriteLine();

Loading…
Cancel
Save