//设置一个月的时间
LocalDateTime now = LocalDateTime.now();
LocalDateTime startDate = now.with(TemporalAdjusters.firstDayOfMonth()).with(LocalTime.MIN);
LocalDateTime endDate = now.with(TemporalAdjusters.lastDayOfMonth()).with(LocalTime.MAX);
Y y = this.getOne(Wrappers.lambdaQuery(Y.class)
//获取的范围为当月的数据
.ge(YcBranchScoreApply::getCreateTime, startDate)
.le(YcBranchScoreApply::getCreateTime, endDate));
如何查询当月的数据范围
最新推荐文章于 2024-08-26 16:40:46 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)