|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<?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.example.mapper.JobDetailMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="org.example.pojo.JobDetail"> |
|
|
|
<mapper namespace="cn.chjyj.szwh.mapper.JobDetailMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="cn.chjyj.szwh.bean.JobDetail"> |
|
|
|
<id column="SCHED_NAME" jdbcType="VARCHAR" property="schedName"/> |
|
|
|
<id column="JOB_NAME" jdbcType="VARCHAR" property="jobName"/> |
|
|
|
<id column="JOB_GROUP" jdbcType="VARCHAR" property="jobGroup"/> |
|
|
|
@ -12,7 +12,7 @@ |
|
|
|
<result column="IS_UPDATE_DATA" jdbcType="VARCHAR" property="isUpdateData"/> |
|
|
|
<result column="REQUESTS_RECOVERY" jdbcType="VARCHAR" property="requestsRecovery"/> |
|
|
|
</resultMap> |
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="org.example.pojo.JobDetail"> |
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="cn.chjyj.szwh.bean.JobDetail"> |
|
|
|
<result column="JOB_DATA" jdbcType="LONGVARBINARY" property="jobData"/> |
|
|
|
</resultMap> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
@ -24,7 +24,7 @@ |
|
|
|
JOB_DATA |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="getJobAndTriggerDetails" resultType="org.example.dto.JobAndTriggerDto"> |
|
|
|
<select id="getJobAndTriggerDetails" resultType="cn.chjyj.szwh.bean.JobDetail"> |
|
|
|
SELECT DISTINCT |
|
|
|
qrtz_job_details.JOB_NAME, |
|
|
|
qrtz_job_details.JOB_GROUP, |
|
|
|
@ -42,7 +42,7 @@ |
|
|
|
AND qrtz_triggers.TRIGGER_GROUP = qrtz_cron_triggers.TRIGGER_GROUP |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="org.example.pojo.JobDetailKey" resultMap="ResultMapWithBLOBs"> |
|
|
|
<select id="selectByPrimaryKey" parameterType="cn.chjyj.szwh.bean.JobDetailKey" resultMap="ResultMapWithBLOBs"> |
|
|
|
select |
|
|
|
<include refid="Base_Column_List"/> |
|
|
|
, |
|
|
|
@ -52,25 +52,33 @@ |
|
|
|
and JOB_NAME = #{jobName,jdbcType=VARCHAR} |
|
|
|
and JOB_GROUP = #{jobGroup,jdbcType=VARCHAR} |
|
|
|
</select> |
|
|
|
<delete id="deleteByPrimaryKey" parameterType="org.example.pojo.JobDetailKey"> |
|
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="cn.chjyj.szwh.bean.JobDetailKey"> |
|
|
|
delete |
|
|
|
from qrtz_job_details |
|
|
|
where SCHED_NAME = #{schedName,jdbcType=VARCHAR} |
|
|
|
and JOB_NAME = #{jobName,jdbcType=VARCHAR} |
|
|
|
and JOB_GROUP = #{jobGroup,jdbcType=VARCHAR} |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="org.example.pojo.JobDetail"> |
|
|
|
|
|
|
|
<insert id="insert" parameterType="cn.chjyj.szwh.bean.JobDetail"> |
|
|
|
insert into qrtz_job_details (SCHED_NAME, JOB_NAME, JOB_GROUP, |
|
|
|
DESCRIPTION, JOB_CLASS_NAME, IS_DURABLE, |
|
|
|
IS_NONCONCURRENT, IS_UPDATE_DATA, REQUESTS_RECOVERY, |
|
|
|
IS_NONCONCURRENT, |
|
|
|
IS_UPDATE_DATA, |
|
|
|
REQUESTS_RECOVERY, |
|
|
|
JOB_DATA) |
|
|
|
values (#{schedName,jdbcType=VARCHAR}, #{jobName,jdbcType=VARCHAR}, #{jobGroup,jdbcType=VARCHAR}, |
|
|
|
#{description,jdbcType=VARCHAR}, #{jobClassName,jdbcType=VARCHAR}, #{isDurable,jdbcType=VARCHAR}, |
|
|
|
#{isNonconcurrent,jdbcType=VARCHAR}, #{isUpdateData,jdbcType=VARCHAR}, |
|
|
|
values (#{schedName,jdbcType=VARCHAR}, #{jobName,jdbcType=VARCHAR}, |
|
|
|
#{jobGroup,jdbcType=VARCHAR}, |
|
|
|
#{description,jdbcType=VARCHAR}, #{jobClassName,jdbcType=VARCHAR}, |
|
|
|
#{isDurable,jdbcType=VARCHAR}, |
|
|
|
#{isNonconcurrent,jdbcType=VARCHAR}, |
|
|
|
#{isUpdateData,jdbcType=VARCHAR}, |
|
|
|
#{requestsRecovery,jdbcType=VARCHAR}, |
|
|
|
#{jobData,jdbcType=LONGVARBINARY}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="org.example.pojo.JobDetail"> |
|
|
|
|
|
|
|
<insert id="insertSelective" parameterType="cn.chjyj.szwh.bean.JobDetail"> |
|
|
|
insert into qrtz_job_details |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="schedName != null"> |
|
|
|
@ -137,7 +145,7 @@ |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="org.example.pojo.JobDetail"> |
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="cn.chjyj.szwh.bean.JobDetail"> |
|
|
|
update qrtz_job_details |
|
|
|
<set> |
|
|
|
<if test="description != null"> |
|
|
|
@ -166,7 +174,8 @@ |
|
|
|
and JOB_NAME = #{jobName,jdbcType=VARCHAR} |
|
|
|
and JOB_GROUP = #{jobGroup,jdbcType=VARCHAR} |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="org.example.pojo.JobDetail"> |
|
|
|
|
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="cn.chjyj.szwh.bean.JobDetail"> |
|
|
|
update qrtz_job_details |
|
|
|
set DESCRIPTION = #{description,jdbcType=VARCHAR}, |
|
|
|
JOB_CLASS_NAME = #{jobClassName,jdbcType=VARCHAR}, |
|
|
|
@ -179,7 +188,8 @@ |
|
|
|
and JOB_NAME = #{jobName,jdbcType=VARCHAR} |
|
|
|
and JOB_GROUP = #{jobGroup,jdbcType=VARCHAR} |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="org.example.pojo.JobDetail"> |
|
|
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="cn.chjyj.szwh.bean.JobDetail"> |
|
|
|
update qrtz_job_details |
|
|
|
set DESCRIPTION = #{description,jdbcType=VARCHAR}, |
|
|
|
JOB_CLASS_NAME = #{jobClassName,jdbcType=VARCHAR}, |
|
|
|
|