企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
代码如下: ``` /** * 条件查询-无分页 */ @Override public List<ProTimeZoneEntity> getList(ProTimeZoneSearch proTimeZoneSearch) { // 创建查询包装器 LambdaQueryWrapper<ProTimeZoneEntity> queryWrapper = LambdaSearchFactory.buildWrapper(proTimeZoneSearch, ProTimeZoneEntity.class); // 设置排序 queryWrapper.orderByAsc(ProTimeZoneEntity::getSort); // 返回 return this.list(queryWrapper); } /** * 条件查询-带分页 */ @Override public PageResult<ProjectInfoEntity> getPage(ProjectInfoSearch projectInfoSearch) { // 设置条件查询 LambdaQueryWrapper<ProjectInfoEntity> queryWrapper = LambdaSearchFactory.buildWrapper(projectInfoSearch, ProjectInfoEntity.class); // 设置排序 queryWrapper.orderByDesc(ProjectInfoEntity::getProjectCode); // 分页查询 Page<ProjectInfoEntity> projectInfoPage = this.baseMapper.selectPage(projectInfoSearch, queryWrapper); // 返回 return PageResultFactory.pageResult(projectInfoPage); }