INSERT INTO vip_group (id_,user_id_,single_class_minutes_,payment_expire_date_,courses_expire_date_,create_time_,update_time_,teacher_school_id_,online_classes_num_,offline_classes_num_,registration_start_time_,price_) VALUES(#{id},#{userId},#{singleClassMinutes},#{paymentExpireDate},#{coursesExpireDate},now(),now(),#{teacherSchoolId},#{onlineClassesNum},#{offlineClassesNum},#{registrationStartTime},#{price}) UPDATE vip_group payment_expire_date_ = #{paymentExpireDate}, user_id_ = #{userId}, offline_classes_num_ = #{offlineClassesNum}, online_classes_num_ = #{onlineClassesNum}, update_time_ = #{updateTime}, single_class_minutes_ = #{singleClassMinutes}, teacher_school_id_ = #{teacherSchoolId}, courses_expire_date_ = #{coursesExpireDate}, registration_start_time_ = #{registrationStartTime}, price_=#{price} audit_status_ = #{auditStatus,typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"}, WHERE id_ = #{id} DELETE FROM vip_group WHERE id_ = #{id}