Commit ee86a3fd by huluobin

考勤

parent 0a4db5f8
......@@ -68,9 +68,8 @@ public class CouponCustomerRelevanceServiceImpl extends ServiceImpl<CouponCustom
List<Integer> canUserServeIds = couponCustomerRelevanceMapper.queryCouponCustomerServeRelevance(couponCustomerRelevance.getCouponId());
//订单的服务id
List<Integer> orderServeIds = orderServeList.stream().map(OrderServe::getServeId).collect(Collectors.toList());
//retail
List<Integer> retainIds = ListUtil.retainAll(canUserServeIds, orderServeIds);
return ListUtil.isNotEmpty(retainIds);
canUserServeIds.retainAll(orderServeIds);
return ListUtil.isNotEmpty(canUserServeIds);
})
.peek(couponCustomerRelevance -> {
//卡券作用的服务id (mybatis 缓存)
......
......@@ -5,7 +5,7 @@
SELECT *
from take_leave_event
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}))
and apply_technician_id = #{applyTechnicianId}
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