// LambdaQueryWrapper
//查询总数
LambdaQueryWrapper<EducationTraining> wrapper = Wrappers.lambdaQuery(EducationTraining.class);
wrapper.eq(EducationTraining::getIsValid, Constant.YES)
.eq(EducationTraining::getState, 1) //状态(0-存草稿;1-上架;2-下架
return baseMapper.selectCount(wrapper);
mybatisplus常用方法
最新推荐文章于 2024-06-25 17:16:19 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)