Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
82ffa80c
Commit
82ffa80c
authored
Sep 26, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改美团优惠券的支付金额的获取
parent
12b51259
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
QPServiceImpl.java
...rc/main/java/share/system/service/impl/QPServiceImpl.java
+4
-1
No files found.
share-system/src/main/java/share/system/service/impl/QPServiceImpl.java
View file @
82ffa80c
...
@@ -55,6 +55,7 @@ import java.util.List;
...
@@ -55,6 +55,7 @@ import java.util.List;
import
java.util.UUID
;
import
java.util.UUID
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
@Service
@Service
public
class
QPServiceImpl
implements
QPService
{
public
class
QPServiceImpl
implements
QPService
{
...
@@ -138,7 +139,9 @@ public class QPServiceImpl implements QPService {
...
@@ -138,7 +139,9 @@ public class QPServiceImpl implements QPService {
sConsumerCoupon
.
setCreateBy
(
String
.
valueOf
(
user
.
getId
()));
sConsumerCoupon
.
setCreateBy
(
String
.
valueOf
(
user
.
getId
()));
sConsumerCoupon
.
setCreateTime
(
new
Date
());
sConsumerCoupon
.
setCreateTime
(
new
Date
());
sConsumerCoupon
.
setOriginalPrice
(
BigDecimal
.
valueOf
(
prepare
.
getDeal_marketprice
()));
sConsumerCoupon
.
setOriginalPrice
(
BigDecimal
.
valueOf
(
prepare
.
getDeal_marketprice
()));
sConsumerCoupon
.
setCouponPayPrice
(
prepare
.
getPayment_detail
().
get
(
0
).
getAmount
());
Stream
<
TuangouReceiptPreparePaymentDetail
>
tuangouReceiptPreparePaymentDetailStream
=
prepare
.
getPayment_detail
().
stream
().
filter
(
o
->
o
.
getAmount_type
().
equals
(
10L
)
||
o
.
getAmount_type
().
equals
(
23L
)
||
o
.
getAmount_type
().
equals
(
25L
)
||
o
.
getAmount_type
().
equals
(
26L
)
||
o
.
getAmount_type
().
equals
(
29L
));
BigDecimal
couponPayPrice
=
tuangouReceiptPreparePaymentDetailStream
.
map
(
o
->
o
.
getAmount
()).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
sConsumerCoupon
.
setCouponPayPrice
(
couponPayPrice
);
//查询美团团购信息
//查询美团团购信息
List
<
TuangouDealQueryShopDealResponseEntity
>
groupActivities
=
queryshopdeal
(
sStore
.
getOpenShopUuid
());
List
<
TuangouDealQueryShopDealResponseEntity
>
groupActivities
=
queryshopdeal
(
sStore
.
getOpenShopUuid
());
groupActivities
.
forEach
(
o
->
{
groupActivities
.
forEach
(
o
->
{
...
...
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