Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
base_platform_enterprise
gic-platform-enterprise
Commits
8ba4fb53
Commit
8ba4fb53
authored
Sep 21, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd
parent
6f8cc773
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
BillingPayInfoApiServiceImpl.java
...rise/service/outer/impl/BillingPayInfoApiServiceImpl.java
+8
-8
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/BillingPayInfoApiServiceImpl.java
View file @
8ba4fb53
...
@@ -118,15 +118,15 @@ public class BillingPayInfoApiServiceImpl implements BillingPayInfoApiService {
...
@@ -118,15 +118,15 @@ public class BillingPayInfoApiServiceImpl implements BillingPayInfoApiService {
public
ServiceResponse
<
Void
>
wxCallBack
(
String
resDataStr
)
{
public
ServiceResponse
<
Void
>
wxCallBack
(
String
resDataStr
)
{
ScanPayResDataDTO
resData
=
JSON
.
parseObject
(
resDataStr
,
ScanPayResDataDTO
.
class
);
ScanPayResDataDTO
resData
=
JSON
.
parseObject
(
resDataStr
,
ScanPayResDataDTO
.
class
);
ApprovalCallBackDTO
approvalCallBackDTO
=
new
ApprovalCallBackDTO
();
ApprovalCallBackDTO
approvalCallBackDTO
=
new
ApprovalCallBackDTO
();
approvalCallBackDTO
.
setPaySerialNumber
(
resData
.
getOut
TradeN
o
());
approvalCallBackDTO
.
setPaySerialNumber
(
resData
.
getOut
_trade_n
o
());
approvalCallBackDTO
.
setEnterpriseId
(
Integer
.
valueOf
(
resData
.
getAttach
().
split
(
":"
)[
1
]));
approvalCallBackDTO
.
setEnterpriseId
(
Integer
.
valueOf
(
resData
.
getAttach
().
split
(
":"
)[
1
]));
approvalCallBackDTO
.
setErrorCode
(
resData
.
getErr
C
ode
());
approvalCallBackDTO
.
setErrorCode
(
resData
.
getErr
_c
ode
());
approvalCallBackDTO
.
setErrorCodeRes
(
resData
.
getErr
CodeD
es
());
approvalCallBackDTO
.
setErrorCodeRes
(
resData
.
getErr
_code_d
es
());
approvalCallBackDTO
.
setTimeEnd
(
resData
.
getTime
E
nd
());
approvalCallBackDTO
.
setTimeEnd
(
resData
.
getTime
_e
nd
());
approvalCallBackDTO
.
setPrepayId
(
resData
.
getPrepay
I
d
());
approvalCallBackDTO
.
setPrepayId
(
resData
.
getPrepay
_i
d
());
approvalCallBackDTO
.
setResultCode
(
StringUtils
.
equalsIgnoreCase
(
resData
.
getResult
C
ode
(),
"SUCCESS"
)
?
1
:
0
);
approvalCallBackDTO
.
setResultCode
(
StringUtils
.
equalsIgnoreCase
(
resData
.
getResult
_c
ode
(),
"SUCCESS"
)
?
1
:
0
);
approvalCallBackDTO
.
setTotalFeePaid
(
new
BigDecimal
(
resData
.
getTotal
F
ee
()).
divide
(
new
BigDecimal
(
"100"
),
5
,
RoundingMode
.
HALF_UP
).
doubleValue
());
approvalCallBackDTO
.
setTotalFeePaid
(
new
BigDecimal
(
resData
.
getTotal
_f
ee
()).
divide
(
new
BigDecimal
(
"100"
),
5
,
RoundingMode
.
HALF_UP
).
doubleValue
());
approvalCallBackDTO
.
setOnlineSerialNumber
(
resData
.
getTransaction
I
d
());
approvalCallBackDTO
.
setOnlineSerialNumber
(
resData
.
getTransaction
_i
d
());
return
strategyMap
.
get
(
PayTypeEnum
.
WE_CHAT_PAY
.
getCode
()
+
""
).
callBack
(
approvalCallBackDTO
);
return
strategyMap
.
get
(
PayTypeEnum
.
WE_CHAT_PAY
.
getCode
()
+
""
).
callBack
(
approvalCallBackDTO
);
}
}
...
...
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