Commit ee86a3fd by huluobin

考勤

parent 0a4db5f8
...@@ -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 缓存)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
SELECT * SELECT *
from take_leave_event from take_leave_event
where ((start_time &lt;= #{endTime} and end_time &gt;= #{endTime}) where ((start_time &lt;= #{endTime} and end_time &gt;= #{endTime})
or (start_time &lt; #{startTime} and start_time &gt; #{startTime}) or (start_time &lt;= #{startTime} and start_time &gt;= #{startTime})
or (start_time &gt;= #{startTime} and end_time &lt;= #{endTime})) or (start_time &gt;= #{startTime} and end_time &lt;= #{endTime}))
and apply_technician_id = #{applyTechnicianId} and apply_technician_id = #{applyTechnicianId}
and `status` != 3 and `status` != 3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment