Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
data-center-auto
Commits
ad542336
Commit
ad542336
authored
Mar 16, 2023
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
eeeb8172
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
30 deletions
+50
-30
AccountDto.cs
AutoTurnOver.Models/ApiDto/AccountDto.cs
+1
-1
AmazonDataSynchroService.cs
AutoTurnOver.Services/AmazonDataSynchroService.cs
+35
-21
ReportService.cs
FikaAmazonAPI/Services/ReportService.cs
+5
-5
MarketPlace.cs
FikaAmazonAPI/Utils/MarketPlace.cs
+4
-0
Program.cs
ResetOutofstock/Program.cs
+3
-2
ResetOutofstockBackgrounService.cs
ResetOutofstock/ResetOutofstockBackgrounService.cs
+2
-1
No files found.
AutoTurnOver.Models/ApiDto/AccountDto.cs
View file @
ad542336
...
...
@@ -41,7 +41,7 @@ namespace AutoTurnOver.Models.ApiDto
}
}
public
string
MarketPlaceJson
{
get
;
set
;
}
public
MarketPlaceDto
MarketPlaceObj
public
MarketPlaceDto
MarketPlaceObj
Bak
{
get
{
...
...
AutoTurnOver.Services/AmazonDataSynchroService.cs
View file @
ad542336
This diff is collapsed.
Click to expand it.
FikaAmazonAPI/Services/ReportService.cs
View file @
ad542336
...
...
@@ -24,11 +24,11 @@ namespace FikaAmazonAPI.Services
Task
.
Run
(()
=>
GetReportsAsync
(
parameterReportList
)).
ConfigureAwait
(
false
).
GetAwaiter
().
GetResult
();
public
async
Task
<
List
<
Report
>>
GetReportsAsync
(
ParameterReportList
parameterReportList
,
CancellationToken
cancellationToken
=
default
)
{
if
(
parameterReportList
.
marketplaceIds
==
null
||
parameterReportList
.
marketplaceIds
.
Count
==
0
)
{
parameterReportList
.
marketplaceIds
=
new
List
<
string
>();
parameterReportList
.
marketplaceIds
.
Add
(
AmazonCredential
.
MarketPlace
.
ID
);
}
//
if (parameterReportList.marketplaceIds == null || parameterReportList.marketplaceIds.Count == 0)
//
{
//
parameterReportList.marketplaceIds = new List<string>();
//
parameterReportList.marketplaceIds.Add(AmazonCredential.MarketPlace.ID);
//
}
if
(
parameterReportList
.
createdSince
.
HasValue
)
{
var
totalDays
=
(
parameterReportList
.
createdSince
.
Value
-
DateTime
.
UtcNow
).
TotalDays
;
...
...
FikaAmazonAPI/Utils/MarketPlace.cs
View file @
ad542336
...
...
@@ -44,6 +44,10 @@ namespace FikaAmazonAPI.Utils
public
static
MarketPlace
GetMarketplaceByCountryCode
(
string
countryCode
)
{
if
(
countryCode
==
"UK"
)
{
countryCode
=
"GB"
;
}
var
list
=
new
List
<
MarketPlace
>();
//NorthAmerica
list
.
Add
(
US
);
list
.
Add
(
Canada
);
list
.
Add
(
Mexico
);
list
.
Add
(
Brazil
);
...
...
ResetOutofstock/Program.cs
View file @
ad542336
...
...
@@ -54,12 +54,13 @@ namespace ResetOutofstock
//new AmazonDataSynchroService().SynchroFinancialEventGroups();
//new AmazonDataSynchroService().SetMarketplaceName(DateTime.Now);
//new AmazonDataSynchroService().SetSettlementByDate();
//new AmazonDataSynchroService().SetMarketplaceNameByDate();
//new AmazonDataSynchroService().SynchroReportIds();
//new AmazonDataSynchroService().SynchroReportIds(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_V2_SETTLEMENT_REPORT_DATA_XML, 1
2, "Siqidzi
");
//new AmazonDataSynchroService().SynchroReportIds(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_V2_SETTLEMENT_REPORT_DATA_XML, 1
3, "Siqidzi","BE
");
//while (true)
//{
// new AmazonDataSynchroService().AnaReport(status:-1
);
// new AmazonDataSynchroService().AnaReport(status:-3
);
//}
//new AmazonDataSynchroService().AnaReport(data_id: "17339571721");
}
...
...
ResetOutofstock/ResetOutofstockBackgrounService.cs
View file @
ad542336
...
...
@@ -623,7 +623,7 @@ namespace ResetOutofstock
try
{
Console
.
WriteLine
(
$"开始 拉取亚马逊费用流水,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
new
AmazonDataSynchroService
().
SynchroReportIds
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_V2_SETTLEMENT_REPORT_DATA_XML
,
1
2
);
new
AmazonDataSynchroService
().
SynchroReportIds
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_V2_SETTLEMENT_REPORT_DATA_XML
,
1
3
);
Console
.
WriteLine
(
$"结束 拉取亚马逊费用流水,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Thread
.
Sleep
(
1000
*
60
*
3
);
}
...
...
@@ -760,6 +760,7 @@ namespace ResetOutofstock
{
Console
.
WriteLine
(
$"开始 提现记录追溯结算id,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
new
AmazonDataSynchroService
().
SetSettlementByDate
();
new
AmazonDataSynchroService
().
SetMarketplaceNameByDate
();
Console
.
WriteLine
(
$"结束 提现记录追溯结算id,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Thread
.
Sleep
(
1000
*
3
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment