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
8340c594
Commit
8340c594
authored
Apr 26, 2023
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
45e4a4b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
+23
-7
AmazonDataSynchroService.cs
AutoTurnOver.Services/AmazonDataSynchroService.cs
+1
-1
Program.cs
ResetOutofstock/Program.cs
+7
-4
ResetOutofstockBackgrounService.cs
ResetOutofstock/ResetOutofstockBackgrounService.cs
+15
-2
No files found.
AutoTurnOver.Services/AmazonDataSynchroService.cs
View file @
8340c594
...
...
@@ -881,7 +881,7 @@ namespace AutoTurnOver.Services
if
(
oldData
!=
null
)
{
// 多份报表都出现同一份数据。已报表实际较晚的为准
if
(
oldData
.
report_end_date
<
=
storageFee
.
report_end_date
)
if
(
oldData
.
report_end_date
<
storageFee
.
report_end_date
)
{
storageFee
.
_project
=
oldData
.
_project
;
storageFee
.
exchange_cny
=
oldData
.
exchange_cny
;
...
...
ResetOutofstock/Program.cs
View file @
8340c594
...
...
@@ -65,11 +65,14 @@ namespace ResetOutofstock
//new AmazonDataSynchroService().AnaFbaStorageFeeReport(status:-1);
//new AmazonDataSynchroService().AnaFbaLongTermStorageFeeReport();
//new AmazonDataSynchroService().AnaFbaOverageStorageFeeReport(report_id: "937084019471");
//while (true)
//{
// new AmazonDataSynchroService().AnaFbaStorageFeeReport();
//}
//new AmazonDataSynchroService().AnaReport(data_id: "17339571721");
new
AmazonDataSynchroService
().
SynchroReportIdByCreate
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_FBA_STORAGE_FEE_CHARGES_DATA
,
version
:
18
,
btime
:
DateTime
.
Now
.
AddMonths
(-
1
).
GetMonthFirstDay
().
ToDayHome
().
AddHours
(-
8
),
etime
:
DateTime
.
Now
.
AddMonths
(-
1
).
LastDayOfMonth
().
ToDayEnd
().
AddHours
(-
8
));
}
catch
(
Exception
ex
)
{
...
...
ResetOutofstock/ResetOutofstockBackgrounService.cs
View file @
8340c594
...
...
@@ -722,7 +722,20 @@ 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_FBA_STORAGE_FEE_CHARGES_DATA
,
15
);
//new AmazonDataSynchroService().SynchroReportIds(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_FBA_STORAGE_FEE_CHARGES_DATA, 15);
// 下载上个月的
new
AmazonDataSynchroService
().
SynchroReportIdByCreate
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_FBA_STORAGE_FEE_CHARGES_DATA
,
version
:
23
,
btime
:
DateTime
.
Now
.
AddMonths
(-
1
).
GetMonthFirstDay
().
ToDayHome
().
AddHours
(-
8
),
etime
:
DateTime
.
Now
.
AddMonths
(-
1
).
LastDayOfMonth
().
ToDayEnd
().
AddHours
(-
8
));
// 下载这个月的
new
AmazonDataSynchroService
().
SynchroReportIdByCreate
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_FBA_STORAGE_FEE_CHARGES_DATA
,
version
:
23
,
btime
:
DateTime
.
Now
.
GetMonthFirstDay
().
ToDayHome
(),
etime
:
DateTime
.
Now
.
ToDayEnd
());
Console
.
WriteLine
(
$"结束 拉取亚马逊 月度仓储费,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Thread
.
Sleep
(
1000
*
60
*
3
);
}
...
...
@@ -791,7 +804,7 @@ namespace ResetOutofstock
{
Console
.
WriteLine
(
$"开始 解析月度仓储费,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
new
AmazonDataSynchroService
().
AnaFbaStorageFeeReport
();
//
new AmazonDataSynchroService().AnaFbaStorageFeeReport(-1);
new
AmazonDataSynchroService
().
AnaFbaStorageFeeReport
(-
1
);
Console
.
WriteLine
(
$"结束 解析月度仓储费,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Thread
.
Sleep
(
500
);
}
...
...
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