选煤厂安全管理平台后台代码
houzhongjian
2024-11-22 c18e5a14aa49877a49a07ffd8f3b3917d5aca55a
提交 | 用户 | 时间
c18e5a 1 package com.iailab.module.sms.job.dao;
H 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.sms.job.entity.ScheduleJobEntity;
8 import com.iailab.module.sms.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 }