sfd
2025-05-26 2a64b537e8e3bce9ce030585a3da17d48379c0ad
aps-modules/aps-job/src/main/resources/mapper/job/SysJobLogMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.aps.job.mapper.SysJobLogMapper">
   <resultMap type="SysJobLog" id="SysJobLogResult">
   <resultMap type="com.aps.job.domain.SysJobLog" id="SysJobLogResult">
      <id     property="jobLogId"       column="job_log_id"      />
      <result property="jobName"        column="job_name"        />
      <result property="jobGroup"       column="job_group"       />
@@ -20,11 +20,11 @@
      from sys_job_log
    </sql>
   
   <select id="selectJobLogList" parameterType="SysJobLog" resultMap="SysJobLogResult">
   <select id="selectJobLogList" parameterType="com.aps.job.domain.SysJobLog" resultMap="SysJobLogResult">
      <include refid="selectJobLogVo"/>
      <where>
         <if test="jobName != null and jobName != ''">
            AND job_name like concat('%', #{jobName}, '%')
            AND job_name like '%' || #{jobName} || '%'
         </if>
         <if test="jobGroup != null and jobGroup != ''">
            AND job_group = #{jobGroup}
@@ -69,7 +69,7 @@
        truncate table sys_job_log
    </update>
    
    <insert id="insertJobLog" parameterType="SysJobLog">
    <insert id="insertJobLog" parameterType="com.aps.job.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>
@@ -87,7 +87,7 @@
          <if test="jobMessage != null and jobMessage != ''">#{jobMessage},</if>
          <if test="status != null and status != ''">#{status},</if>
          <if test="exceptionInfo != null and exceptionInfo != ''">#{exceptionInfo},</if>
          sysdate()
          now()
       )
   </insert>