AND status_= #{status}
AND id_ = #{id}
AND (id_ = #{search} OR name_ LIKE CONCAT('%',#{search},'%') )
AND name_ = #{name}
AND idcard_ = #{idcard}
AND school_ LIKE CONCAT('%', #{school},'%')
AND city_ LIKE CONCAT('%', #{city},'%')
AND subject_= #{subject}
AND subject_= #{subject}
AND mobile_= #{mobile}
AND level_= #{level}
delete
from degree_registration
where id_ = #{id,jdbcType=INTEGER}
insert into degree_registration (sporadic_id_, name_, gender_,
idcard_, city_, school_,
subject_,level_, theory_level_,theory_money_, theory_cert_,mobile_,
money_, memo_, create_time_,
update_time_, status_)
values (#{sporadicId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{gender,jdbcType=VARCHAR},
#{idcard,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{school,jdbcType=VARCHAR},
#{subject,jdbcType=VARCHAR},#{level,jdbcType=VARCHAR},
#{theoryLevel,jdbcType=VARCHAR},#{theoryMoney,jdbcType=DECIMAL},
#{theoryCert,jdbcType=VARCHAR},#{mobile,jdbcType=VARCHAR},#{money,jdbcType=DECIMAL}, #{memo,jdbcType=VARCHAR},
#{createTime}, #{updateTime}, #{status,jdbcType=TINYINT})
update degree_registration
sporadic_id_ = #{sporadicId,jdbcType=INTEGER},
name_ = #{name,jdbcType=VARCHAR},
gender_ = #{gender,jdbcType=VARCHAR},
idcard_ = #{idcard,jdbcType=VARCHAR},
city_ = #{city,jdbcType=VARCHAR},
school_ = #{school,jdbcType=VARCHAR},
subject_ = #{subject,jdbcType=VARCHAR},
level_ = #{level,jdbcType=VARCHAR},
theory_level_ = #{theoryLevel,jdbcType=VARCHAR},
theory_money_ = #{theoryMoney,jdbcType=DECIMAL},
theory_cert_ = #{theoryCert,jdbcType=VARCHAR},
mobile_ = #{mobile,jdbcType=VARCHAR},
money_ = #{money,jdbcType=DECIMAL},
memo_ = #{memo,jdbcType=VARCHAR},
create_time_ = #{createTime},
update_time_ = #{updateTime},
status_ = #{status,jdbcType=INTEGER},
where id_ = #{id,jdbcType=INTEGER}