@Service
public class ReportDynamicGroupServiceImpl extends ServiceImpl<ReportDynamicGroupMapper, ReportDynamicGroup> implements ReportDynamicGroupService {
@Override
public IPage queryReportDynamicGroups(Long id, Long pageNumber, Long pageSize) {
if (pageNumber == null) {
pageNumber = 1L;
}
if (pageSize == null) {
pageSize = 10L;
}
Page<ReportDynamicGroup> reportDynamicGroupPage = new Page<>(pageNumber, pageSize);
LambdaQueryWrapper<ReportDynamicGroup> eq = new LambdaQueryWrapper<ReportDynamicGroup>().eq(ReportDynamicGroup::getReportId, reportDynamicGroupPage);
return page(reportDynamicGroupPage, eq);
}
}
网友评论