UPDATE th_batch_course_chapter
set del_flag = 2
where batch_uuid = #{batchUuid}
INSERT INTO th_batch_course_chapter ( chapter_uuid, chapter_code,chapter_name,lesson_num,have_resource, duration,
institution_id,resource_type,course_uuid ,parent_uuid,
url, del_flag,create_time,update_time,create_by,update_by,batch_uuid,serialno) VALUES
(#{item.chapterUuid},#{item.chapterCode},#{item.chapterName},#{item.lessonNum},#{item.haveResource},#{item.duration},
#{item.institutionId},#{item.resourceType},#{item.courseUuid},
#{item.parentUuid},#{item.url},#{item.delFlag},#{item.createTime},
#{item.updateTime},#{item.createBy},#{item.updateBy},#{item.batchUuid},#{item.serialno})
UPDATE th_batch_course_chapter
chapter_uuid = #{item.chapterUuid},
chapter_code = #{item.chapterCode},
chapter_name = #{item.chapterName},
lesson_num = #{item.lessonNum},
have_resource = #{item.haveResource},
duration = #{item.duration},
institution_id = #{item.institutionId},
resource_type = #{item.resourceType},
serialno = #{item.serialno},
course_uuid = #{item.courseUuid},
parent_uuid = #{item.parentUuid},
url = #{item.url},
del_flag = #{item.delFlag},
update_by = #{item.updateBy},
update_time = #{item.updateTime},
batch_uuid = #{item.batchUuid}
where id = #{item.id}