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