INSERT INTO e_class_plan( class_plan_id, org_id, plan_number, plan_name, plan_type, project_catalog_id, worker_catalog, plan_person_num, plan_start_time, plan_end_time, sign_up_start_time, sign_up_end_time, plan_address, charge_person, charge_person_tel, report_type, report_reason ) VALUES( #{classPlanId}, #{orgId}, #{planNumber}, #{planName}, #{planType}, #{projectCatalogId}, #{workerCatalog}, #{planPersonNum}, #{planStartTime}, #{planEndTime}, #{signUpStartTime}, #{signUpEndTime}, #{planAddress}, #{chargePerson}, #{chargePersonTel}, #{reportType}, #{reportReason} ) DELETE FROM e_class_plan WHERE class_plan_id IN #{classPlanIds[${index}]} UPDATE e_class_plan SET is_delete = '1' WHERE class_plan_id IN #{classPlanIds[${index}]} UPDATE e_class_plan SET plan_number = #{planNumber}, org_id = #{orgId}, plan_name = #{planName}, plan_type = #{planType}, project_catalog_id = #{projectCatalogId}, worker_catalog = #{workerCatalog}, plan_person_num = #{planPersonNum}, plan_start_time = #{planStartTime}, plan_end_time = #{planEndTime}, sign_up_start_time = #{signUpStartTime}, sign_up_end_time = #{signUpEndTime}, plan_address = #{planAddress}, charge_person = #{chargePerson}, charge_person_tel = #{chargePersonTel}, report_type = #{reportType}, report_reason = #{reportReason}, class_plan_id = class_plan_id WHERE class_plan_id = #{classPlanId} INSERT INTO e_class_plan_lesson (class_plan_id,lesson_id,teacher_id,is_delete) VALUES (#{classPlanId},#{lessonId},#{teacherId},0) UPDATE e_class_plan_lesson SET is_delete = '1' WHERE class_plan_id = #{classPlanId}