@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, updateByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, 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)
ScheduleJobServicequeryPage in interface ScheduleJobServiceparams - 查询参数@Transactional(rollbackFor=java.lang.Exception.class) public void add(ScheduleJobEntity scheduleJob)
ScheduleJobServiceadd in interface ScheduleJobServicescheduleJob - scheduleJob@Transactional(rollbackFor=java.lang.Exception.class) public void update(ScheduleJobEntity scheduleJob)
ScheduleJobServiceupdate in interface ScheduleJobServicescheduleJob - scheduleJob@Transactional(rollbackFor=java.lang.Exception.class) public void deleteBatch(Long[] jobIds)
ScheduleJobServicedeleteBatch in interface ScheduleJobServicejobIds - jobIdspublic void updateBatch(Long[] jobIds, int status)
ScheduleJobServiceupdateBatch in interface ScheduleJobServicejobIds - jobIdsstatus - status@Transactional(rollbackFor=java.lang.Exception.class) public void run(Long[] jobIds)
ScheduleJobServicerun in interface ScheduleJobServicejobIds - jobIds@Transactional(rollbackFor=java.lang.Exception.class) public void pause(Long[] jobIds)
ScheduleJobServicepause in interface ScheduleJobServicejobIds - jobIds@Transactional(rollbackFor=java.lang.Exception.class) public void resume(Long[] jobIds)
ScheduleJobServiceresume in interface ScheduleJobServicejobIds - jobIdsCopyright © 2021. All rights reserved.