INSERT INTO edu_train_task (train_theme,train_content, train_level, train_target, start_time, end_time, train_location,qr_code_uuid, train_lduration, speaker, train_num, sign_status,create_id,create_user, is_active) VALUES (#{trainingName},#{trainingContent}, #{trainingLevel}, #{studyObject}, #{startDate},#{endDate}, #{trainingPlace},#{qrCodeUuid}, #{trainingDuration}, #{lecturer}, #{trainingNumber}, '0', #{createUser},#{createUserName}, '1') INSERT INTO ek_study_task_paper (study_task_id, exam_paper_id, task_type,exam_template_type) VALUES (#{studyId}, #{examId}, #{type},'1') INSERT INTO ek_task_user user_uuid, user_id, user_type, dept_id, dept_name, pro_id, pro_name, sub_id, sub_name, post_id, post_name, task_type, #{uuid}, #{userId}, #{userType}, #{deptId}, #{deptName}, #{proId}, #{proName}, #{consId}, #{consName}, #{postId}, #{postName}, #{taskType}, INSERT INTO edu_train_task_photo (train_task_id, photo_path, file_size,file_name) VALUES (#{id}, #{filePath}, #{fileSize},#{fileName}) UPDATE edu_train_task SET sign_status = #{status} WHERE train_task_id = #{id} UPDATE edu_train_task SET train_theme = #{trainingName}, train_content = #{trainingContent}, train_level = #{trainingLevel}, qr_code_uuid = #{qrCodeUuid}, train_target = #{studyObject}, start_time = #{startDate}, end_time = #{endDate}, train_location = #{trainingPlace}, train_lduration = #{trainingDuration}, speaker = #{lecturer}, train_num = #{trainingNumber} WHERE train_task_id = #{id} update edu_train_task set is_active = '0' where train_task_id = #{id} delete from edu_train_task_photo where train_photo_id in #{id}