LambdaQueryWrapper 查询今天的数据
时间: 2023-10-15 14:24:20 浏览: 317
您可以使用LambdaQueryWrapper进行查询今天的数据。根据引用中的代码示例,您可以使用以下代码来实现:
```java
LambdaQueryWrapper<ProjectSms> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(ProjectSms::getSendTime, LocalDateTime.of(LocalDate.now(), LocalTime.MIN));
List<ProjectSms> projects = projectSmsMapper.selectList(wrapper);
```
这样,您就可以查询到今天的数据了。请注意,您需要将`ProjectSms`替换为您实际的实体类,并将`projectSmsMapper`替换为您的Mapper类的实例。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [MyBatis-Plus QueryWrapper及LambdaQueryWrapper的使用](https://blog.csdn.net/lt326030434/article/details/106571670)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [java 8 lambda表达式和mybatis-plus中结合使用,根据今日时间返回倒序最新数据 queryWrapper常用方法及简单...](https://blog.csdn.net/nn1656353506/article/details/107814760)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文