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
e2243f09
Commit
e2243f09
authored
Mar 03, 2023
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ee358d40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
AmazonDataSynchroService.cs
AutoTurnOver.Services/AmazonDataSynchroService.cs
+1
-0
Program.cs
ResetOutofstock/Program.cs
+2
-2
ResetOutofstockBackgrounService.cs
ResetOutofstock/ResetOutofstockBackgrounService.cs
+2
-2
No files found.
AutoTurnOver.Services/AmazonDataSynchroService.cs
View file @
e2243f09
...
...
@@ -520,6 +520,7 @@ namespace AutoTurnOver.Services
public
void
AnaReport
(
int
status
=
0
)
{
var
reportTypeEnum
=
ReportTypes
.
GET_V2_SETTLEMENT_REPORT_DATA_XML
;
//var reportTypeEnum = ReportTypes.GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2;
var
ana_task
=
MyMySqlConnection
.
_connection
.
QueryFirstOrDefault
<
dc_base_amazon_fee_report_log
>(
" select * from dc_base_amazon_fee_report_log where report_type=@report_type and ana_status=@status order by id desc limit 1 "
,
new
{
report_type
=
reportTypeEnum
.
ToString
(),
...
...
ResetOutofstock/Program.cs
View file @
e2243f09
...
...
@@ -54,10 +54,10 @@ namespace ResetOutofstock
//new AmazonDataSynchroService().SynchroFinancialEventGroups();
//new AmazonDataSynchroService().SynchroReportIds();
//new AmazonDataSynchroService().SynchroReportIds(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_
AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL,
10);
//new AmazonDataSynchroService().SynchroReportIds(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_
V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2,
10);
//while (true)
//{
// new AmazonDataSynchroService().AnaReport(
-1
);
// new AmazonDataSynchroService().AnaReport();
//}
}
catch
(
Exception
ex
)
...
...
ResetOutofstock/ResetOutofstockBackgrounService.cs
View file @
e2243f09
...
...
@@ -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
,
9
);
new
AmazonDataSynchroService
().
SynchroReportIds
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_V2_SETTLEMENT_REPORT_DATA_XML
,
11
);
Console
.
WriteLine
(
$"结束 拉取亚马逊费用流水,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Thread
.
Sleep
(
1000
*
60
*
3
);
}
...
...
@@ -645,7 +645,7 @@ namespace ResetOutofstock
try
{
Console
.
WriteLine
(
$"开始 拉取亚马逊 fba发货,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
new
AmazonDataSynchroService
().
SynchroReportIds
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL
,
9
);
new
AmazonDataSynchroService
().
SynchroReportIds
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL
,
11
);
Console
.
WriteLine
(
$"结束 拉取亚马逊 fba发货,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Thread
.
Sleep
(
1000
*
60
*
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