From ccf75464534965c47866449b2b4e457a6dadede9 Mon Sep 17 00:00:00 2001
From: liriming <1343021927@qq.com>
Date: 星期一, 14 十月 2024 14:13:00 +0800
Subject: [PATCH] 定时任务权限修改

---
 shasteel-biz/src/main/java/com/iailab/module/shasteel/job/dao/ScheduleJobDao.java |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/dao/ScheduleJobDao.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/dao/ScheduleJobDao.java
new file mode 100644
index 0000000..0792a00
--- /dev/null
+++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/dao/ScheduleJobDao.java
@@ -0,0 +1,34 @@
+package com.iailab.module.shasteel.job.dao;
+
+import com.baomidou.dynamic.datasource.annotation.Master;
+import com.iailab.framework.common.pojo.PageResult;
+import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
+import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
+import com.iailab.module.shasteel.job.entity.ScheduleJobEntity;
+import com.iailab.module.shasteel.job.vo.ScheduleJobReqVO;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.Map;
+
+/**
+ * 定时任务
+ *
+ * @author Mark sunlightcs@gmail.com
+ */
+@Master
+@Mapper
+public interface ScheduleJobDao extends BaseMapperX<ScheduleJobEntity> {
+
+	default PageResult<ScheduleJobEntity> selectPage(ScheduleJobReqVO reqVO) {
+		return selectPage(reqVO, new LambdaQueryWrapperX<ScheduleJobEntity>()
+				.likeIfPresent(ScheduleJobEntity::getBeanName, reqVO.getBeanName())
+				.eqIfPresent(ScheduleJobEntity::getTenantId, reqVO.getTenantId())
+				.orderByDesc(ScheduleJobEntity::getCreateDate));
+
+	}
+	
+	/**
+	 * 批量更新状态
+	 */
+	int updateBatch(Map<String, Object> map);
+}

--
Gitblit v1.9.3