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
0aec9ac8
Commit
0aec9ac8
authored
Mar 16, 2023
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c69781b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
AmazonDataSynchroService.cs
AutoTurnOver.Services/AmazonDataSynchroService.cs
+2
-2
ResetOutofstockBackgrounService.cs
ResetOutofstock/ResetOutofstockBackgrounService.cs
+2
-2
No files found.
AutoTurnOver.Services/AmazonDataSynchroService.cs
View file @
0aec9ac8
...
...
@@ -37,7 +37,7 @@ namespace AutoTurnOver.Services
{
// 拉取亚马逊账号
var
amazonAccounts
=
ApiServices
.
GetAmazonAccountList
();
amazonAccounts
=
amazonAccounts
.
Where
(
s
=>
s
.
Account
==
"Ruby Store17"
&&
s
.
SiteEn
==
"US"
).
ToList
();
//
amazonAccounts = amazonAccounts.Where(s => s.Account == "Ruby Store17" && s.SiteEn=="US").ToList();
var
maps
=
ApiUtility
.
GetProjectMap
(
new
NewQueryFilterDTO
{
modelId
=
"309227134293902597"
,
CurrentPage
=
1
,
PageSize
=
10000
,
ListFilter
=
new
List
<
FieldFilterDTO
>
{
new
FieldFilterDTO
{
Field
=
"type"
,
Operator
=
"in"
,
Value
=
"10"
}
}
});
foreach
(
var
item
in
amazonAccounts
)
{
...
...
@@ -179,7 +179,7 @@ namespace AutoTurnOver.Services
var
new_task_synchro_log
=
new
task_synchro_log
{
create_date
=
DateTime
.
Now
,
end_time
=
DateTime
.
Now
.
Add
Days
(-
1
),
end_time
=
DateTime
.
Now
.
Add
Months
(-
3
),
status
=
0
,
task_name
=
task_name
};
...
...
ResetOutofstock/ResetOutofstockBackgrounService.cs
View file @
0aec9ac8
...
...
@@ -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
1
);
new
AmazonDataSynchroService
().
SynchroReportIds
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_V2_SETTLEMENT_REPORT_DATA_XML
,
1
2
);
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
,
11
);
//
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