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
ee86a3fd
Commit
ee86a3fd
authored
Apr 24, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考勤
parent
0a4db5f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
CouponCustomerRelevanceServiceImpl.java
...arket/coupon/impl/CouponCustomerRelevanceServiceImpl.java
+2
-3
TakeLeaveEventMapper.xml
src/main/resources/mapper/store/TakeLeaveEventMapper.xml
+1
-1
No files found.
src/main/java/com/gogirl/application/market/coupon/impl/CouponCustomerRelevanceServiceImpl.java
View file @
ee86a3fd
...
@@ -68,9 +68,8 @@ public class CouponCustomerRelevanceServiceImpl extends ServiceImpl<CouponCustom
...
@@ -68,9 +68,8 @@ public class CouponCustomerRelevanceServiceImpl extends ServiceImpl<CouponCustom
List
<
Integer
>
canUserServeIds
=
couponCustomerRelevanceMapper
.
queryCouponCustomerServeRelevance
(
couponCustomerRelevance
.
getCouponId
());
List
<
Integer
>
canUserServeIds
=
couponCustomerRelevanceMapper
.
queryCouponCustomerServeRelevance
(
couponCustomerRelevance
.
getCouponId
());
//订单的服务id
//订单的服务id
List
<
Integer
>
orderServeIds
=
orderServeList
.
stream
().
map
(
OrderServe:
:
getServeId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
orderServeIds
=
orderServeList
.
stream
().
map
(
OrderServe:
:
getServeId
).
collect
(
Collectors
.
toList
());
//retail
canUserServeIds
.
retainAll
(
orderServeIds
);
List
<
Integer
>
retainIds
=
ListUtil
.
retainAll
(
canUserServeIds
,
orderServeIds
);
return
ListUtil
.
isNotEmpty
(
canUserServeIds
);
return
ListUtil
.
isNotEmpty
(
retainIds
);
})
})
.
peek
(
couponCustomerRelevance
->
{
.
peek
(
couponCustomerRelevance
->
{
//卡券作用的服务id (mybatis 缓存)
//卡券作用的服务id (mybatis 缓存)
...
...
src/main/resources/mapper/store/TakeLeaveEventMapper.xml
View file @
ee86a3fd
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
SELECT *
SELECT *
from take_leave_event
from take_leave_event
where ((start_time
<
= #{endTime} and end_time
>
= #{endTime})
where ((start_time
<
= #{endTime} and end_time
>
= #{endTime})
or (start_time
<
#{startTime} and start_time
>
#{startTime})
or (start_time
<
= #{startTime} and start_time
>
=
#{startTime})
or (start_time
>
= #{startTime} and end_time
<
= #{endTime}))
or (start_time
>
= #{startTime} and end_time
<
= #{endTime}))
and apply_technician_id = #{applyTechnicianId}
and apply_technician_id = #{applyTechnicianId}
and `status` != 3
and `status` != 3
...
...
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