Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jiujian
/
client-customer-order-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
zhuyifan
2025-02-25 16:27:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a6109161f60e07bf48f4987203a948d85bca5359
a6109161
1 parent
81bfb1a5
支付回调对接
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/infoloop/tianting/service/client/PayServiceClient.java
src/main/java/com/infoloop/tianting/service/client/PayServiceClient.java
View file @
a610916
...
...
@@ -29,6 +29,7 @@ import org.springframework.http.ResponseEntity;
import
org.springframework.stereotype.Service
;
import
org.springframework.web.client.RestTemplate
;
import
java.math.BigDecimal
;
import
java.text.ParseException
;
import
java.time.LocalDateTime
;
...
...
@@ -123,7 +124,7 @@ public class PayServiceClient {
final
var
build
=
ClientCustomerOrderModification
.
newBuilder
()
.
setId
(
orderId
)
.
setShouldUpdatePayTime
(
true
).
setPayTime
(
DateUtil
.
parseDate
(
paymentCallbackResult
.
getTransDate
(),
"yyyyMMddHHmmss"
).
getTime
())
.
setShouldUpdatePayPrice
(
true
).
setPayPrice
(
Convert
.
to
Int
(
paymentCallbackResult
.
getRealAmount
()
))
.
setShouldUpdatePayPrice
(
true
).
setPayPrice
(
Convert
.
to
BigDecimal
(
paymentCallbackResult
.
getRealAmount
()).
multiply
(
new
BigDecimal
(
"100"
)).
intValue
(
))
.
setShouldUpdatePayStatus
(
true
).
setPayStatus
(
PayStatusEnum
.
SUCCEED
)
.
setShouldUpdateTransactionId
(
true
).
setTransactionId
(
paymentCallbackResult
.
getTransSN
())
.
build
();
...
...
Please
register
or
login
to post a comment