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
15d2d17e
Commit
15d2d17e
authored
Mar 16, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
卡券修改
parent
60ef85fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
MarketServiceImpl.java
...com/gogirl/application/market/impl/MarketServiceImpl.java
+3
-4
No files found.
src/main/java/com/gogirl/application/market/impl/MarketServiceImpl.java
View file @
15d2d17e
...
@@ -427,7 +427,7 @@ public class MarketServiceImpl implements MarketService {
...
@@ -427,7 +427,7 @@ public class MarketServiceImpl implements MarketService {
//抵扣的服务为 作用范围内支付金额最高的服务
//抵扣的服务为 作用范围内支付金额最高的服务
OrderServe
orderServe
=
this
.
queryMaxPayPrice
(
orderManage
,
serveIds
);
OrderServe
orderServe
=
this
.
queryMaxPayPrice
(
orderManage
,
serveIds
);
if
(
orderServe
!=
null
)
{
if
(
orderServe
!=
null
)
{
//如果有属于这个服务的辅助服务 就查出来一起折扣
//如果有属于这个服务的辅助服务 就查出来一起折扣
OrderServe
supportServe
=
this
.
querySupportServe
(
orderManage
,
orderServe
);
OrderServe
supportServe
=
this
.
querySupportServe
(
orderManage
,
orderServe
);
...
@@ -492,8 +492,7 @@ public class MarketServiceImpl implements MarketService {
...
@@ -492,8 +492,7 @@ public class MarketServiceImpl implements MarketService {
orderManage
.
addDiscountPrice
(
actualSupportServeDiscountAmount
);
orderManage
.
addDiscountPrice
(
actualSupportServeDiscountAmount
);
orderServe
.
setBindCoupon
(
1
);
orderServe
.
setBindCoupon
(
1
);
}
}
}
}
else
{
else
{
couponCustomerRelevance
.
setOrderId
(
null
);
couponCustomerRelevance
.
setOrderId
(
null
);
couponCustomerRelevanceMapper
.
updateById
(
couponCustomerRelevance
);
couponCustomerRelevanceMapper
.
updateById
(
couponCustomerRelevance
);
}
}
...
@@ -611,7 +610,7 @@ public class MarketServiceImpl implements MarketService {
...
@@ -611,7 +610,7 @@ public class MarketServiceImpl implements MarketService {
.
filter
(
orderServe
->
orderServe
.
getProduceCurrentPrice
()
==
null
)
.
filter
(
orderServe
->
orderServe
.
getProduceCurrentPrice
()
==
null
)
.
filter
(
orderServe
->
orderServe
.
getBindCoupon
()
!=
1
)
.
filter
(
orderServe
->
orderServe
.
getBindCoupon
()
!=
1
)
.
max
(
Comparator
.
comparing
(
OrderServe:
:
getPayPrice
))
.
max
(
Comparator
.
comparing
(
OrderServe:
:
getPayPrice
))
.
orElse
Throw
(
RRException:
:
new
);
.
orElse
(
null
);
}
}
...
...
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