|
|
@@ -18,12 +18,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="remark" column="remark" />
|
|
|
+ <result property="saveLog" column="save_log" />
|
|
|
</resultMap>
|
|
|
-
|
|
|
+
|
|
|
<sql id="selectJobVo">
|
|
|
- select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark
|
|
|
+ select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark, save_log
|
|
|
from sys_job
|
|
|
- </sql>
|
|
|
+ </sql>
|
|
|
|
|
|
<select id="selectJobList" parameterType="SysJob" resultMap="SysJobResult">
|
|
|
<include refid="selectJobVo"/>
|
|
|
@@ -40,6 +41,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="invokeTarget != null and invokeTarget != ''">
|
|
|
AND invoke_target like concat('%', #{invokeTarget}, '%')
|
|
|
</if>
|
|
|
+ <if test="saveLog != null and saveLog != ''">
|
|
|
+ AND save_log like concat('%', #{saveLog}, '%')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -75,6 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status !=null">status = #{status},</if>
|
|
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
|
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
+ <if test="saveLog != null and saveLog != ''">save_log = #{saveLog},</if>
|
|
|
update_time = sysdate()
|
|
|
</set>
|
|
|
where job_id = #{jobId}
|
|
|
@@ -92,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status != null and status != ''">status,</if>
|
|
|
<if test="remark != null and remark != ''">remark,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
+ <if test="saveLog != null and saveLog != ''">save_log = #{saveLog},</if>
|
|
|
create_time
|
|
|
)values(
|
|
|
<if test="jobId != null and jobId != 0">#{jobId},</if>
|
|
|
@@ -104,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="status != null and status != ''">#{status},</if>
|
|
|
<if test="remark != null and remark != ''">#{remark},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
+ <if test="saveLog != null and saveLog != ''">save_log = #{saveLog},</if>
|
|
|
sysdate()
|
|
|
)
|
|
|
</insert>
|