|
@@ -14,60 +14,60 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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">
|
|
|
<include refid="selectJobLogVo"/>
|
|
|
<where>
|
|
|
- <if test="jobName != null and jobName != ''">
|
|
|
- AND job_name like concat('%', #{jobName}, '%')
|
|
|
+ <if test="jobLog.jobName != null and jobLog.jobName != ''">
|
|
|
+ AND job_name like concat('%', #{jobLog.jobName}, '%')
|
|
|
</if>
|
|
|
- <if test="jobGroup != null and jobGroup != ''">
|
|
|
+ <if test="jobLog.jobGroup != null and jobLog.jobGroup != ''">
|
|
|
AND job_group = #{jobGroup}
|
|
|
</if>
|
|
|
- <if test="status != null and status != ''">
|
|
|
- AND status = #{status}
|
|
|
+ <if test="jobLog.status != null and jobLog.status != ''">
|
|
|
+ AND status = #{jobLog.status}
|
|
|
</if>
|
|
|
- <if test="invokeTarget != null and invokeTarget != ''">
|
|
|
- AND invoke_target like concat('%', #{invokeTarget}, '%')
|
|
|
+ <if test="jobLog.invokeTarget != null and jobLog.invokeTarget != ''">
|
|
|
+ AND invoke_target like concat('%', #{jobLog.invokeTarget}, '%')
|
|
|
</if>
|
|
|
- <if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
- and date_format(create_time,'%y%m%d') >= date_format(#{params.beginTime},'%y%m%d')
|
|
|
+ <if test="jobLog.params.beginTime != null and jobLog.params.beginTime != ''"><!-- 开始时间检索 -->
|
|
|
+ and date_format(create_time,'%y%m%d') >= date_format(#{jobLog.params.beginTime},'%y%m%d')
|
|
|
</if>
|
|
|
- <if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
- and date_format(create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d')
|
|
|
+ <if test="jobLog.params.endTime != null and jobLog.params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
+ and date_format(create_time,'%y%m%d') <= date_format(#{jobLog.params.endTime},'%y%m%d')
|
|
|
</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 into sys_job_log(
|
|
|
<if test="jobLogId != null and jobLogId != 0">job_log_id,</if>
|
|
@@ -90,4 +90,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|