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
0577f909
Commit
0577f909
authored
Mar 16, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
long 序列化
parent
2a617d59
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
CouponCustomerRelevanceServiceImpl.java
...ation/market/impl/CouponCustomerRelevanceServiceImpl.java
+6
-1
MarketServiceImpl.java
...com/gogirl/application/market/impl/MarketServiceImpl.java
+12
-2
TimesCardController.java
.../java/com/gogirl/interfaces/user/TimesCardController.java
+6
-1
No files found.
src/main/java/com/gogirl/application/market/impl/CouponCustomerRelevanceServiceImpl.java
View file @
0577f909
...
@@ -84,7 +84,12 @@ public class CouponCustomerRelevanceServiceImpl extends ServiceImpl<CouponCustom
...
@@ -84,7 +84,12 @@ public class CouponCustomerRelevanceServiceImpl extends ServiceImpl<CouponCustom
}
else
{
}
else
{
canUserServeIds
.
retainAll
(
orderServeList
.
stream
()
canUserServeIds
.
retainAll
(
orderServeList
.
stream
()
.
filter
(
orderServe
->
orderServe
.
getBindCoupon
()
==
2
)
.
filter
(
orderServe
->
orderServe
.
getBindCoupon
()
==
2
)
.
filter
(
orderServe
->
orderServe
.
getProduceCurrentPrice
().
compareTo
(
orderServe
.
getProduceBargainPrice
())
>
-
1
)
.
filter
(
orderServe
->
{
if
(
orderServe
.
getProduceId
()
!=
null
)
{
return
orderServe
.
getProduceCurrentPrice
().
compareTo
(
orderServe
.
getProduceBargainPrice
())
>
-
1
;
}
return
true
;
})
.
filter
(
orderServe
->
orderServe
.
getProducePromotionTimeId
()
==
null
)
.
filter
(
orderServe
->
orderServe
.
getProducePromotionTimeId
()
==
null
)
.
filter
(
orderServe
->
orderServe
.
getLeisureDiscountConfigId
()
==
null
||
orderServe
.
getLeisureDiscountConfigId
()
==
0
)
.
filter
(
orderServe
->
orderServe
.
getLeisureDiscountConfigId
()
==
null
||
orderServe
.
getLeisureDiscountConfigId
()
==
0
)
.
map
(
OrderServe:
:
getServeId
)
.
map
(
OrderServe:
:
getServeId
)
...
...
src/main/java/com/gogirl/application/market/impl/MarketServiceImpl.java
View file @
0577f909
...
@@ -634,7 +634,12 @@ public class MarketServiceImpl implements MarketService {
...
@@ -634,7 +634,12 @@ public class MarketServiceImpl implements MarketService {
.
filter
(
orderServe
->
serveIds
.
contains
(
orderServe
.
getServeId
()))
.
filter
(
orderServe
->
serveIds
.
contains
(
orderServe
.
getServeId
()))
.
filter
(
orderServe
->
orderServe
.
getLeisureDiscountConfigId
()
==
null
||
orderServe
.
getLeisureDiscountConfigId
()
==
0
)
.
filter
(
orderServe
->
orderServe
.
getLeisureDiscountConfigId
()
==
null
||
orderServe
.
getLeisureDiscountConfigId
()
==
0
)
.
filter
(
orderServe
->
orderServe
.
getProducePromotionTimeId
()
==
null
)
.
filter
(
orderServe
->
orderServe
.
getProducePromotionTimeId
()
==
null
)
.
filter
(
orderServe
->
orderServe
.
getProduceCurrentPrice
().
compareTo
(
orderServe
.
getProduceBargainPrice
())
>
-
1
)
.
filter
(
orderServe
->
{
if
(
orderServe
.
getProduceId
()
!=
null
)
{
return
orderServe
.
getProduceCurrentPrice
().
compareTo
(
orderServe
.
getProduceBargainPrice
())
>
-
1
;
}
return
true
;
})
.
filter
(
orderServe
->
orderServe
.
getBindCoupon
()
==
2
)
.
filter
(
orderServe
->
orderServe
.
getBindCoupon
()
==
2
)
.
filter
(
Objects:
:
nonNull
)
.
filter
(
Objects:
:
nonNull
)
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
...
@@ -659,7 +664,12 @@ public class MarketServiceImpl implements MarketService {
...
@@ -659,7 +664,12 @@ public class MarketServiceImpl implements MarketService {
.
filter
(
orderServe
->
serveIds
.
contains
(
orderServe
.
getServeId
()))
.
filter
(
orderServe
->
serveIds
.
contains
(
orderServe
.
getServeId
()))
.
filter
(
orderServe
->
orderServe
.
getLeisureDiscountConfigId
()
==
null
||
orderServe
.
getLeisureDiscountConfigId
()
==
0
)
.
filter
(
orderServe
->
orderServe
.
getLeisureDiscountConfigId
()
==
null
||
orderServe
.
getLeisureDiscountConfigId
()
==
0
)
.
filter
(
orderServe
->
orderServe
.
getProducePromotionTimeId
()
==
null
)
.
filter
(
orderServe
->
orderServe
.
getProducePromotionTimeId
()
==
null
)
.
filter
(
orderServe
->
orderServe
.
getProduceCurrentPrice
().
compareTo
(
orderServe
.
getProduceBargainPrice
())
>
-
1
)
.
filter
(
orderServe
->
{
if
(
orderServe
.
getProduceId
()
!=
null
)
{
return
orderServe
.
getProduceCurrentPrice
().
compareTo
(
orderServe
.
getProduceBargainPrice
())
>
-
1
;
}
return
true
;
})
.
filter
(
orderServe
->
orderServe
.
getBindCoupon
()
==
2
)
.
filter
(
orderServe
->
orderServe
.
getBindCoupon
()
==
2
)
.
max
(
Comparator
.
comparing
(
OrderServe:
:
getPayPrice
))
.
max
(
Comparator
.
comparing
(
OrderServe:
:
getPayPrice
))
.
orElse
(
null
);
.
orElse
(
null
);
...
...
src/main/java/com/gogirl/interfaces/user/TimesCardController.java
View file @
0577f909
...
@@ -183,7 +183,12 @@ public class TimesCardController {
...
@@ -183,7 +183,12 @@ public class TimesCardController {
canUserServeIds
.
retainAll
(
orderServeList
.
stream
()
canUserServeIds
.
retainAll
(
orderServeList
.
stream
()
.
filter
(
orderServe
->
orderServe
.
getBindCoupon
()
==
2
)
.
filter
(
orderServe
->
orderServe
.
getBindCoupon
()
==
2
)
.
filter
(
orderServe
->
orderServe
.
getProduceCurrentPrice
().
compareTo
(
orderServe
.
getProduceBargainPrice
())
>
-
1
)
.
filter
(
orderServe
->
{
if
(
orderServe
.
getProduceId
()
!=
null
)
{
return
orderServe
.
getProduceCurrentPrice
().
compareTo
(
orderServe
.
getProduceBargainPrice
())
>
-
1
;
}
return
true
;
})
.
filter
(
orderServe
->
orderServe
.
getProducePromotionTimeId
()
==
null
)
.
filter
(
orderServe
->
orderServe
.
getProducePromotionTimeId
()
==
null
)
.
filter
(
orderServe
->
orderServe
.
getLeisureDiscountConfigId
()
==
null
||
orderServe
.
getLeisureDiscountConfigId
()
==
0
)
.
filter
(
orderServe
->
orderServe
.
getLeisureDiscountConfigId
()
==
null
||
orderServe
.
getLeisureDiscountConfigId
()
==
0
)
.
map
(
OrderServe:
:
getServeId
)
.
map
(
OrderServe:
:
getServeId
)
...
...
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