提交 | 用户 | 时间
|
516ef4
|
1 |
package com.iailab.module.shasteel.job.dao; |
L |
2 |
|
|
3 |
import com.baomidou.dynamic.datasource.annotation.Master; |
|
4 |
import com.iailab.framework.common.pojo.PageResult; |
|
5 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
6 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
7 |
import com.iailab.module.shasteel.job.entity.ScheduleJobEntity; |
|
8 |
import com.iailab.module.shasteel.job.vo.ScheduleJobReqVO; |
|
9 |
import org.apache.ibatis.annotations.Mapper; |
|
10 |
|
|
11 |
import java.util.Map; |
|
12 |
|
|
13 |
/** |
|
14 |
* 定时任务 |
|
15 |
* |
|
16 |
* @author Mark sunlightcs@gmail.com |
|
17 |
*/ |
|
18 |
@Master |
|
19 |
@Mapper |
|
20 |
public interface ScheduleJobDao extends BaseMapperX<ScheduleJobEntity> { |
|
21 |
|
|
22 |
default PageResult<ScheduleJobEntity> selectPage(ScheduleJobReqVO reqVO) { |
|
23 |
return selectPage(reqVO, new LambdaQueryWrapperX<ScheduleJobEntity>() |
|
24 |
.likeIfPresent(ScheduleJobEntity::getBeanName, reqVO.getBeanName()) |
|
25 |
.eqIfPresent(ScheduleJobEntity::getTenantId, reqVO.getTenantId()) |
|
26 |
.orderByDesc(ScheduleJobEntity::getCreateDate)); |
|
27 |
|
|
28 |
} |
|
29 |
|
|
30 |
/** |
|
31 |
* 批量更新状态 |
|
32 |
*/ |
|
33 |
int updateBatch(Map<String, Object> map); |
|
34 |
} |