|
@@ -6,12 +6,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<resultMap type="TaskManage" id="TaskManageResult">
|
|
|
<result property="taskId" column="task_id" />
|
|
|
+ <result property="clockSetId" column="clock_set_id" />
|
|
|
+ <result property="clockName" column="clock_name" />
|
|
|
<result property="taskNum" column="task_num" />
|
|
|
<result property="taskDetails" column="task_details" />
|
|
|
+ <result property="ioOutput" column="io_output" />
|
|
|
<result property="channelId" column="channel_id" />
|
|
|
<result property="videoAddress" column="video_address" />
|
|
|
<result property="reportAddress" column="report_address" />
|
|
|
- <result property="algorithmSet" column="algorithm_set" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
@@ -21,18 +23,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTaskManageVo">
|
|
|
- select task_id, task_num, task_details, channel_id, video_address, report_address, algorithm_set, del_flag, create_by, create_time, update_by, update_time, remark from task_manage
|
|
|
+ select task_id, clock_set_id, clock_name, task_num, task_details, io_output, channel_id, video_address, report_address, del_flag, create_by, create_time, update_by, update_time, remark from task_manage
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTaskManageList" parameterType="TaskManage" resultMap="TaskManageResult">
|
|
|
<include refid="selectTaskManageVo"/>
|
|
|
<where>
|
|
|
+ <if test="clockSetId != null "> and clock_set_id = #{clockSetId}</if>
|
|
|
+ <if test="clockName != null and clockName != ''"> and clock_name like concat('%', #{clockName}, '%')</if>
|
|
|
<if test="taskNum != null and taskNum != ''"> and task_num = #{taskNum}</if>
|
|
|
<if test="taskDetails != null and taskDetails != ''"> and task_details = #{taskDetails}</if>
|
|
|
+ <if test="ioOutput != null and ioOutput != ''"> and io_output = #{ioOutput}</if>
|
|
|
<if test="channelId != null "> and channel_id = #{channelId}</if>
|
|
|
<if test="videoAddress != null and videoAddress != ''"> and video_address = #{videoAddress}</if>
|
|
|
<if test="reportAddress != null and reportAddress != ''"> and report_address = #{reportAddress}</if>
|
|
|
- <if test="algorithmSet != null and algorithmSet != ''"> and algorithm_set = #{algorithmSet}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -44,12 +48,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<insert id="insertTaskManage" parameterType="TaskManage" useGeneratedKeys="true" keyProperty="taskId">
|
|
|
insert into task_manage
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="clockSetId != null">clock_set_id,</if>
|
|
|
+ <if test="clockName != null">clock_name,</if>
|
|
|
<if test="taskNum != null">task_num,</if>
|
|
|
<if test="taskDetails != null">task_details,</if>
|
|
|
+ <if test="ioOutput != null">io_output,</if>
|
|
|
<if test="channelId != null">channel_id,</if>
|
|
|
<if test="videoAddress != null">video_address,</if>
|
|
|
<if test="reportAddress != null">report_address,</if>
|
|
|
- <if test="algorithmSet != null">algorithm_set,</if>
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
@@ -58,12 +64,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remark != null">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="clockSetId != null">#{clockSetId},</if>
|
|
|
+ <if test="clockName != null">#{clockName},</if>
|
|
|
<if test="taskNum != null">#{taskNum},</if>
|
|
|
<if test="taskDetails != null">#{taskDetails},</if>
|
|
|
+ <if test="ioOutput != null">#{ioOutput},</if>
|
|
|
<if test="channelId != null">#{channelId},</if>
|
|
|
<if test="videoAddress != null">#{videoAddress},</if>
|
|
|
<if test="reportAddress != null">#{reportAddress},</if>
|
|
|
- <if test="algorithmSet != null">#{algorithmSet},</if>
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
@@ -76,12 +84,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateTaskManage" parameterType="TaskManage">
|
|
|
update task_manage
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="clockSetId != null">clock_set_id = #{clockSetId},</if>
|
|
|
+ <if test="clockName != null">clock_name = #{clockName},</if>
|
|
|
<if test="taskNum != null">task_num = #{taskNum},</if>
|
|
|
<if test="taskDetails != null">task_details = #{taskDetails},</if>
|
|
|
+ <if test="ioOutput != null">io_output = #{ioOutput},</if>
|
|
|
<if test="channelId != null">channel_id = #{channelId},</if>
|
|
|
<if test="videoAddress != null">video_address = #{videoAddress},</if>
|
|
|
<if test="reportAddress != null">report_address = #{reportAddress},</if>
|
|
|
- <if test="algorithmSet != null">algorithm_set = #{algorithmSet},</if>
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|