Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
87a35978
Commit
87a35978
authored
Jul 27, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
66735aa9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
MyWalletBiz.java
...va/com/github/wxiaoqi/security/admin/biz/MyWalletBiz.java
+3
-3
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/MyWalletBiz.java
View file @
87a35978
...
@@ -189,13 +189,13 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> {
...
@@ -189,13 +189,13 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> {
myWallet
.
setUserId
(
userId
);
myWallet
.
setUserId
(
userId
);
myWallet
=
selectOne
(
myWallet
);
myWallet
=
selectOne
(
myWallet
);
if
(
myWallet
==
null
){
if
(
myWallet
==
null
){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL
_CODE
,
"钱包不存在"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED
_CODE
,
"钱包不存在"
);
}
}
if
(
amount
.
compareTo
(
myWallet
.
getBalance
())>
0
){
if
(
amount
.
compareTo
(
myWallet
.
getBalance
())>
0
){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL
_CODE
,
"提现金额不能大于钱包金额"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED
_CODE
,
"提现金额不能大于钱包金额"
);
}
}
if
(
StringUtils
.
isNotBlank
(
password
)&&!
encoder
.
matches
(
password
,
myWallet
.
getPayPassword
())){
if
(
StringUtils
.
isNotBlank
(
password
)&&!
encoder
.
matches
(
password
,
myWallet
.
getPayPassword
())){
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
NULL
_CODE
,
"支付密码错误"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED
_CODE
,
"支付密码错误"
);
}
}
WithDrawRuleVo
ruleVo
=
configFeign
.
getWithDrawRule
();
WithDrawRuleVo
ruleVo
=
configFeign
.
getWithDrawRule
();
BigDecimal
proceduReates
=
BigDecimal
.
ZERO
;
BigDecimal
proceduReates
=
BigDecimal
.
ZERO
;
...
...
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