对比新文件 |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.quartz.mapper.SysQuartzLogMapper"> |
| | | |
| | | <!--鍒嗛〉鍒楄〃鏌ヨ--> |
| | | <select id="pageList" resultType="org.jeecg.modules.quartz.dto.SysQuartzLogDto"> |
| | | SELECT |
| | | t2.job_name jobName, |
| | | t2.job_class_name jobClassName, |
| | | t2.cron_expression cronExpression, |
| | | t1.params params, |
| | | t2.description description, |
| | | t1.exception_detail exceptionDetail, |
| | | t1.is_success isSuccess, |
| | | t1.execution_time executionTime, |
| | | t1.create_time createTime |
| | | FROM |
| | | sys_quartz_log t1 |
| | | LEFT JOIN sys_quartz_job t2 ON t1.job_id = t2.id |
| | | <where> |
| | | AND t2.id = #{ sysQuartzLogVo.jobId } |
| | | <if test="sysQuartzLogVo.isSuccess != null"> |
| | | AND t1.is_success = #{ sysQuartzLogVo.isSuccess } |
| | | </if> |
| | | <if test="sysQuartzLogVo.startTime != null and sysQuartzLogVo.startTime != '' and sysQuartzLogVo.endTime != null and sysQuartzLogVo.endTime != ''"> |
| | | AND t1.create_time BETWEEN #{ sysQuartzLogVo.startTime } AND #{ sysQuartzLogVo.endTime } |
| | | </if> |
| | | <if test="sysQuartzLogVo.jobName != null and sysQuartzLogVo.jobName != ''"> |
| | | AND t2.job_name LIKE CONCAT(CONCAT('%',#{ sysQuartzLogVo.jobName }),'%') |
| | | </if> |
| | | <if test="sysQuartzLogVo.description != null and sysQuartzLogVo.description != ''"> |
| | | AND t2.description LIKE CONCAT(CONCAT('%',#{ sysQuartzLogVo.description }),'%') |
| | | </if> |
| | | </where> |
| | | ORDER BY t1.create_time DESC |
| | | </select> |
| | | |
| | | |
| | | <select id="list" resultType="org.jeecg.modules.quartz.dto.SysQuartzLogDto"> |
| | | SELECT |
| | | t2.job_name jobName, |
| | | t2.job_class_name jobClassName, |
| | | t2.cron_expression cronExpression, |
| | | t1.params params, |
| | | t2.description description, |
| | | t1.exception_detail exceptionDetail, |
| | | t1.is_success isSuccess, |
| | | t1.execution_time executionTime, |
| | | t1.create_time createTime |
| | | FROM |
| | | sys_quartz_log t1 |
| | | LEFT JOIN sys_quartz_job t2 ON t1.job_id = t2.id |
| | | <where> |
| | | AND t2.id = #{ sysQuartzLogVo.jobId } |
| | | <if test="sysQuartzLogVo.isSuccess != null"> |
| | | AND t1.is_success = #{ sysQuartzLogVo.isSuccess } |
| | | </if> |
| | | <if test="sysQuartzLogVo.startTime != null and sysQuartzLogVo.startTime != '' and sysQuartzLogVo.endTime != null and sysQuartzLogVo.endTime != ''"> |
| | | AND t1.create_time BETWEEN #{ sysQuartzLogVo.startTime } AND #{ sysQuartzLogVo.endTime } |
| | | </if> |
| | | <if test="sysQuartzLogVo.jobName != null and sysQuartzLogVo.jobName != ''"> |
| | | AND t2.job_name LIKE CONCAT(CONCAT('%',#{ sysQuartzLogVo.jobName }),'%') |
| | | </if> |
| | | <if test="sysQuartzLogVo.description != null and sysQuartzLogVo.description != ''"> |
| | | AND t2.description LIKE CONCAT(CONCAT('%',#{ sysQuartzLogVo.description }),'%') |
| | | </if> |
| | | </where> |
| | | ORDER BY t1.create_time DESC |
| | | </select> |
| | | </mapper> |