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
b161d493
Commit
b161d493
authored
Nov 28, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
db3c9cdd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
.gitignore
.gitignore
+3
-2
OrderManageServiceImpl.java
.../application/order/serve/impl/OrderManageServiceImpl.java
+6
-6
CustomerBalanceServiceImplTest.java
...on/user/customer/impl/CustomerBalanceServiceImplTest.java
+1
-1
No files found.
.gitignore
View file @
b161d493
log
*.log
target
\ No newline at end of file
target
/xw-agent-front/
/xw-operation-front/
src/main/java/com/gogirl/application/order/serve/impl/OrderManageServiceImpl.java
View file @
b161d493
...
...
@@ -508,12 +508,12 @@ public class OrderManageServiceImpl extends ServiceImpl<OrderManageMapper, Order
//todo 考虑代付
List
<
CouponCustomerRelevance
>
couponCustomerRelevanceList
=
couponCustomerRelevanceService
.
getOrderCoupon
(
orderManage
.
getOrderUser
(),
orderId
);
couponCustomerRelevanceList
.
stream
()
.
filter
(
couponCustomerRelevance
->
couponCustomerRelevance
.
getDiscountAmount
()
!=
null
)
.
filter
(
couponCustomerRelevance
->
couponCustomerRelevance
.
getDiscountAmount
().
compareTo
(
orderManage
.
getTotalPaymentAmount
())
<=
0
)
.
findAny
()
.
ifPresent
(
couponCustomerRelevance
->
marketService
.
asyncAutoSetCoupon
(
couponCustomerRelevance
.
getId
(),
orderId
));
//
couponCustomerRelevanceList.stream()
//
//
.filter(couponCustomerRelevance -> couponCustomerRelevance.getDiscountAmount() != null)
//
.filter(couponCustomerRelevance -> couponCustomerRelevance.getDiscountAmount().compareTo(orderManage.getTotalPaymentAmount()) <= 0)
//
.findAny()
//
.ifPresent(couponCustomerRelevance -> marketService.asyncAutoSetCoupon(couponCustomerRelevance.getId(), orderId));
pushMsgService
.
sendOrderPayNotifyMsg
(
orderId
,
customer
.
getOpenid1
(),
...
...
src/test/java/com/gogirl/application/user/customer/impl/CustomerBalanceServiceImplTest.java
View file @
b161d493
...
...
@@ -28,6 +28,6 @@ public class CustomerBalanceServiceImplTest {
@org
.
junit
.
Test
public
void
transferBalance
()
{
customerBalanceService
.
transferBalance
(
"
96827361"
,
"18559161648
"
);
customerBalanceService
.
transferBalance
(
"
18671855858"
,
"18671855851
"
);
}
}
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