Toggle navigation
Toggle navigation
This project
Loading...
Sign in
zyn
/
cjs-site
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
bruce
2019-05-31 11:08:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ca986a9d176fa8de3fe205aa90d765c81cc64718
ca986a9d
1 parent
95ec64d0
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
src/main/java/com/cjs/site/biz/user/pick/PickPayBiz.java
src/main/java/com/cjs/site/biz/user/pick/PickPayBiz.java
View file @
ca986a9
...
...
@@ -97,16 +97,16 @@ public class PickPayBiz {
public
Boolean
isValidNotify
(
Map
<
String
,
String
>
result
)
{
if
(
UnionPayUtil
.
checkSign
(
result
))
{
OutpropApplyPayInfo
update
=
new
OutpropApplyPayInfo
();
String
tradeNo
=
result
.
get
(
"billNo"
);
update
.
setTradeNo
(
tradeNo
);
if
(
result
.
get
(
"billStatus"
).
equals
(
UnionConstants
.
NOTIFY_PAY_STATUS
))
{
DefaultTransactionDefinition
def
=
new
DefaultTransactionDefinition
();
def
.
setPropagationBehavior
(
TransactionDefinition
.
PROPAGATION_REQUIRED
);
TransactionStatus
status
=
transactionManager
.
getTransaction
(
def
);
try
{
String
tradeNo
=
result
.
get
(
"billNo"
);
OutpropApplyPayInfo
info
=
outpropApplyPayDao
.
selectByTradeNo
(
tradeNo
);
if
(!
info
.
getStatus
().
equals
(
"2"
))
{
OutpropApplyPayInfo
update
=
new
OutpropApplyPayInfo
();
update
.
setTradeNo
(
tradeNo
);
update
.
setStatus
(
"2"
);
outpropApplyPayDao
.
update
(
update
);
...
...
@@ -129,14 +129,10 @@ public class PickPayBiz {
transactionManager
.
rollback
(
status
);
}
}
else
if
(
result
.
get
(
"billStatus"
).
equals
(
"REFUND"
))
{
OutpropApplyPayInfo
update
=
new
OutpropApplyPayInfo
();
update
.
setTradeNo
(
result
.
get
(
"billNo"
));
update
.
setStatus
(
"4"
);
//退款
outpropApplyPayDao
.
update
(
update
);
return
true
;
}
else
{
OutpropApplyPayInfo
update
=
new
OutpropApplyPayInfo
();
update
.
setTradeNo
(
result
.
get
(
"billNo"
));
update
.
setStatus
(
"3"
);
//支付失败
outpropApplyPayDao
.
update
(
update
);
return
true
;
...
...
Please
register
or
login
to post a comment