|
@@ -45,6 +45,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by create_time desc
|
|
order by create_time desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
+ <select id="selectJobLogListPage" resultType="com.hdkj.lt.job.domain.SysJobLog">
|
|
|
|
|
+ <include refid="selectJobLogVo"/>
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="jobLog.jobName != null and jobLog.jobName != ''">
|
|
|
|
|
+ AND job_name like concat('%', #{jobLog.jobName}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="jobLog.jobGroup != null and jobLog.jobGroup != ''">
|
|
|
|
|
+ AND job_group = #{jobLog.jobGroup}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="jobLog.status != null and jobLog.status != ''">
|
|
|
|
|
+ AND status = #{jobLog.status}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="jobLog.invokeTarget != null and jobLog.invokeTarget != ''">
|
|
|
|
|
+ AND invoke_target like concat('%', #{jobLog.invokeTarget}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="jobLog.startTime != null and jobLog.startTime != ''"><!-- 开始时间检索 -->
|
|
|
|
|
+ and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="jobLog.stopTime != null and jobLog.stopTime != ''"><!-- 结束时间检索 -->
|
|
|
|
|
+ and date_format(create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ order by create_time desc
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<select id="selectJobLogAll" resultMap="SysJobLogResult">
|
|
<select id="selectJobLogAll" resultMap="SysJobLogResult">
|
|
|
<include refid="selectJobLogVo"/>
|
|
<include refid="selectJobLogVo"/>
|
|
|
</select>
|
|
</select>
|
|
@@ -54,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where job_log_id = #{jobLogId}
|
|
where job_log_id = #{jobLogId}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
- <delete id="deleteJobLogById" parameterType="Long">
|
|
|
|
|
|
|
+ <delete id="deleteJobLogById" parameterType="Long">
|
|
|
delete from sys_job_log where job_log_id = #{jobLogId}
|
|
delete from sys_job_log where job_log_id = #{jobLogId}
|
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|