|  | @@ -5,27 +5,22 @@
 | 
	
		
			
				|  |  |  <mapper namespace="com.xunmei.core.edu.mapper.CoreEduTrainingTaskMapper">
 | 
	
		
			
				|  |  |      <resultMap type="com.xunmei.common.core.domain.edu.domain.CoreEduTrainingTask" id="CoreEduTrainingTaskResult">
 | 
	
		
			
				|  |  |          <result property="id" column="id"/>
 | 
	
		
			
				|  |  | +        <result property="planCycle" column="plan_cycle"/>
 | 
	
		
			
				|  |  |          <result property="planId" column="plan_id"/>
 | 
	
		
			
				|  |  | -        <result property="roleId" column="role_id"/>
 | 
	
		
			
				|  |  | -        <result property="startDate" column="start_date"/>
 | 
	
		
			
				|  |  | -        <result property="endDate" column="end_date"/>
 | 
	
		
			
				|  |  | -        <result property="actualCount" column="actual_count"/>
 | 
	
		
			
				|  |  | -        <result property="content" column="content"/>
 | 
	
		
			
				|  |  | -        <result property="roleName" column="role_name"/>
 | 
	
		
			
				|  |  | -        <result property="roleIds" column="role_ids"/>
 | 
	
		
			
				|  |  | -        <result property="roleNames" column="role_names"/>
 | 
	
		
			
				|  |  | +        <result property="orgId" column="org_id"/>
 | 
	
		
			
				|  |  | +        <result property="orgName" column="org_name"/>
 | 
	
		
			
				|  |  | +        <result property="orgPath" column="org_path"/>
 | 
	
		
			
				|  |  |          <result property="title" column="title"/>
 | 
	
		
			
				|  |  | +        <result property="type" column="type"/>
 | 
	
		
			
				|  |  | +        <result property="status" column="status"/>
 | 
	
		
			
				|  |  | +        <result property="content" column="content"/>
 | 
	
		
			
				|  |  |          <result property="note" column="note"/>
 | 
	
		
			
				|  |  | -        <result property="dateTime" column="date_time"/>
 | 
	
		
			
				|  |  | -        <result property="dueCount" column="due_count"/>
 | 
	
		
			
				|  |  |          <result property="hostId" column="host_id"/>
 | 
	
		
			
				|  |  | +        <result property="startDate" column="start_date"/>
 | 
	
		
			
				|  |  | +        <result property="endDate" column="end_date"/>
 | 
	
		
			
				|  |  | +        <result property="dateTime" column="date_time"/>
 | 
	
		
			
				|  |  |          <result property="fileList" column="file_list"/>
 | 
	
		
			
				|  |  |          <result property="imageList" column="image_list"/>
 | 
	
		
			
				|  |  | -        <result property="orgId" column="org_id"/>
 | 
	
		
			
				|  |  | -        <result property="recorderId" column="recorder_id"/>
 | 
	
		
			
				|  |  | -        <result property="type" column="type"/>
 | 
	
		
			
				|  |  | -        <result property="orgName" column="org_name"/>
 | 
	
		
			
				|  |  | -        <result property="orgPath" column="org_path"/>
 | 
	
		
			
				|  |  |          <result property="pdfUrl" column="pdf_url"/>
 | 
	
		
			
				|  |  |          <result property="createBy" column="create_by"/>
 | 
	
		
			
				|  |  |          <result property="createTime" column="create_time"/>
 | 
	
	
		
			
				|  | @@ -35,27 +30,22 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <sql id="selectCoreEduTrainingTaskVo">
 | 
	
		
			
				|  |  |          select id,
 | 
	
		
			
				|  |  | +               plan_cycle,
 | 
	
		
			
				|  |  |                 plan_id,
 | 
	
		
			
				|  |  | -               role_id,
 | 
	
		
			
				|  |  | -               start_date,
 | 
	
		
			
				|  |  | -               end_date,
 | 
	
		
			
				|  |  | -               actual_count,
 | 
	
		
			
				|  |  | -               content,
 | 
	
		
			
				|  |  | -               role_name,
 | 
	
		
			
				|  |  | -               role_ids,
 | 
	
		
			
				|  |  | -               role_names,
 | 
	
		
			
				|  |  | +               org_id,
 | 
	
		
			
				|  |  | +               org_name,
 | 
	
		
			
				|  |  | +               org_path,
 | 
	
		
			
				|  |  |                 title,
 | 
	
		
			
				|  |  | +               type,
 | 
	
		
			
				|  |  | +               status,
 | 
	
		
			
				|  |  | +               content,
 | 
	
		
			
				|  |  |                 note,
 | 
	
		
			
				|  |  | -               date_time,
 | 
	
		
			
				|  |  | -               due_count,
 | 
	
		
			
				|  |  |                 host_id,
 | 
	
		
			
				|  |  | +               start_date,
 | 
	
		
			
				|  |  | +               end_date,
 | 
	
		
			
				|  |  | +               date_time,
 | 
	
		
			
				|  |  |                 file_list,
 | 
	
		
			
				|  |  |                 image_list,
 | 
	
		
			
				|  |  | -               org_id,
 | 
	
		
			
				|  |  | -               recorder_id,
 | 
	
		
			
				|  |  | -               type,
 | 
	
		
			
				|  |  | -               org_name,
 | 
	
		
			
				|  |  | -               org_path,
 | 
	
		
			
				|  |  |                 pdf_url,
 | 
	
		
			
				|  |  |                 create_by,
 | 
	
		
			
				|  |  |                 create_time,
 | 
	
	
		
			
				|  | @@ -64,377 +54,14 @@
 | 
	
		
			
				|  |  |          from core_edu_training_task
 | 
	
		
			
				|  |  |      </sql>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    <select id="selectCoreEduTrainingTaskList"
 | 
	
		
			
				|  |  | -            parameterType="com.xunmei.common.core.domain.edu.domain.CoreEduTrainingTask"
 | 
	
		
			
				|  |  | -            resultMap="CoreEduTrainingTaskResult">
 | 
	
		
			
				|  |  | -        <include refid="selectCoreEduTrainingTaskVo"/>
 | 
	
		
			
				|  |  | -        <where>
 | 
	
		
			
				|  |  | -            <if test="planId != null ">
 | 
	
		
			
				|  |  | -                and plan_id = #{planId}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleId != null ">
 | 
	
		
			
				|  |  | -                and role_id = #{roleId}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="startDate != null ">
 | 
	
		
			
				|  |  | -                and start_date = #{startDate}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="endDate != null ">
 | 
	
		
			
				|  |  | -                and end_date = #{endDate}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="actualCount != null ">
 | 
	
		
			
				|  |  | -                and actual_count = #{actualCount}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="content != null  and content != ''">
 | 
	
		
			
				|  |  | -                and content = #{content}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleName != null  and roleName != ''">
 | 
	
		
			
				|  |  | -                and role_name like concat('%', #{roleName}, '%')
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleIds != null  and roleIds != ''">
 | 
	
		
			
				|  |  | -                and role_ids = #{roleIds}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleNames != null  and roleNames != ''">
 | 
	
		
			
				|  |  | -                and role_names = #{roleNames}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="title != null  and title != ''">
 | 
	
		
			
				|  |  | -                and title = #{title}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="note != null  and note != ''">
 | 
	
		
			
				|  |  | -                and note = #{note}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="dateTime != null ">
 | 
	
		
			
				|  |  | -                and date_time = #{dateTime}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="dueCount != null ">
 | 
	
		
			
				|  |  | -                and due_count = #{dueCount}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="hostId != null ">
 | 
	
		
			
				|  |  | -                and host_id = #{hostId}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="fileList != null  and fileList != ''">
 | 
	
		
			
				|  |  | -                and file_list = #{fileList}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="imageList != null  and imageList != ''">
 | 
	
		
			
				|  |  | -                and image_list = #{imageList}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgId != null ">
 | 
	
		
			
				|  |  | -                and org_id = #{orgId}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="recorderId != null ">
 | 
	
		
			
				|  |  | -                and recorder_id = #{recorderId}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="type != null ">
 | 
	
		
			
				|  |  | -                and type = #{type}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgName != null  and orgName != ''">
 | 
	
		
			
				|  |  | -                and org_name like concat('%', #{orgName}, '%')
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgPath != null  and orgPath != ''">
 | 
	
		
			
				|  |  | -                and org_path = #{orgPath}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="pdfUrl != null  and pdfUrl != ''">
 | 
	
		
			
				|  |  | -                and pdf_url = #{pdfUrl}
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -        </where>
 | 
	
		
			
				|  |  | +    <select id="checkHasTaskIsDone" resultType="java.lang.Integer">
 | 
	
		
			
				|  |  | +        select 1 from core_edu_training_task where status !=0 and plan_id in
 | 
	
		
			
				|  |  | +        <foreach collection="list" item="item" index="index" open="(" close=")" separator=",">
 | 
	
		
			
				|  |  | +            #{item}
 | 
	
		
			
				|  |  | +        </foreach>
 | 
	
		
			
				|  |  | +        limit 1
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    <select id="selectCoreEduTrainingTaskById" parameterType="Long"
 | 
	
		
			
				|  |  | -            resultMap="CoreEduTrainingTaskResult">
 | 
	
		
			
				|  |  | -        <include refid="selectCoreEduTrainingTaskVo"/>
 | 
	
		
			
				|  |  | -        where id = #{id}
 | 
	
		
			
				|  |  | +    <select id="selectPageData" resultType="com.xunmei.common.core.domain.edu.vo.CoreEduTrainingTaskPageVo">
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    <insert id="insertCoreEduTrainingTask" parameterType="com.xunmei.common.core.domain.edu.domain.CoreEduTrainingTask">
 | 
	
		
			
				|  |  | -        insert into core_edu_training_task
 | 
	
		
			
				|  |  | -        <trim prefix="(" suffix=")" suffixOverrides=",">
 | 
	
		
			
				|  |  | -            <if test="id != null">
 | 
	
		
			
				|  |  | -                id,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="planId != null">
 | 
	
		
			
				|  |  | -                plan_id,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleId != null">
 | 
	
		
			
				|  |  | -                role_id,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="startDate != null">
 | 
	
		
			
				|  |  | -                start_date,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="endDate != null">
 | 
	
		
			
				|  |  | -                end_date,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="actualCount != null">
 | 
	
		
			
				|  |  | -                actual_count,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="content != null">
 | 
	
		
			
				|  |  | -                content,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleName != null">
 | 
	
		
			
				|  |  | -                role_name,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleIds != null">
 | 
	
		
			
				|  |  | -                role_ids,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleNames != null">
 | 
	
		
			
				|  |  | -                role_names,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="title != null">
 | 
	
		
			
				|  |  | -                title,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="note != null">
 | 
	
		
			
				|  |  | -                note,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="dateTime != null">
 | 
	
		
			
				|  |  | -                date_time,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="dueCount != null">
 | 
	
		
			
				|  |  | -                due_count,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="hostId != null">
 | 
	
		
			
				|  |  | -                host_id,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="fileList != null">
 | 
	
		
			
				|  |  | -                file_list,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="imageList != null">
 | 
	
		
			
				|  |  | -                image_list,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgId != null">
 | 
	
		
			
				|  |  | -                org_id,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="recorderId != null">
 | 
	
		
			
				|  |  | -                recorder_id,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="type != null">
 | 
	
		
			
				|  |  | -                type,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgName != null">
 | 
	
		
			
				|  |  | -                org_name,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgPath != null">
 | 
	
		
			
				|  |  | -                org_path,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="pdfUrl != null">
 | 
	
		
			
				|  |  | -                pdf_url,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="createBy != null">
 | 
	
		
			
				|  |  | -                create_by,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="createTime != null">
 | 
	
		
			
				|  |  | -                create_time,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="updateBy != null">
 | 
	
		
			
				|  |  | -                update_by,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="updateTime != null">
 | 
	
		
			
				|  |  | -                update_time,
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -        </trim>
 | 
	
		
			
				|  |  | -        <trim prefix="values (" suffix=")" suffixOverrides=",">
 | 
	
		
			
				|  |  | -            <if test="id != null">
 | 
	
		
			
				|  |  | -                #{id},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="planId != null">
 | 
	
		
			
				|  |  | -                #{planId},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleId != null">
 | 
	
		
			
				|  |  | -                #{roleId},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="startDate != null">
 | 
	
		
			
				|  |  | -                #{startDate},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="endDate != null">
 | 
	
		
			
				|  |  | -                #{endDate},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="actualCount != null">
 | 
	
		
			
				|  |  | -                #{actualCount},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="content != null">
 | 
	
		
			
				|  |  | -                #{content},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleName != null">
 | 
	
		
			
				|  |  | -                #{roleName},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleIds != null">
 | 
	
		
			
				|  |  | -                #{roleIds},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleNames != null">
 | 
	
		
			
				|  |  | -                #{roleNames},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="title != null">
 | 
	
		
			
				|  |  | -                #{title},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="note != null">
 | 
	
		
			
				|  |  | -                #{note},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="dateTime != null">
 | 
	
		
			
				|  |  | -                #{dateTime},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="dueCount != null">
 | 
	
		
			
				|  |  | -                #{dueCount},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="hostId != null">
 | 
	
		
			
				|  |  | -                #{hostId},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="fileList != null">
 | 
	
		
			
				|  |  | -                #{fileList},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="imageList != null">
 | 
	
		
			
				|  |  | -                #{imageList},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgId != null">
 | 
	
		
			
				|  |  | -                #{orgId},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="recorderId != null">
 | 
	
		
			
				|  |  | -                #{recorderId},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="type != null">
 | 
	
		
			
				|  |  | -                #{type},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgName != null">
 | 
	
		
			
				|  |  | -                #{orgName},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgPath != null">
 | 
	
		
			
				|  |  | -                #{orgPath},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="pdfUrl != null">
 | 
	
		
			
				|  |  | -                #{pdfUrl},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="createBy != null">
 | 
	
		
			
				|  |  | -                #{createBy},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="createTime != null">
 | 
	
		
			
				|  |  | -                #{createTime},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="updateBy != null">
 | 
	
		
			
				|  |  | -                #{updateBy},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="updateTime != null">
 | 
	
		
			
				|  |  | -                #{updateTime},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -        </trim>
 | 
	
		
			
				|  |  | -    </insert>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    <update id="updateCoreEduTrainingTask" parameterType="com.xunmei.common.core.domain.edu.domain.CoreEduTrainingTask">
 | 
	
		
			
				|  |  | -        update core_edu_training_task
 | 
	
		
			
				|  |  | -        <trim prefix="SET" suffixOverrides=",">
 | 
	
		
			
				|  |  | -            <if test="planId != null">
 | 
	
		
			
				|  |  | -                plan_id =
 | 
	
		
			
				|  |  | -                #{planId},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleId != null">
 | 
	
		
			
				|  |  | -                role_id =
 | 
	
		
			
				|  |  | -                #{roleId},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="startDate != null">
 | 
	
		
			
				|  |  | -                start_date =
 | 
	
		
			
				|  |  | -                #{startDate},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="endDate != null">
 | 
	
		
			
				|  |  | -                end_date =
 | 
	
		
			
				|  |  | -                #{endDate},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="actualCount != null">
 | 
	
		
			
				|  |  | -                actual_count =
 | 
	
		
			
				|  |  | -                #{actualCount},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="content != null">
 | 
	
		
			
				|  |  | -                content =
 | 
	
		
			
				|  |  | -                #{content},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleName != null">
 | 
	
		
			
				|  |  | -                role_name =
 | 
	
		
			
				|  |  | -                #{roleName},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleIds != null">
 | 
	
		
			
				|  |  | -                role_ids =
 | 
	
		
			
				|  |  | -                #{roleIds},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="roleNames != null">
 | 
	
		
			
				|  |  | -                role_names =
 | 
	
		
			
				|  |  | -                #{roleNames},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="title != null">
 | 
	
		
			
				|  |  | -                title =
 | 
	
		
			
				|  |  | -                #{title},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="note != null">
 | 
	
		
			
				|  |  | -                note =
 | 
	
		
			
				|  |  | -                #{note},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="dateTime != null">
 | 
	
		
			
				|  |  | -                date_time =
 | 
	
		
			
				|  |  | -                #{dateTime},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="dueCount != null">
 | 
	
		
			
				|  |  | -                due_count =
 | 
	
		
			
				|  |  | -                #{dueCount},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="hostId != null">
 | 
	
		
			
				|  |  | -                host_id =
 | 
	
		
			
				|  |  | -                #{hostId},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="fileList != null">
 | 
	
		
			
				|  |  | -                file_list =
 | 
	
		
			
				|  |  | -                #{fileList},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="imageList != null">
 | 
	
		
			
				|  |  | -                image_list =
 | 
	
		
			
				|  |  | -                #{imageList},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgId != null">
 | 
	
		
			
				|  |  | -                org_id =
 | 
	
		
			
				|  |  | -                #{orgId},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="recorderId != null">
 | 
	
		
			
				|  |  | -                recorder_id =
 | 
	
		
			
				|  |  | -                #{recorderId},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="type != null">
 | 
	
		
			
				|  |  | -                type =
 | 
	
		
			
				|  |  | -                #{type},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgName != null">
 | 
	
		
			
				|  |  | -                org_name =
 | 
	
		
			
				|  |  | -                #{orgName},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="orgPath != null">
 | 
	
		
			
				|  |  | -                org_path =
 | 
	
		
			
				|  |  | -                #{orgPath},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="pdfUrl != null">
 | 
	
		
			
				|  |  | -                pdf_url =
 | 
	
		
			
				|  |  | -                #{pdfUrl},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="createBy != null">
 | 
	
		
			
				|  |  | -                create_by =
 | 
	
		
			
				|  |  | -                #{createBy},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="createTime != null">
 | 
	
		
			
				|  |  | -                create_time =
 | 
	
		
			
				|  |  | -                #{createTime},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="updateBy != null">
 | 
	
		
			
				|  |  | -                update_by =
 | 
	
		
			
				|  |  | -                #{updateBy},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -            <if test="updateTime != null">
 | 
	
		
			
				|  |  | -                update_time =
 | 
	
		
			
				|  |  | -                #{updateTime},
 | 
	
		
			
				|  |  | -            </if>
 | 
	
		
			
				|  |  | -        </trim>
 | 
	
		
			
				|  |  | -        where id = #{id}
 | 
	
		
			
				|  |  | -    </update>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    <delete id="deleteCoreEduTrainingTaskById" parameterType="Long">
 | 
	
		
			
				|  |  | -        delete
 | 
	
		
			
				|  |  | -        from core_edu_training_task
 | 
	
		
			
				|  |  | -        where id = #{id}
 | 
	
		
			
				|  |  | -    </delete>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    <delete id="deleteCoreEduTrainingTaskByIds" parameterType="String">
 | 
	
		
			
				|  |  | -        delete from core_edu_training_task where id in
 | 
	
		
			
				|  |  | -        <foreach item="id" collection="array" open="(" separator="," close=")">
 | 
	
		
			
				|  |  | -            #{id}
 | 
	
		
			
				|  |  | -        </foreach>
 | 
	
		
			
				|  |  | -    </delete>
 | 
	
		
			
				|  |  |  </mapper>
 |