select course_id, course_name, course_type, course_conent, status,personnel_type, release_time, enclosure, video, qualified_num, topic_num, create_time, create_user, is_del, data_kind, test_start_time, test_end_time, test_persons from t_train_course insert into t_train_course course_name, course_type, course_conent, status, personnel_type, release_time, enclosure, video, qualified_num, topic_num, create_time, create_user, is_del, data_kind, test_start_time, test_end_time, test_persons, #{courseName}, #{courseType}, #{courseConent}, #{status}, #{personnelType}, #{releaseTime}, #{enclosure}, #{video}, #{qualifiedNum}, #{topicNum}, #{createTime}, #{createUser}, #{isDel}, #{dataKind}, #{testStartTime}, #{testEndTime}, #{testPersons}, update t_train_course course_name = #{courseName}, course_type = #{courseType}, course_conent = #{courseConent}, status = #{status}, personnel_type = #{personnelType}, release_time = #{releaseTime}, enclosure = #{enclosure}, video = #{video}, qualified_num = #{qualifiedNum}, topic_num = #{topicNum}, create_time = #{createTime}, create_user = #{createUser}, is_del = #{isDel}, data_kind = #{dataKind}, test_start_time = #{testStartTime}, test_end_time = #{testEndTime}, test_persons = #{testPersons}, where course_id = #{courseId} delete from t_train_course where course_id = #{courseId} delete from t_train_course where course_id in #{courseId} INSERT INTO t_train_user_course(user_id,course_id,personnel_type,create_time) VALUES (#{item},#{courseId},#{personnelType},NOW())