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
9a52ca8c
Commit
9a52ca8c
authored
May 13, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a01285a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
ChargeOrderServiceImpl.java
...application/order/member/impl/ChargeOrderServiceImpl.java
+12
-3
Test.java
src/test/java/com/gogirl/Test.java
+1
-1
No files found.
src/main/java/com/gogirl/application/order/member/impl/ChargeOrderServiceImpl.java
View file @
9a52ca8c
...
@@ -134,8 +134,8 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg
...
@@ -134,8 +134,8 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg
.
discount
(
1.00
)
.
discount
(
1.00
)
.
currentBalance
(
customerBalance
.
getBalance
())
.
currentBalance
(
customerBalance
.
getBalance
())
.
bestowAmount
(
0
)
.
bestowAmount
(
0
)
//首次充值
//
fF
首次充值
.
type
(
1
)
.
type
(
2
)
.
customerId
(
customer
.
getId
())
.
customerId
(
customer
.
getId
())
//微信支付
//微信支付
.
source
(
1
)
.
source
(
1
)
...
@@ -249,7 +249,16 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg
...
@@ -249,7 +249,16 @@ public class ChargeOrderServiceImpl extends ServiceImpl<ChargeOrderMapper, Charg
CustomerBalance
customerBalance
=
customerBalanceMapper
.
selectOne
(
new
LambdaQueryWrapper
<
CustomerBalance
>()
CustomerBalance
customerBalance
=
customerBalanceMapper
.
selectOne
(
new
LambdaQueryWrapper
<
CustomerBalance
>()
.
eq
(
CustomerBalance:
:
getCustomerId
,
customer
.
getId
()));
.
eq
(
CustomerBalance:
:
getCustomerId
,
customer
.
getId
()));
//充值类型
//充值类型
Integer
type
=
customerBalance
==
null
?
2
:
1
;
Integer
type
;
if
(
customerBalance
==
null
)
{
type
=
2
;
}
else
if
(
customerBalance
.
getBalance
()
==
0
&&
customerBalanceRecordMapper
.
selectCount
(
new
LambdaQueryWrapper
<
CustomerBalanceRecord
>().
eq
(
CustomerBalanceRecord:
:
getCustomerId
,
customer
.
getId
())
)
==
0
)
{
type
=
2
;
}
else
{
type
=
1
;
}
//如果会员卡不存在就新增会员卡
//如果会员卡不存在就新增会员卡
if
(
customerBalance
==
null
)
{
if
(
customerBalance
==
null
)
{
...
...
src/test/java/com/gogirl/Test.java
View file @
9a52ca8c
...
@@ -443,7 +443,7 @@ public class Test {
...
@@ -443,7 +443,7 @@ public class Test {
.
currentBalance
(
customerBalance
.
getBalance
())
.
currentBalance
(
customerBalance
.
getBalance
())
.
bestowAmount
(
0
)
.
bestowAmount
(
0
)
//首次充值
//首次充值
.
type
(
1
)
.
type
(
2
)
.
customerId
(
customer
.
getId
())
.
customerId
(
customer
.
getId
())
//微信支付
//微信支付
.
source
(
1
)
.
source
(
1
)
...
...
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