Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
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
huluobin
gogirl-miniapp-backend
Commits
a0e34f73
Commit
a0e34f73
authored
Nov 04, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decimal divide
parent
6284ec5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
AgentUserServiceImpl.java
.../gogirl/application/common/impl/AgentUserServiceImpl.java
+1
-1
MallOrderPayServiceImpl.java
.../application/order/mall/impl/MallOrderPayServiceImpl.java
+1
-1
No files found.
src/main/java/com/gogirl/application/common/impl/AgentUserServiceImpl.java
View file @
a0e34f73
...
...
@@ -141,7 +141,7 @@ public class AgentUserServiceImpl extends ServiceImpl<AgentUserMapper, AgentUser
switch
(
type
)
{
case
1
:
case
2
:
agentUser
.
setBalance
(
agentUser
.
getBalance
().
subtract
(
amount
));
agentUser
.
setBalance
(
agentUser
.
getBalance
().
add
(
amount
));
if
(
agentUser
.
getBalance
().
compareTo
(
BigDecimal
.
ZERO
)
<
0
)
{
throw
new
RRException
(
"余额不足"
);
}
...
...
src/main/java/com/gogirl/application/order/mall/impl/MallOrderPayServiceImpl.java
View file @
a0e34f73
...
...
@@ -114,7 +114,7 @@ public class MallOrderPayServiceImpl implements MallOrderPayService {
if
(
agentUser
==
null
)
{
throw
new
RRException
(
ErrorCode
.
ER_2007
);
}
agentUserService
.
addBalanceLog
(
2
,
mallOrder
.
getTotalPayAmount
(
),
agentUser
.
getId
());
agentUserService
.
addBalanceLog
(
2
,
BigDecimal
.
ZERO
.
subtract
(
mallOrder
.
getTotalPayAmount
()
),
agentUser
.
getId
());
mallOrder
.
setStatus
(
MallOrder
.
STATUS_UN_SHIP
);
...
...
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