|
@@ -27,6 +27,7 @@
|
|
|
<result column="update_time_" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
<result column="status_" jdbcType="TINYINT" property="status"/>
|
|
|
<result column="activity_tag_" property="activityTag"/>
|
|
|
+ <result column="degree_type_" property="degreeType"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="get" parameterType="java.lang.Integer" resultMap="DegreeRegistration">
|
|
@@ -53,6 +54,9 @@
|
|
|
<if test="status != null and status=='pay'">
|
|
|
AND status_ = 2
|
|
|
</if>
|
|
|
+ <if test="degreeType != null">
|
|
|
+ AND degree_type_ = #{degreeType}
|
|
|
+ </if>
|
|
|
<if test="id != null">
|
|
|
AND id_ = #{id}
|
|
|
</if>
|
|
@@ -127,13 +131,13 @@
|
|
|
idcard_, city_, school_,
|
|
|
subject_,level_, theory_level_,theory_money_, theory_cert_,mobile_,
|
|
|
money_, memo_, create_time_,
|
|
|
- update_time_, status_, activity_tag_)
|
|
|
+ update_time_, status_, activity_tag_,degree_type_)
|
|
|
values (#{userId},#{sporadicId,jdbcType=INTEGER},#{organId,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},
|
|
|
#{theoryCert,jdbcType=VARCHAR},#{mobile,jdbcType=VARCHAR},#{money,jdbcType=DECIMAL}, #{memo,jdbcType=VARCHAR},
|
|
|
- #{createTime}, #{updateTime}, #{status,jdbcType=TINYINT}, #{activityTag})
|
|
|
+ #{createTime}, #{updateTime}, #{status,jdbcType=TINYINT}, #{activityTag}, #{degreeType})
|
|
|
</insert>
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.DegreeRegistration">
|
|
|
<!--@mbg.generated-->
|
|
@@ -142,6 +146,9 @@
|
|
|
<if test="userId != null">
|
|
|
user_id_ = #{userId},
|
|
|
</if>
|
|
|
+ <if test="degreeType != null">
|
|
|
+ degree_type_ = #{degreeType},
|
|
|
+ </if>
|
|
|
<if test="organId != null">
|
|
|
organ_id_ = #{organId,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -214,6 +221,9 @@
|
|
|
<if test="degree.userId != null">
|
|
|
user_id_ = #{degree.userId},
|
|
|
</if>
|
|
|
+ <if test="degree.degreeType != null">
|
|
|
+ degree_type_ = #{degree.degreeType},
|
|
|
+ </if>
|
|
|
<if test="degree.organId != null">
|
|
|
organ_id_ = #{degree.organId,jdbcType=INTEGER},
|
|
|
</if>
|
|
@@ -309,6 +319,9 @@
|
|
|
<if test="degree.theoryLevel!=null">
|
|
|
AND theory_level_ = #{degree.theoryLevel}
|
|
|
</if>
|
|
|
+ <if test="degree.degreeType != null">
|
|
|
+ AND degree_type_ = #{degree.degreeType}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="getUserLevelDegrees" resultMap="DegreeRegistration">
|
|
@@ -318,5 +331,8 @@
|
|
|
user_id_ = #{userId}
|
|
|
AND activity_tag_=#{activityTag}
|
|
|
AND (sporadic_id_ IS NOT NULL OR theory_level_ IS NOT NULL)
|
|
|
+ <if test="degreeType != null">
|
|
|
+ AND degree_type_ = #{degreeType}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
</mapper>
|