智慧保安后台管理-外网
Administrator
2022-06-16 8b375fe00a241b3a769b82fe3dac8d1c9dce8a02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.quartz.mapper.ScheduledJobMapper">
 
    <!--自定义查询任务分页数据-->
    <select id="selectPageScheduledJobPage" resultType="org.springblade.modules.quartz.vo.ScheduledJobVO">
        select * from sys_scheduled_job
        where 1=1
        <if test="scheduledJob.name!=null and scheduledJob.name!=''">
            and name like concat('%',#{scheduledJob.name},'%')
        </if>
        <if test="scheduledJob.methodName!=null and scheduledJob.methodName!=''">
            and method_name like concat('%',#{scheduledJob.methodName},'%')
        </if>
        <if test="scheduledJob.beanName!=null and scheduledJob.beanName!=''">
            and bean_name like concat('%',#{scheduledJob.beanName},'%')
        </if>
        <if test="scheduledJob.params!=null and scheduledJob.params!=''">
            and params like concat('%',#{scheduledJob.params},'%')
        </if>
        <if test="scheduledJob.cronExpression!=null and scheduledJob.cronExpression!=''">
            and cron_expression like concat('%',#{scheduledJob.cronExpression},'%')
        </if>
        <if test="scheduledJob.status!=null">
            and status = #{scheduledJob.status}
        </if>
        order by id desc
    </select>
 
</mapper>