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
ee358d40
Commit
ee358d40
authored
Mar 03, 2023
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化体现费用抓取
parent
0328f60a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
AmazonDataSynchroService.cs
AutoTurnOver.Services/AmazonDataSynchroService.cs
+7
-5
No files found.
AutoTurnOver.Services/AmazonDataSynchroService.cs
View file @
ee358d40
...
...
@@ -232,14 +232,14 @@ namespace AutoTurnOver.Services
if
(
item
.
AmznSpDevAccountObj
!=
null
&&
item
.
AmznSpTokenObj
!=
null
)
{
var
task_name
=
$"SynchroAmazonFinancialEventGroups_v
4
_
{
item
.
Id
}
"
;
var
task_name
=
$"SynchroAmazonFinancialEventGroups_v
6
_
{
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
});
var
new_task_synchro_log
=
new
task_synchro_log
{
create_date
=
DateTime
.
Now
,
end_time
=
DateTime
.
Now
.
Add
Minutes
(-
3
),
end_time
=
DateTime
.
Now
.
Add
Days
(-
1
),
status
=
0
,
task_name
=
task_name
};
...
...
@@ -260,9 +260,11 @@ namespace AutoTurnOver.Services
var
now
=
DateTime
.
Now
;
var
fees
=
GetFinancialEventGroups
(
item
,
new_task_synchro_log
.
start_time
,
new_task_synchro_log
.
end_time
);
//var json = fees.ToJson();
foreach
(
var
feeItem
in
fees
.
Where
(
s
=>
s
.
FundTransferStatus
==
"Succeeded"
))
{
var
json
=
fees
.
ToJson
();
foreach
(
var
feeItem
in
fees
.
Where
(
s
=>
s
.
FundTransferStatus
==
"Succeeded"
))
{
dc_base_amazon_fee
transferFee
=
new
dc_base_amazon_fee
{
account
=
item
.
Account
,
...
...
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