@Service(value="scheduleJobService") public class ScheduleJobServiceImpl extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<ScheduleJobDao,ScheduleJobEntity> implements ScheduleJobService
Constructor and Description |
---|
ScheduleJobServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
add(ScheduleJobEntity scheduleJob)
新增定时任务
|
void |
deleteBatch(Long[] jobIds)
批量删除定时任务
|
void |
init()
项目启动时,初始化定时器
|
void |
pause(Long[] jobIds)
暂停运行
|
PageUtilsPlus |
queryPage(Map<String,Object> params)
获取分页数据
|
void |
resume(Long[] jobIds)
恢复运行
|
void |
run(Long[] jobIds)
立即执行
|
void |
update(ScheduleJobEntity scheduleJob)
更新定时任务
|
void |
updateBatch(Long[] jobIds,
int status)
批量更新定时任务状态
|
closeSqlSession, count, currentModelClass, getBaseMapper, getById, getMap, getOne, list, listByIds, listByMap, listMaps, listObjs, page, pageMaps, remove, removeById, removeByIds, removeByMap, retBool, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, update, updateBatchById, updateById
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
count, count, getBaseMapper, getById, getMap, getObj, getOne, getOne, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateById
@PostConstruct public void init()
public PageUtilsPlus queryPage(Map<String,Object> params)
ScheduleJobService
queryPage
in interface ScheduleJobService
params
- 查询参数@Transactional(rollbackFor=java.lang.Exception.class) public void add(ScheduleJobEntity scheduleJob)
ScheduleJobService
add
in interface ScheduleJobService
scheduleJob
- scheduleJob@Transactional(rollbackFor=java.lang.Exception.class) public void update(ScheduleJobEntity scheduleJob)
ScheduleJobService
update
in interface ScheduleJobService
scheduleJob
- scheduleJob@Transactional(rollbackFor=java.lang.Exception.class) public void deleteBatch(Long[] jobIds)
ScheduleJobService
deleteBatch
in interface ScheduleJobService
jobIds
- jobIdspublic void updateBatch(Long[] jobIds, int status)
ScheduleJobService
updateBatch
in interface ScheduleJobService
jobIds
- jobIdsstatus
- status@Transactional(rollbackFor=java.lang.Exception.class) public void run(Long[] jobIds)
ScheduleJobService
run
in interface ScheduleJobService
jobIds
- jobIds@Transactional(rollbackFor=java.lang.Exception.class) public void pause(Long[] jobIds)
ScheduleJobService
pause
in interface ScheduleJobService
jobIds
- jobIds@Transactional(rollbackFor=java.lang.Exception.class) public void resume(Long[] jobIds)
ScheduleJobService
resume
in interface ScheduleJobService
jobIds
- jobIdsCopyright © 2021. All rights reserved.