liusheng
2 天以前 da026a34bcc97b2eb49607a3b02d94d8f683f997
ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml
@@ -22,26 +22,28 @@
   <select id="selectJobLogList" parameterType="com.ruoyi.quartz.domain.SysJobLog" resultMap="SysJobLogResult">
      <include refid="selectJobLogVo"/>
      <where>
         <if test="jobName != null and jobName != ''">
            AND job_name like concat('%', #{jobName}, '%')
         </if>
         <if test="jobGroup != null and jobGroup != ''">
            AND job_group = #{jobGroup}
         </if>
         <if test="status != null and status != ''">
            AND status = #{status}
         </if>
         <if test="invokeTarget != null and invokeTarget != ''">
            AND invoke_target like concat('%', #{invokeTarget}, '%')
         </if>
         <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
            and date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
         </if>
         <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
            and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
         </if>
      </where>
      where 1=1
      <if test="orgid != null and orgid != ''">
         AND orgid = #{orgid}
      </if>
      <if test="jobName != null and jobName != ''">
         AND job_name like concat('%', #{jobName}, '%')
      </if>
      <if test="jobGroup != null and jobGroup != ''">
         AND job_group = #{jobGroup}
      </if>
      <if test="status != null and status != ''">
         AND status = #{status}
      </if>
      <if test="invokeTarget != null and invokeTarget != ''">
         AND invoke_target like concat('%', #{invokeTarget}, '%')
      </if>
      <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
         and date_format(create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
      </if>
      <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
         and date_format(create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
      </if>
   </select>
   <select id="selectJobLogAll" resultMap="SysJobLogResult">