liusheng
5 天以前 6659135780e718758417efde4c8c351c69e3755b
ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.quartz.mapper.SysJobLogMapper">
   <resultMap type="SysJobLog" id="SysJobLogResult">
   <resultMap type="com.ruoyi.quartz.domain.SysJobLog" id="SysJobLogResult">
      <id     property="jobLogId"       column="job_log_id"      />
      <result property="jobName"        column="job_name"        />
      <result property="jobGroup"       column="job_group"       />
@@ -14,13 +14,13 @@
      <result property="exceptionInfo"  column="exception_info"  />
      <result property="createTime"     column="create_time"     />
   </resultMap>
   <sql id="selectJobLogVo">
        select job_log_id, job_name, job_group, invoke_target, job_message, status, exception_info, create_time
        select job_log_id, job_name, job_group, invoke_target, job_message, status, exception_info, create_time
      from sys_job_log
    </sql>
   <select id="selectJobLogList" parameterType="SysJobLog" resultMap="SysJobLogResult">
   <select id="selectJobLogList" parameterType="com.ruoyi.quartz.domain.SysJobLog" resultMap="SysJobLogResult">
      <include refid="selectJobLogVo"/>
      <where>
         <if test="jobName != null and jobName != ''">
@@ -43,32 +43,32 @@
         </if>
      </where>
   </select>
   <select id="selectJobLogAll" resultMap="SysJobLogResult">
      <include refid="selectJobLogVo"/>
   </select>
   <select id="selectJobLogById" parameterType="Long" resultMap="SysJobLogResult">
      <include refid="selectJobLogVo"/>
      where job_log_id = #{jobLogId}
   </select>
   <delete id="deleteJobLogById" parameterType="Long">
       delete from sys_job_log where job_log_id = #{jobLogId}
    </delete>
    <delete id="deleteJobLogByIds" parameterType="Long">
       delete from sys_job_log where job_log_id in
       <foreach collection="array" item="jobLogId" open="(" separator="," close=")">
          #{jobLogId}
        </foreach>
        </foreach>
    </delete>
    <update id="cleanJobLog">
        truncate table sys_job_log
    </update>
    <insert id="insertJobLog" parameterType="SysJobLog">
    <insert id="insertJobLog" parameterType="com.ruoyi.quartz.domain.SysJobLog">
       insert into sys_job_log(
          <if test="jobLogId != null and jobLogId != 0">job_log_id,</if>
          <if test="jobName != null and jobName != ''">job_name,</if>
@@ -90,4 +90,4 @@
       )
   </insert>
</mapper>
</mapper>