INSERT INTO course_homework_template
(id_,name_,content_,create_time_,update_time_,class_group_type_,subject_id_)
VALUES(#{id},#{name},#{content},now(),now(),#{classGroupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{subjectId})
UPDATE course_homework_template
del_flag_ = #{delFlag,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
subject_id_ = #{subjectId},
update_time_ = now(),
content_ = #{content},
class_group_type_ = #{classGroupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
name_ = #{name},
WHERE id_ = #{id}
UPDATE course_homework_template SET del_flag_ = 1 WHERE id_ = #{id}
cht.del_flag_ = 0
and subject_id_ IN
#{subjectID}
and class_group_type_ = #{classType}