|
@@ -6,6 +6,8 @@
|
|
|
<!--@Table degree_registration-->
|
|
|
<id column="id_" jdbcType="INTEGER" property="id"/>
|
|
|
<result column="sporadic_id_" jdbcType="INTEGER" property="sporadicId"/>
|
|
|
+ <result column="order_no_" jdbcType="VARCHAR" property="orderNo"/>
|
|
|
+ <result column="trans_no_" jdbcType="VARCHAR" property="transNo"/>
|
|
|
<result column="name_" jdbcType="VARCHAR" property="name"/>
|
|
|
<result column="gender_" jdbcType="VARCHAR" property="gender"/>
|
|
|
<result column="idcard_" jdbcType="VARCHAR" property="idcard"/>
|
|
@@ -40,7 +42,7 @@
|
|
|
<sql id="queryPageSql">
|
|
|
<where>
|
|
|
<if test="status != null and status=='reg'">
|
|
|
- <![CDATA[AND status_ <= 1]]>
|
|
|
+ AND <![CDATA[status_ <= 1]]>
|
|
|
</if>
|
|
|
<if test="status != null and status=='pay'">
|
|
|
AND status_ = 2
|
|
@@ -51,6 +53,12 @@
|
|
|
<if test="search != null and search != ''">
|
|
|
AND (id_ = #{search} OR name_ LIKE CONCAT('%',#{search},'%') )
|
|
|
</if>
|
|
|
+ <if test="orderNo != null">
|
|
|
+ AND order_no_ = #{orderNo}
|
|
|
+ </if>
|
|
|
+ <if test="transNo != null">
|
|
|
+ AND trans_no_ = #{transNo}
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
|
AND name_ = #{name}
|
|
|
</if>
|
|
@@ -109,12 +117,12 @@
|
|
|
<insert id="insert" keyColumn="id_" keyProperty="id" parameterType="com.ym.mec.biz.dal.entity.DegreeRegistration"
|
|
|
useGeneratedKeys="true">
|
|
|
<!--@mbg.generated-->
|
|
|
- insert into degree_registration (sporadic_id_, name_, gender_,
|
|
|
+ insert into degree_registration (sporadic_id_,order_no_, 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},
|
|
|
+ values (#{sporadicId,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{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},
|
|
@@ -128,6 +136,12 @@
|
|
|
<if test="sporadicId != null">
|
|
|
sporadic_id_ = #{sporadicId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="orderNo != null">
|
|
|
+ order_no_ = #{orderNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="transNo != null">
|
|
|
+ trans_no_ = #{transNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
|
name_ = #{name,jdbcType=VARCHAR},
|
|
|
</if>
|