Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
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
dc-java
Commits
4b5c392b
Commit
4b5c392b
authored
Jul 12, 2019
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
paymentDate为null
parent
40e481fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
PayPalSyncJob.java
...paypal/src/main/java/com/bailuntec/job/PayPalSyncJob.java
+8
-5
No files found.
data-base/base-sync-paypal/src/main/java/com/bailuntec/job/PayPalSyncJob.java
View file @
4b5c392b
...
@@ -97,11 +97,6 @@ public class PayPalSyncJob extends PointJob {
...
@@ -97,11 +97,6 @@ public class PayPalSyncJob extends PointJob {
try
{
try
{
for
(
DcBaseFinancePaypal
paypal
:
data
)
{
for
(
DcBaseFinancePaypal
paypal
:
data
)
{
handleSourceJson
(
paypal
);
handleSourceJson
(
paypal
);
Instant
instant
=
paypal
.
getPaymentDate
().
toInstant
();
ZoneId
zone
=
ZoneId
.
systemDefault
();
LocalDateTime
paymentDate
=
LocalDateTime
.
ofInstant
(
instant
,
zone
);
BigDecimal
exchangeRate
=
CallBailunSystem
.
getExchangeRate
(
paypal
.
getCurrency
(),
CurrencyType
.
CNY
.
value
(),
paymentDate
);
paypal
.
setOtherToCnyExchangeRate
(
exchangeRate
);
DcBaseFinancePaypalMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseFinancePaypalMapper
.
class
);
DcBaseFinancePaypalMapper
mapper
=
SessionUtil
.
getSession
().
getMapper
(
DcBaseFinancePaypalMapper
.
class
);
mapper
.
upsertSelective
(
paypal
);
mapper
.
upsertSelective
(
paypal
);
}
}
...
@@ -122,6 +117,14 @@ public class PayPalSyncJob extends PointJob {
...
@@ -122,6 +117,14 @@ public class PayPalSyncJob extends PointJob {
paypal
.
setPayerId
(
getValue
(
sourceJson
,
"PayerID\":"
));
paypal
.
setPayerId
(
getValue
(
sourceJson
,
"PayerID\":"
));
paypal
.
setCurrencyId
(
getValue
(
sourceJson
,
"currencyID\":"
)
==
null
?
0
:
Integer
.
parseInt
(
getValue
(
sourceJson
,
"currencyID\":"
))
);
paypal
.
setCurrencyId
(
getValue
(
sourceJson
,
"currencyID\":"
)
==
null
?
0
:
Integer
.
parseInt
(
getValue
(
sourceJson
,
"currencyID\":"
))
);
paypal
.
setCurrency
(
CurrencyType
.
getVal
(
paypal
.
getCurrencyId
()));
paypal
.
setCurrency
(
CurrencyType
.
getVal
(
paypal
.
getCurrencyId
()));
if
(
paypal
.
getPaymentDate
()
!=
null
)
{
Instant
instant
=
paypal
.
getPaymentDate
().
toInstant
();
ZoneId
zone
=
ZoneId
.
systemDefault
();
LocalDateTime
paymentDate
=
LocalDateTime
.
ofInstant
(
instant
,
zone
);
BigDecimal
exchangeRate
=
CallBailunSystem
.
getExchangeRate
(
paypal
.
getCurrency
(),
CurrencyType
.
CNY
.
value
(),
paymentDate
);
paypal
.
setOtherToCnyExchangeRate
(
exchangeRate
);
}
}
}
}
}
...
...
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