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
83b3858b
Commit
83b3858b
authored
Nov 11, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d4c35b8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
MarketServiceImpl.java
...irl/application/market/coupon/impl/MarketServiceImpl.java
+1
-2
CouponsForConsumptionMapper.xml
...rces/mapper/market/coupon/CouponsForConsumptionMapper.xml
+10
-5
No files found.
src/main/java/com/gogirl/application/market/coupon/impl/MarketServiceImpl.java
View file @
83b3858b
...
@@ -348,7 +348,7 @@ public class MarketServiceImpl implements MarketService {
...
@@ -348,7 +348,7 @@ public class MarketServiceImpl implements MarketService {
});
});
OrderManage
orderManage
=
orderManageMapper
.
selectById
(
orderId
);
OrderManage
orderManage
=
orderManageMapper
.
selectById
(
orderId
);
couponsForConsumptionService
.
sendGift
(
orderManage
.
getOrderUser
(),
CouponsGift
.
BEHAVIOR_FINISH_ORDER
,
orderId
);
couponsForConsumptionService
.
sendGift
(
orderManage
.
getOrderUser
(),
CouponsGift
.
BEHAVIOR_FINISH_ORDER
,
orderId
);
}
}
...
@@ -1339,7 +1339,6 @@ public class MarketServiceImpl implements MarketService {
...
@@ -1339,7 +1339,6 @@ public class MarketServiceImpl implements MarketService {
}
else
{
}
else
{
throw
new
RRException
(
"%s与其他卡券冲突"
,
couponCustomerRelevance
.
getCouponName
());
throw
new
RRException
(
"%s与其他卡券冲突"
,
couponCustomerRelevance
.
getCouponName
());
}
}
});
});
}
}
...
...
src/main/resources/mapper/market/coupon/CouponsForConsumptionMapper.xml
View file @
83b3858b
...
@@ -8,18 +8,23 @@
...
@@ -8,18 +8,23 @@
LEFT JOIN coupons_for_consumption t2 on t2.order_amount_type = 1
LEFT JOIN coupons_for_consumption t2 on t2.order_amount_type = 1
and t1.total_price
<
= t2.order_amount_up
and t1.total_price
<
= t2.order_amount_up
and t1.total_price
>
t2.order_amount_down
and t1.total_price
>
t2.order_amount_down
LEFT JOIN order_serve t3 on t1.id = t3.order_id and t2.order_serve_type = t3.serve_type
where t1.id = #{orderId}
where t1.id = #{orderId}
and t2.id is not null
and t2.id is not null
and t1.department_id = t2.store_id
and t1.department_id = t2.store_id
and t3.id is not null
union
union
SELECT t
3
.*
SELECT t
2
.*
from order_manage t1
from order_manage t1
LEFT JOIN coupons_for_consumption t3 on t3.order_amount_type = 2
LEFT JOIN coupons_for_consumption t2 on t2.order_amount_type = 2
and t1.total_payment_amount
<
= t3.order_amount_up
and t1.total_payment_amount
<
= t2.order_amount_up
and t1.total_payment_amount
>
= t3.order_amount_down
and t1.total_payment_amount
>
= t2.order_amount_down
and t1.department_id = t3.store_id
and t1.department_id = t2.store_id
LEFT JOIN order_serve t3 on t1.id = t3.order_id and t2.order_serve_type = t3.serve_type
where t1.id = #{orderId}
where t1.id = #{orderId}
and t2.id is not null
and t3.id is not null
and t3.id is not null
and t1.department_id = t2.store_id
order by orders
order by orders
limit 1
limit 1
</select>
</select>
...
...
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