|
|
@ -1,18 +1,18 @@
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.xxl.job.admin.dao.XxlJobInfoDao">
|
|
|
|
<mapper namespace="com.xxl.job.admin.dao.XxlJobInfoDao">
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="XxlJobInfo" type="com.xxl.job.admin.core.model.XxlJobInfo" >
|
|
|
|
<resultMap id="XxlJobInfo" type="com.xxl.job.admin.core.model.XxlJobInfo" >
|
|
|
|
<result column="id" property="id" />
|
|
|
|
<result column="id" property="id" />
|
|
|
|
|
|
|
|
|
|
|
|
<result column="job_group" property="jobGroup" />
|
|
|
|
<result column="job_group" property="jobGroup" />
|
|
|
|
<result column="job_cron" property="jobCron" />
|
|
|
|
<result column="job_cron" property="jobCron" />
|
|
|
|
<result column="job_desc" property="jobDesc" />
|
|
|
|
<result column="job_desc" property="jobDesc" />
|
|
|
|
|
|
|
|
|
|
|
|
<result column="add_time" property="addTime" />
|
|
|
|
<result column="add_time" property="addTime" />
|
|
|
|
<result column="update_time" property="updateTime" />
|
|
|
|
<result column="update_time" property="updateTime" />
|
|
|
|
|
|
|
|
|
|
|
|
<result column="author" property="author" />
|
|
|
|
<result column="author" property="author" />
|
|
|
|
<result column="alarm_email" property="alarmEmail" />
|
|
|
|
<result column="alarm_email" property="alarmEmail" />
|
|
|
|
|
|
|
|
|
|
|
@ -21,11 +21,12 @@
|
|
|
|
<result column="executor_param" property="executorParam" />
|
|
|
|
<result column="executor_param" property="executorParam" />
|
|
|
|
<result column="executor_block_strategy" property="executorBlockStrategy" />
|
|
|
|
<result column="executor_block_strategy" property="executorBlockStrategy" />
|
|
|
|
<result column="executor_fail_strategy" property="executorFailStrategy" />
|
|
|
|
<result column="executor_fail_strategy" property="executorFailStrategy" />
|
|
|
|
|
|
|
|
|
|
|
|
<result column="glue_type" property="glueType" />
|
|
|
|
<result column="glue_type" property="glueType" />
|
|
|
|
<result column="glue_source" property="glueSource" />
|
|
|
|
<result column="glue_source" property="glueSource" />
|
|
|
|
<result column="glue_remark" property="glueRemark" />
|
|
|
|
<result column="glue_remark" property="glueRemark" />
|
|
|
|
<result column="glue_updatetime" property="glueUpdatetime" />
|
|
|
|
<result column="glue_updatetime" property="glueUpdatetime" />
|
|
|
|
|
|
|
|
<result column="execute_timeout" property="executeTimeout" />
|
|
|
|
|
|
|
|
|
|
|
|
<result column="child_jobid" property="childJobId" />
|
|
|
|
<result column="child_jobid" property="childJobId" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
@ -48,9 +49,10 @@
|
|
|
|
t.glue_source,
|
|
|
|
t.glue_source,
|
|
|
|
t.glue_remark,
|
|
|
|
t.glue_remark,
|
|
|
|
t.glue_updatetime,
|
|
|
|
t.glue_updatetime,
|
|
|
|
|
|
|
|
t.execute_timeout,
|
|
|
|
t.child_jobid
|
|
|
|
t.child_jobid
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="pageList" parameterType="java.util.HashMap" resultMap="XxlJobInfo">
|
|
|
|
<select id="pageList" parameterType="java.util.HashMap" resultMap="XxlJobInfo">
|
|
|
|
SELECT <include refid="Base_Column_List" />
|
|
|
|
SELECT <include refid="Base_Column_List" />
|
|
|
|
FROM XXL_JOB_QRTZ_TRIGGER_INFO AS t
|
|
|
|
FROM XXL_JOB_QRTZ_TRIGGER_INFO AS t
|
|
|
@ -68,7 +70,7 @@
|
|
|
|
ORDER BY id DESC
|
|
|
|
ORDER BY id DESC
|
|
|
|
LIMIT #{offset}, #{pagesize}
|
|
|
|
LIMIT #{offset}, #{pagesize}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="pageListCount" parameterType="java.util.HashMap" resultType="int">
|
|
|
|
<select id="pageListCount" parameterType="java.util.HashMap" resultType="int">
|
|
|
|
SELECT count(1)
|
|
|
|
SELECT count(1)
|
|
|
|
FROM XXL_JOB_QRTZ_TRIGGER_INFO AS t
|
|
|
|
FROM XXL_JOB_QRTZ_TRIGGER_INFO AS t
|
|
|
@ -103,10 +105,11 @@
|
|
|
|
glue_source,
|
|
|
|
glue_source,
|
|
|
|
glue_remark,
|
|
|
|
glue_remark,
|
|
|
|
glue_updatetime,
|
|
|
|
glue_updatetime,
|
|
|
|
child_jobid
|
|
|
|
child_jobid,
|
|
|
|
|
|
|
|
execute_timeout
|
|
|
|
) VALUES (
|
|
|
|
) VALUES (
|
|
|
|
#{jobGroup},
|
|
|
|
#{jobGroup},
|
|
|
|
#{jobCron},
|
|
|
|
#{jobCron},
|
|
|
|
#{jobDesc},
|
|
|
|
#{jobDesc},
|
|
|
|
NOW(),
|
|
|
|
NOW(),
|
|
|
|
NOW(),
|
|
|
|
NOW(),
|
|
|
@ -121,7 +124,8 @@
|
|
|
|
#{glueSource},
|
|
|
|
#{glueSource},
|
|
|
|
#{glueRemark},
|
|
|
|
#{glueRemark},
|
|
|
|
NOW(),
|
|
|
|
NOW(),
|
|
|
|
#{childJobId}
|
|
|
|
#{childJobId},
|
|
|
|
|
|
|
|
#{executeTimeout}
|
|
|
|
);
|
|
|
|
);
|
|
|
|
<!--<selectKey resultType="java.lang.Integer" order="AFTER" keyProperty="id">
|
|
|
|
<!--<selectKey resultType="java.lang.Integer" order="AFTER" keyProperty="id">
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
|
SELECT LAST_INSERT_ID()
|
|
|
@ -134,10 +138,10 @@
|
|
|
|
FROM XXL_JOB_QRTZ_TRIGGER_INFO AS t
|
|
|
|
FROM XXL_JOB_QRTZ_TRIGGER_INFO AS t
|
|
|
|
WHERE t.id = #{id}
|
|
|
|
WHERE t.id = #{id}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="update" parameterType="com.xxl.job.admin.core.model.XxlJobInfo" >
|
|
|
|
<update id="update" parameterType="com.xxl.job.admin.core.model.XxlJobInfo" >
|
|
|
|
UPDATE XXL_JOB_QRTZ_TRIGGER_INFO
|
|
|
|
UPDATE XXL_JOB_QRTZ_TRIGGER_INFO
|
|
|
|
SET
|
|
|
|
SET
|
|
|
|
job_cron = #{jobCron},
|
|
|
|
job_cron = #{jobCron},
|
|
|
|
job_desc = #{jobDesc},
|
|
|
|
job_desc = #{jobDesc},
|
|
|
|
update_time = NOW(),
|
|
|
|
update_time = NOW(),
|
|
|
@ -152,10 +156,11 @@
|
|
|
|
glue_source = #{glueSource},
|
|
|
|
glue_source = #{glueSource},
|
|
|
|
glue_remark = #{glueRemark},
|
|
|
|
glue_remark = #{glueRemark},
|
|
|
|
glue_updatetime = #{glueUpdatetime},
|
|
|
|
glue_updatetime = #{glueUpdatetime},
|
|
|
|
child_jobid = #{childJobId}
|
|
|
|
child_jobid = #{childJobId},
|
|
|
|
|
|
|
|
execute_timeout = ${executeTimeout}
|
|
|
|
WHERE id = #{id}
|
|
|
|
WHERE id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="delete" parameterType="java.util.HashMap">
|
|
|
|
<delete id="delete" parameterType="java.util.HashMap">
|
|
|
|
DELETE
|
|
|
|
DELETE
|
|
|
|
FROM XXL_JOB_QRTZ_TRIGGER_INFO
|
|
|
|
FROM XXL_JOB_QRTZ_TRIGGER_INFO
|
|
|
|