【修改】监控管理页码个数

This commit is contained in:
huababa1
2025-08-19 18:06:55 +08:00
parent c6c16227be
commit f4827ba25d
2 changed files with 14 additions and 1 deletions

View File

@@ -162,4 +162,16 @@ public interface EducationPaperTaskMapper extends BaseMapperX<EducationPaperTask
List<String> selectUserRole(List<String> roleIds);
default long selectEducationPaperTaskTotal(PaperTaskPageVo pageReqVO) {
return selectPage(pageReqVO, new LambdaQueryWrapperX<EducationPaperTask>()
.likeIfPresent(EducationPaperTask::getTaskType, pageReqVO.getTaskType())
.likeIfPresent(EducationPaperTask::getTaskName , pageReqVO.getTaskName())
.likeIfPresent(EducationPaperTask::getStatus , pageReqVO.getStatus())
.likeIfPresent(EducationPaperTask::getTaskNum , pageReqVO.getTaskNum())
.likeIfPresent(EducationPaperTask::getTaskSpecialty , pageReqVO.getTaskSpecialty())
.likeIfPresent(EducationPaperTask::getIsTemplate , pageReqVO.getIsTemplate())
.betweenIfPresent(EducationPaperTask::getCreateTime, pageReqVO.getCreateTime())
).getTotal();
}
}

View File

@@ -42,6 +42,7 @@ public class MonitorTaskServiceImpl implements MonitorTaskService{
public PageResult<MonitorTaskDO> getMonitorPage(PaperTaskPageVo pageReqVO) {
PageResult<EducationPaperTask> educationPaperTasks = educationPaperTaskMapper.selectEducationPaperTaskList(pageReqVO);
long total= educationPaperTaskMapper.selectEducationPaperTaskTotal(pageReqVO);
List<EducationPaperTask> list = educationPaperTasks.getList();
List<MonitorTaskDO> monitorTaskDOList=new ArrayList<>();
if (list!=null&&list.size()>0){
@@ -122,7 +123,7 @@ public class MonitorTaskServiceImpl implements MonitorTaskService{
PageResult pageResult=new PageResult();
pageResult.setList(monitorTaskDOList);
pageResult.setTotal((long) monitorTaskDOList.size());
pageResult.setTotal(total);
return pageResult;