|
|
|
@ -1,51 +1,51 @@ |
|
|
|
<?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.TriggerMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="org.example.pojo.Trigger"> |
|
|
|
<id column="SCHED_NAME" jdbcType="VARCHAR" property="schedName" /> |
|
|
|
<id column="TRIGGER_NAME" jdbcType="VARCHAR" property="triggerName" /> |
|
|
|
<id column="TRIGGER_GROUP" jdbcType="VARCHAR" property="triggerGroup" /> |
|
|
|
<result column="JOB_NAME" jdbcType="VARCHAR" property="jobName" /> |
|
|
|
<result column="JOB_GROUP" jdbcType="VARCHAR" property="jobGroup" /> |
|
|
|
<result column="DESCRIPTION" jdbcType="VARCHAR" property="description" /> |
|
|
|
<result column="NEXT_FIRE_TIME" jdbcType="BIGINT" property="nextFireTime" /> |
|
|
|
<result column="PREV_FIRE_TIME" jdbcType="BIGINT" property="prevFireTime" /> |
|
|
|
<result column="PRIORITY" jdbcType="INTEGER" property="priority" /> |
|
|
|
<result column="TRIGGER_STATE" jdbcType="VARCHAR" property="triggerState" /> |
|
|
|
<result column="TRIGGER_TYPE" jdbcType="VARCHAR" property="triggerType" /> |
|
|
|
<result column="START_TIME" jdbcType="BIGINT" property="startTime" /> |
|
|
|
<result column="END_TIME" jdbcType="BIGINT" property="endTime" /> |
|
|
|
<result column="CALENDAR_NAME" jdbcType="VARCHAR" property="calendarName" /> |
|
|
|
<result column="MISFIRE_INSTR" jdbcType="SMALLINT" property="misfireInstr" /> |
|
|
|
</resultMap> |
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="org.example.pojo.Trigger"> |
|
|
|
<result column="JOB_DATA" jdbcType="LONGVARBINARY" property="jobData" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
<mapper namespace="cn.chjyj.szwh.mapper.TriggerMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="cn.chjyj.szwh.bean.Trigger"> |
|
|
|
<id column="SCHED_NAME" jdbcType="VARCHAR" property="schedName"/> |
|
|
|
<id column="TRIGGER_NAME" jdbcType="VARCHAR" property="triggerName"/> |
|
|
|
<id column="TRIGGER_GROUP" jdbcType="VARCHAR" property="triggerGroup"/> |
|
|
|
<result column="JOB_NAME" jdbcType="VARCHAR" property="jobName"/> |
|
|
|
<result column="JOB_GROUP" jdbcType="VARCHAR" property="jobGroup"/> |
|
|
|
<result column="DESCRIPTION" jdbcType="VARCHAR" property="description"/> |
|
|
|
<result column="NEXT_FIRE_TIME" jdbcType="BIGINT" property="nextFireTime"/> |
|
|
|
<result column="PREV_FIRE_TIME" jdbcType="BIGINT" property="prevFireTime"/> |
|
|
|
<result column="PRIORITY" jdbcType="INTEGER" property="priority"/> |
|
|
|
<result column="TRIGGER_STATE" jdbcType="VARCHAR" property="triggerState"/> |
|
|
|
<result column="TRIGGER_TYPE" jdbcType="VARCHAR" property="triggerType"/> |
|
|
|
<result column="START_TIME" jdbcType="BIGINT" property="startTime"/> |
|
|
|
<result column="END_TIME" jdbcType="BIGINT" property="endTime"/> |
|
|
|
<result column="CALENDAR_NAME" jdbcType="VARCHAR" property="calendarName"/> |
|
|
|
<result column="MISFIRE_INSTR" jdbcType="SMALLINT" property="misfireInstr"/> |
|
|
|
</resultMap> |
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="cn.chjyj.szwh.bean.Trigger"> |
|
|
|
<result column="JOB_DATA" jdbcType="LONGVARBINARY" property="jobData"/> |
|
|
|
</resultMap> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP, JOB_NAME, JOB_GROUP, DESCRIPTION, NEXT_FIRE_TIME, |
|
|
|
PREV_FIRE_TIME, PRIORITY, TRIGGER_STATE, TRIGGER_TYPE, START_TIME, END_TIME, CALENDAR_NAME, |
|
|
|
MISFIRE_INSTR |
|
|
|
</sql> |
|
|
|
<sql id="Blob_Column_List"> |
|
|
|
<sql id="Blob_Column_List"> |
|
|
|
JOB_DATA |
|
|
|
</sql> |
|
|
|
<select id="selectByPrimaryKey" parameterType="org.example.pojo.TriggerKey" resultMap="ResultMapWithBLOBs"> |
|
|
|
select |
|
|
|
<include refid="Base_Column_List" /> |
|
|
|
, |
|
|
|
<include refid="Blob_Column_List" /> |
|
|
|
from qrtz_triggers |
|
|
|
where SCHED_NAME = #{schedName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_NAME = #{triggerName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_GROUP = #{triggerGroup,jdbcType=VARCHAR} |
|
|
|
</select> |
|
|
|
<delete id="deleteByPrimaryKey" parameterType="org.example.pojo.TriggerKey"> |
|
|
|
<select id="selectByPrimaryKey" parameterType="cn.chjyj.szwh.bean.TriggerKey" resultMap="ResultMapWithBLOBs"> |
|
|
|
select |
|
|
|
<include refid="Base_Column_List"/> |
|
|
|
, |
|
|
|
<include refid="Blob_Column_List"/> |
|
|
|
from qrtz_triggers |
|
|
|
where SCHED_NAME = #{schedName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_NAME = #{triggerName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_GROUP = #{triggerGroup,jdbcType=VARCHAR} |
|
|
|
</select> |
|
|
|
<delete id="deleteByPrimaryKey" parameterType="cn.chjyj.szwh.bean.TriggerKey"> |
|
|
|
delete from qrtz_triggers |
|
|
|
where SCHED_NAME = #{schedName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_NAME = #{triggerName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_GROUP = #{triggerGroup,jdbcType=VARCHAR} |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="org.example.pojo.Trigger"> |
|
|
|
<insert id="insert" parameterType="cn.chjyj.szwh.bean.Trigger"> |
|
|
|
insert into qrtz_triggers (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP, |
|
|
|
JOB_NAME, JOB_GROUP, DESCRIPTION, |
|
|
|
NEXT_FIRE_TIME, PREV_FIRE_TIME, PRIORITY, |
|
|
|
@ -59,157 +59,157 @@ |
|
|
|
#{endTime,jdbcType=BIGINT}, #{calendarName,jdbcType=VARCHAR}, #{misfireInstr,jdbcType=SMALLINT}, |
|
|
|
#{jobData,jdbcType=LONGVARBINARY}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="org.example.pojo.Trigger"> |
|
|
|
insert into qrtz_triggers |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="schedName != null"> |
|
|
|
SCHED_NAME, |
|
|
|
</if> |
|
|
|
<if test="triggerName != null"> |
|
|
|
TRIGGER_NAME, |
|
|
|
</if> |
|
|
|
<if test="triggerGroup != null"> |
|
|
|
TRIGGER_GROUP, |
|
|
|
</if> |
|
|
|
<if test="jobName != null"> |
|
|
|
JOB_NAME, |
|
|
|
</if> |
|
|
|
<if test="jobGroup != null"> |
|
|
|
JOB_GROUP, |
|
|
|
</if> |
|
|
|
<if test="description != null"> |
|
|
|
DESCRIPTION, |
|
|
|
</if> |
|
|
|
<if test="nextFireTime != null"> |
|
|
|
NEXT_FIRE_TIME, |
|
|
|
</if> |
|
|
|
<if test="prevFireTime != null"> |
|
|
|
PREV_FIRE_TIME, |
|
|
|
</if> |
|
|
|
<if test="priority != null"> |
|
|
|
PRIORITY, |
|
|
|
</if> |
|
|
|
<if test="triggerState != null"> |
|
|
|
TRIGGER_STATE, |
|
|
|
</if> |
|
|
|
<if test="triggerType != null"> |
|
|
|
TRIGGER_TYPE, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
START_TIME, |
|
|
|
</if> |
|
|
|
<if test="endTime != null"> |
|
|
|
END_TIME, |
|
|
|
</if> |
|
|
|
<if test="calendarName != null"> |
|
|
|
CALENDAR_NAME, |
|
|
|
</if> |
|
|
|
<if test="misfireInstr != null"> |
|
|
|
MISFIRE_INSTR, |
|
|
|
</if> |
|
|
|
<if test="jobData != null"> |
|
|
|
JOB_DATA, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="schedName != null"> |
|
|
|
#{schedName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="triggerName != null"> |
|
|
|
#{triggerName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="triggerGroup != null"> |
|
|
|
#{triggerGroup,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="jobName != null"> |
|
|
|
#{jobName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="jobGroup != null"> |
|
|
|
#{jobGroup,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="description != null"> |
|
|
|
#{description,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="nextFireTime != null"> |
|
|
|
#{nextFireTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="prevFireTime != null"> |
|
|
|
#{prevFireTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="priority != null"> |
|
|
|
#{priority,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="triggerState != null"> |
|
|
|
#{triggerState,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="triggerType != null"> |
|
|
|
#{triggerType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
#{startTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="endTime != null"> |
|
|
|
#{endTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="calendarName != null"> |
|
|
|
#{calendarName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="misfireInstr != null"> |
|
|
|
#{misfireInstr,jdbcType=SMALLINT}, |
|
|
|
</if> |
|
|
|
<if test="jobData != null"> |
|
|
|
#{jobData,jdbcType=LONGVARBINARY}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="org.example.pojo.Trigger"> |
|
|
|
update qrtz_triggers |
|
|
|
<set> |
|
|
|
<if test="jobName != null"> |
|
|
|
JOB_NAME = #{jobName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="jobGroup != null"> |
|
|
|
JOB_GROUP = #{jobGroup,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="description != null"> |
|
|
|
DESCRIPTION = #{description,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="nextFireTime != null"> |
|
|
|
NEXT_FIRE_TIME = #{nextFireTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="prevFireTime != null"> |
|
|
|
PREV_FIRE_TIME = #{prevFireTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="priority != null"> |
|
|
|
PRIORITY = #{priority,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="triggerState != null"> |
|
|
|
TRIGGER_STATE = #{triggerState,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="triggerType != null"> |
|
|
|
TRIGGER_TYPE = #{triggerType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
START_TIME = #{startTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="endTime != null"> |
|
|
|
END_TIME = #{endTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="calendarName != null"> |
|
|
|
CALENDAR_NAME = #{calendarName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="misfireInstr != null"> |
|
|
|
MISFIRE_INSTR = #{misfireInstr,jdbcType=SMALLINT}, |
|
|
|
</if> |
|
|
|
<if test="jobData != null"> |
|
|
|
JOB_DATA = #{jobData,jdbcType=LONGVARBINARY}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where SCHED_NAME = #{schedName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_NAME = #{triggerName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_GROUP = #{triggerGroup,jdbcType=VARCHAR} |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="org.example.pojo.Trigger"> |
|
|
|
<insert id="insertSelective" parameterType="cn.chjyj.szwh.bean.Trigger"> |
|
|
|
insert into qrtz_triggers |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="schedName != null"> |
|
|
|
SCHED_NAME, |
|
|
|
</if> |
|
|
|
<if test="triggerName != null"> |
|
|
|
TRIGGER_NAME, |
|
|
|
</if> |
|
|
|
<if test="triggerGroup != null"> |
|
|
|
TRIGGER_GROUP, |
|
|
|
</if> |
|
|
|
<if test="jobName != null"> |
|
|
|
JOB_NAME, |
|
|
|
</if> |
|
|
|
<if test="jobGroup != null"> |
|
|
|
JOB_GROUP, |
|
|
|
</if> |
|
|
|
<if test="description != null"> |
|
|
|
DESCRIPTION, |
|
|
|
</if> |
|
|
|
<if test="nextFireTime != null"> |
|
|
|
NEXT_FIRE_TIME, |
|
|
|
</if> |
|
|
|
<if test="prevFireTime != null"> |
|
|
|
PREV_FIRE_TIME, |
|
|
|
</if> |
|
|
|
<if test="priority != null"> |
|
|
|
PRIORITY, |
|
|
|
</if> |
|
|
|
<if test="triggerState != null"> |
|
|
|
TRIGGER_STATE, |
|
|
|
</if> |
|
|
|
<if test="triggerType != null"> |
|
|
|
TRIGGER_TYPE, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
START_TIME, |
|
|
|
</if> |
|
|
|
<if test="endTime != null"> |
|
|
|
END_TIME, |
|
|
|
</if> |
|
|
|
<if test="calendarName != null"> |
|
|
|
CALENDAR_NAME, |
|
|
|
</if> |
|
|
|
<if test="misfireInstr != null"> |
|
|
|
MISFIRE_INSTR, |
|
|
|
</if> |
|
|
|
<if test="jobData != null"> |
|
|
|
JOB_DATA, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="schedName != null"> |
|
|
|
#{schedName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="triggerName != null"> |
|
|
|
#{triggerName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="triggerGroup != null"> |
|
|
|
#{triggerGroup,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="jobName != null"> |
|
|
|
#{jobName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="jobGroup != null"> |
|
|
|
#{jobGroup,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="description != null"> |
|
|
|
#{description,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="nextFireTime != null"> |
|
|
|
#{nextFireTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="prevFireTime != null"> |
|
|
|
#{prevFireTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="priority != null"> |
|
|
|
#{priority,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="triggerState != null"> |
|
|
|
#{triggerState,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="triggerType != null"> |
|
|
|
#{triggerType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
#{startTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="endTime != null"> |
|
|
|
#{endTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="calendarName != null"> |
|
|
|
#{calendarName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="misfireInstr != null"> |
|
|
|
#{misfireInstr,jdbcType=SMALLINT}, |
|
|
|
</if> |
|
|
|
<if test="jobData != null"> |
|
|
|
#{jobData,jdbcType=LONGVARBINARY}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="cn.chjyj.szwh.bean.Trigger"> |
|
|
|
update qrtz_triggers |
|
|
|
<set> |
|
|
|
<if test="jobName != null"> |
|
|
|
JOB_NAME = #{jobName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="jobGroup != null"> |
|
|
|
JOB_GROUP = #{jobGroup,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="description != null"> |
|
|
|
DESCRIPTION = #{description,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="nextFireTime != null"> |
|
|
|
NEXT_FIRE_TIME = #{nextFireTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="prevFireTime != null"> |
|
|
|
PREV_FIRE_TIME = #{prevFireTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="priority != null"> |
|
|
|
PRIORITY = #{priority,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="triggerState != null"> |
|
|
|
TRIGGER_STATE = #{triggerState,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="triggerType != null"> |
|
|
|
TRIGGER_TYPE = #{triggerType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="startTime != null"> |
|
|
|
START_TIME = #{startTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="endTime != null"> |
|
|
|
END_TIME = #{endTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="calendarName != null"> |
|
|
|
CALENDAR_NAME = #{calendarName,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="misfireInstr != null"> |
|
|
|
MISFIRE_INSTR = #{misfireInstr,jdbcType=SMALLINT}, |
|
|
|
</if> |
|
|
|
<if test="jobData != null"> |
|
|
|
JOB_DATA = #{jobData,jdbcType=LONGVARBINARY}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where SCHED_NAME = #{schedName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_NAME = #{triggerName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_GROUP = #{triggerGroup,jdbcType=VARCHAR} |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="cn.chjyj.szwh.bean.Trigger"> |
|
|
|
update qrtz_triggers |
|
|
|
set JOB_NAME = #{jobName,jdbcType=VARCHAR}, |
|
|
|
JOB_GROUP = #{jobGroup,jdbcType=VARCHAR}, |
|
|
|
@ -228,7 +228,7 @@ |
|
|
|
and TRIGGER_NAME = #{triggerName,jdbcType=VARCHAR} |
|
|
|
and TRIGGER_GROUP = #{triggerGroup,jdbcType=VARCHAR} |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="org.example.pojo.Trigger"> |
|
|
|
<update id="updateByPrimaryKey" parameterType="cn.chjyj.szwh.bean.Trigger"> |
|
|
|
update qrtz_triggers |
|
|
|
set JOB_NAME = #{jobName,jdbcType=VARCHAR}, |
|
|
|
JOB_GROUP = #{jobGroup,jdbcType=VARCHAR}, |
|
|
|
|