Jay
2024-11-25 ee9f604388a3e77d3f4654e326f3976552e7f532
提交 | 用户 | 时间
a6de49 1 package com.iailab.module.data.job.dao;
H 2
0fbd01 3 import com.baomidou.dynamic.datasource.annotation.Master;
cd5f85 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;
a6de49 7 import com.iailab.module.data.job.entity.ScheduleJobEntity;
cd5f85 8 import com.iailab.module.data.job.vo.ScheduleJobReqVO;
a6de49 9 import org.apache.ibatis.annotations.Mapper;
H 10
11 import java.util.Map;
12
13 /**
14  * 定时任务
15  *
16  * @author Mark sunlightcs@gmail.com
17  */
0fbd01 18 @Master
a6de49 19 @Mapper
cd5f85 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     }
a6de49 29     
H 30     /**
31      * 批量更新状态
32      */
33     int updateBatch(Map<String, Object> map);
34 }