<?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="com.scm.contract.dao.quartz.QuartzJobDao">

    <!-- 根据jobClassName查询 -->
    <select id="findByJobClassName" resultType="com.scm.contract.model.quartz.QuartzJob">
        select *
        from sys_quartz_job
        where job_class_name = #{jobClassName}
    </select>

    <select id="listByOpenJob" resultType="com.scm.contract.model.quartz.QuartzJob">
        select *
        from sys_quartz_job
        where `status` = #{status}
          and `del_flag` = #{delFlag}
    </select>
</mapper>
