实现sql:
select * from table where name = '名字' and ( startTime between '2021-09-24' and '2021-09-25' or endTime bewteen '2021-09-24' and '2021-09-25')
条件组装
QueryWrapper<Entity> wrapper = new QueryWrapper<>();
wrapper.eq("name", "名字");
wrapper.and(wq ->
wq.between("start_time", vo.getStartTime(), vo.getEndTime())
.or()
.between("end_time", vo.getStartTime(), vo.getEndTime())
);