OldXxlJobInfoMapper.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  3. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  4. <mapper namespace="com.xxl.job.admin.dao.OldXxlJobInfoDao">
  5. <resultMap id="XxlJobInfo" type="com.xxl.job.admin.core.model.OldXxlJobInfo" >
  6. <result column="id" property="id" />
  7. <result column="job_group" property="jobGroup" />
  8. <result column="job_cron" property="jobCron" />
  9. <result column="job_desc" property="jobDesc" />
  10. <result column="add_time" property="addTime" />
  11. <result column="update_time" property="updateTime" />
  12. <result column="author" property="author" />
  13. <result column="alarm_email" property="alarmEmail" />
  14. <result column="executor_route_strategy" property="executorRouteStrategy" />
  15. <result column="executor_handler" property="executorHandler" />
  16. <result column="executor_param" property="executorParam" />
  17. <result column="executor_block_strategy" property="executorBlockStrategy" />
  18. <result column="executor_timeout" property="executorTimeout" />
  19. <result column="executor_fail_retry_count" property="executorFailRetryCount" />
  20. <result column="glue_type" property="glueType" />
  21. <result column="glue_source" property="glueSource" />
  22. <result column="glue_remark" property="glueRemark" />
  23. <result column="glue_updatetime" property="glueUpdatetime" />
  24. <result column="child_jobid" property="childJobId" />
  25. <!-- custom trigger -->
  26. <result column="trigger_start_time" property="triggerStartTime" />
  27. <result column="trigger_end_time" property="triggerEndTime" />
  28. <result column="interval_time" property="intervalTime" />
  29. <result column="repeat_count" property="repeatCount" />
  30. </resultMap>
  31. <sql id="Base_Column_List">
  32. t.id,
  33. t.job_group,
  34. t.job_cron,
  35. t.job_desc,
  36. t.add_time,
  37. t.update_time,
  38. t.author,
  39. t.alarm_email,
  40. t.executor_route_strategy,
  41. t.executor_handler,
  42. t.executor_param,
  43. t.executor_block_strategy,
  44. t.executor_timeout,
  45. t.executor_fail_retry_count,
  46. t.glue_type,
  47. t.glue_source,
  48. t.glue_remark,
  49. t.glue_updatetime,
  50. t.child_jobid,
  51. t.trigger_start_time,
  52. t.trigger_end_time,
  53. t.interval_time,
  54. t.repeat_count
  55. </sql>
  56. <select id="infoList" resultMap="XxlJobInfo">
  57. SELECT <include refid="Base_Column_List" /> FROM xxl_job_qrtz_trigger_info AS t
  58. </select>
  59. <select id="loadById" resultMap="XxlJobInfo">
  60. SELECT <include refid="Base_Column_List" />
  61. FROM xxl_job_qrtz_trigger_info AS t WHERE t.id = #{id}
  62. </select>
  63. </mapper>