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
c878bfa2
Commit
c878bfa2
authored
Sep 05, 2023
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放款 预估。自动找站点
parent
f150d264
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
AmazonDataSynchroService.cs
AutoTurnOver.Services/AmazonDataSynchroService.cs
+8
-0
Program.cs
ResetOutofstock/Program.cs
+2
-2
No files found.
AutoTurnOver.Services/AmazonDataSynchroService.cs
View file @
c878bfa2
...
@@ -139,6 +139,14 @@ namespace AutoTurnOver.Services
...
@@ -139,6 +139,14 @@ namespace AutoTurnOver.Services
var
events
=
GetFinancialEventsByGroupId
(
item
,
feeItem
.
FinancialEventGroupId
);
var
events
=
GetFinancialEventsByGroupId
(
item
,
feeItem
.
FinancialEventGroupId
);
// 从订单中尝试提取站点
var
currencyCodes
=
events
.
Where
(
s
=>
s
.
AdjustmentEventList
!=
null
&&
s
.
AdjustmentEventList
.
Any
(
s
=>
s
.
AdjustmentAmount
!=
null
&&
!(
string
.
IsNullOrWhiteSpace
(
s
.
AdjustmentAmount
.
CurrencyCode
))
)).
ToList
();
if
(
currencyCodes
!=
null
&&
currencyCodes
.
Count
>=
1
)
{
var
currencyCode
=
currencyCodes
[
0
].
AdjustmentEventList
.
FirstOrDefault
(
s
=>
s
.
AdjustmentAmount
!=
null
&&
(!
string
.
IsNullOrWhiteSpace
(
s
.
AdjustmentAmount
.
CurrencyCode
)));
transferFee
.
MarketplaceName
=
ComputeMarketplaceNameByCurrency
(
currencyCode
.
AdjustmentAmount
.
CurrencyCode
);
transferFee
.
MarketplaceNameSys
=
ComputeMarketplaceNameByCurrency
(
currencyCode
.
AdjustmentAmount
.
CurrencyCode
);
}
feeDbs
.
Add
(
transferFee
);
feeDbs
.
Add
(
transferFee
);
...
...
ResetOutofstock/Program.cs
View file @
c878bfa2
...
@@ -49,7 +49,7 @@ namespace ResetOutofstock
...
@@ -49,7 +49,7 @@ namespace ResetOutofstock
//report_invest_return_dao.SynchBtmOrderRefund();
//report_invest_return_dao.SynchBtmOrderRefund();
//report_invest_return_dao.CalculationStockScore("962073701");
//report_invest_return_dao.CalculationStockScore("962073701");
//dc_ana_deviation_dao.PushAnaTask();
//dc_ana_deviation_dao.PushAnaTask();
//new AmazonDataSynchroService().SynchroFinancialEventGroups("
Zayigu
s", "US");
//new AmazonDataSynchroService().SynchroFinancialEventGroups("
Natural Daisy Encen
s", "US");
//new AmazonDataSynchroService().SetMarketplaceName(DateTime.Now);
//new AmazonDataSynchroService().SetMarketplaceName(DateTime.Now);
//new AmazonDataSynchroService().SetSettlementByDate();
//new AmazonDataSynchroService().SetSettlementByDate();
//new AmazonDataSynchroService().SetMarketplaceName(DateTime.Now.AddHours(-24), 372205);
//new AmazonDataSynchroService().SetMarketplaceName(DateTime.Now.AddHours(-24), 372205);
...
@@ -59,7 +59,7 @@ namespace ResetOutofstock
...
@@ -59,7 +59,7 @@ namespace ResetOutofstock
//new AmazonDataSynchroService().SynchroReportIdByCreate(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_V2_SETTLEMENT_REPORT_DATA_XML, 23, "Ruieach", "US");
//new AmazonDataSynchroService().SynchroReportIdByCreate(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_V2_SETTLEMENT_REPORT_DATA_XML, 23, "Ruieach", "US");
//new AmazonDataSynchroService().SynchroReportIdByCreate(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_FBA_INVENTORY_PLANNING_DATA, version: 22, account: "Elite99 Nail Art", site: "US",
//new AmazonDataSynchroService().SynchroReportIdByCreate(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_FBA_INVENTORY_PLANNING_DATA, version: 22, account: "Elite99 Nail Art", site: "US",
// btime: DateTime.Parse("2023-04-01"), DateTime.Parse("2023-04-24 23:59:59"));
// btime: DateTime.Parse("2023-04-01"), DateTime.Parse("2023-04-24 23:59:59"));
new
AmazonDataSynchroService
().
SynchroReportIds
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_V2_SETTLEMENT_REPORT_DATA_XML
,
13
,
"Zayigus"
,
"US"
);
//
new AmazonDataSynchroService().SynchroReportIds(FikaAmazonAPI.Utils.Constants.ReportTypes.GET_V2_SETTLEMENT_REPORT_DATA_XML, 13, "Zayigus", "US");
//new AmazonDataSynchroService().AnaReport(1, data_id: "18360251771");
//new AmazonDataSynchroService().AnaReport(1, data_id: "18360251771");
//new AmazonDataSynchroService().AnaFbaShipmentReport();
//new AmazonDataSynchroService().AnaFbaShipmentReport();
//new AmazonDataSynchroService().AnaFbaStorageFeeReport(status:-1);
//new AmazonDataSynchroService().AnaFbaStorageFeeReport(status:-1);
...
...
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