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
9f5d938d
Commit
9f5d938d
authored
Mar 14, 2023
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9a9229b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
AmazonDataSynchroService.cs
AutoTurnOver.Services/AmazonDataSynchroService.cs
+8
-3
No files found.
AutoTurnOver.Services/AmazonDataSynchroService.cs
View file @
9f5d938d
...
...
@@ -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();
foreach
(
var
item
in
amazonAccounts
)
{
try
...
...
@@ -45,7 +45,7 @@ namespace AutoTurnOver.Services
if
(
item
.
AmznSpDevAccountObj
!=
null
&&
item
.
AmznSpTokenObj
!=
null
)
{
var
task_name
=
$"SynchroAmazonFinancialEventGroups_v1
0
_
{
item
.
Id
}
"
;
var
task_name
=
$"SynchroAmazonFinancialEventGroups_v1
1
_
{
item
.
Id
}
"
;
// 查询最后一次成功抓取的记录
var
last_task_synchro_log
=
MyMySqlConnection
.
_connection
.
QuerySingleOrDefault
<
task_synchro_log
>(
" select * from task_synchro_log where task_name=@task_name and status=1 order by end_time desc limit 1 "
,
new
{
task_name
=
task_name
});
...
...
@@ -88,12 +88,17 @@ namespace AutoTurnOver.Services
SellerOrderId
=
feeItem
.
TraceId
,
_ts
=
DateTime
.
Now
,
settlement_id
=
"-"
,
description
=
$"To account ending in:
{
feeItem
.
AccountTail
}
"
,
type
=
"Transfer"
,
// 提现
type_cn
=
"放款"
,
// 提现
total
=
(
decimal
)
feeItem
.
BeginningBalance
.
CurrencyAmount
-
(
decimal
)
feeItem
.
OriginalTotal
.
CurrencyAmount
,
currency_code
=
feeItem
.
OriginalTotal
.
CurrencyCode
};
transferFee
.
description
=
$"计划于
{
transferFee
.
date
.
AddHours
(
8
).
ToString
(
"yyyy/MM/dd"
)}
* 扣除
{
transferFee
.
total
}
{
transferFee
.
currency_code
}
的金额"
;
if
(
transferFee
.
total
>
0
)
{
transferFee
.
description
=
$"已于
{
transferFee
.
date
.
AddHours
(
8
).
ToString
(
"yyyy/MM/dd"
)}
向您尾号为
{
feeItem
.
AccountTail
}
的账户转入金额为
{
transferFee
.
currency_code
}
$
{
transferFee
.
total
}
的款项。此款项大约需要 3-5 个工作日显示在您的银行账户中。"
;
}
transferFee
.
settlement_date_str
=
$"
{
transferFee
.
start_date
.
Value
.
ToString
(
"yyyy-MM-ddTHH:mm:ss"
)}
~
{
transferFee
.
end_date
.
Value
.
ToString
(
"yyyy-MM-ddTHH:mm:ss"
)}
"
;
transferFee
.
other
=
transferFee
.
total
;
transferFee
.
data_id
=
$"
{
feeItem
.
TraceId
}
_
{
transferFee
.
type
}
_
{
transferFee
.
AmazonOrderId
}
"
;
...
...
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