|
@@ -1,6 +1,8 @@
|
|
|
package com.sky.ioc.service.job.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
import com.sky.ioc.constant.Constant;
|
|
|
import com.sky.ioc.entity.QuartzJob;
|
|
|
import com.sky.ioc.mapper.job.QuartzJobMapper;
|
|
@@ -55,15 +57,17 @@ public class QuartzJobServiceImpl extends ServiceImpl<QuartzJobMapper, QuartzJob
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public ReturnMsg pageList(String name, String groupName, Integer status, Integer pageStart, Integer pageSize) {
|
|
|
+ public ReturnMsg pageList(String name, String groupName, Integer status, Integer page, Integer pageSize) {
|
|
|
if(StringUtils.isNotBlank(name)){
|
|
|
name = "%"+name+"%";
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(groupName)){
|
|
|
groupName = "%"+groupName+"%";
|
|
|
}
|
|
|
- List<QuartzJob> lists = quartzJobMapper.pageList(name,groupName,status,pageStart,pageSize);
|
|
|
- return ReturnMsg.ok(lists);
|
|
|
+ PageHelper.startPage(page,pageSize);
|
|
|
+ List<QuartzJob> lists = quartzJobMapper.pageList(name,groupName,status);
|
|
|
+
|
|
|
+ return ReturnMsg.ok(new PageInfo<>(lists));
|
|
|
}
|
|
|
|
|
|
/**
|