|
@@ -24,7 +24,7 @@
|
|
<result column="create_time_" jdbcType="TIMESTAMP" property="createTime"/>
|
|
<result column="create_time_" jdbcType="TIMESTAMP" property="createTime"/>
|
|
<result column="update_time_" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
<result column="update_time_" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
<result column="status_" jdbcType="TINYINT" property="status"/>
|
|
<result column="status_" jdbcType="TINYINT" property="status"/>
|
|
- <result column="certificate_type_" property="certificateType"/>
|
|
|
|
|
|
+ <result column="certificate_type_" property="certificateType" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
<result column="tenant_id_" property="tenantId" />
|
|
<result column="tenant_id_" property="tenantId" />
|
|
<result column="type_" property="type" />
|
|
<result column="type_" property="type" />
|
|
<result column="type_" property="type" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
<result column="type_" property="type" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
@@ -140,7 +140,9 @@
|
|
#{idcard,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{school,jdbcType=VARCHAR},
|
|
#{idcard,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{school,jdbcType=VARCHAR},
|
|
#{subjectId},#{level,jdbcType=VARCHAR},
|
|
#{subjectId},#{level,jdbcType=VARCHAR},
|
|
#{theoryCert,jdbcType=VARCHAR},#{mobile,jdbcType=VARCHAR},#{money,jdbcType=DECIMAL}, #{memo,jdbcType=VARCHAR},
|
|
#{theoryCert,jdbcType=VARCHAR},#{mobile,jdbcType=VARCHAR},#{money,jdbcType=DECIMAL}, #{memo,jdbcType=VARCHAR},
|
|
- #{createTime}, #{updateTime}, #{status,jdbcType=TINYINT},#{certificateType},#{tenantId},#{type})
|
|
|
|
|
|
+ #{createTime}, #{updateTime}, #{status,jdbcType=TINYINT},
|
|
|
|
+ #{certificateType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
|
+ #{tenantId},#{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
</insert>
|
|
</insert>
|
|
<insert id="batchInsert">
|
|
<insert id="batchInsert">
|
|
INSERT INTO degree_registration (user_id_,degree_id_,organ_id_,order_no_, name_, gender_,
|
|
INSERT INTO degree_registration (user_id_,degree_id_,organ_id_,order_no_, name_, gender_,
|
|
@@ -156,7 +158,8 @@
|
|
#{degreeRegistration.subjectId},#{degreeRegistration.level,jdbcType=VARCHAR},
|
|
#{degreeRegistration.subjectId},#{degreeRegistration.level,jdbcType=VARCHAR},
|
|
#{degreeRegistration.theoryCert,jdbcType=VARCHAR},#{degreeRegistration.mobile,jdbcType=VARCHAR},#{degreeRegistration.money,jdbcType=DECIMAL}, #{degreeRegistration.memo,jdbcType=VARCHAR},
|
|
#{degreeRegistration.theoryCert,jdbcType=VARCHAR},#{degreeRegistration.mobile,jdbcType=VARCHAR},#{degreeRegistration.money,jdbcType=DECIMAL}, #{degreeRegistration.memo,jdbcType=VARCHAR},
|
|
#{degreeRegistration.createTime}, #{degreeRegistration.updateTime}, #{degreeRegistration.status,jdbcType=TINYINT},
|
|
#{degreeRegistration.createTime}, #{degreeRegistration.updateTime}, #{degreeRegistration.status,jdbcType=TINYINT},
|
|
- #{degreeRegistration.certificateType},#{degreeRegistration.tenantId},#{degreeRegistration.type})
|
|
|
|
|
|
+ #{degreeRegistration.certificateType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
|
+ #{degreeRegistration.tenantId},#{degreeRegistration.type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler})
|
|
</foreach>
|
|
</foreach>
|
|
</insert>
|
|
</insert>
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.DegreeRegistration">
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.DegreeRegistration">
|
|
@@ -218,7 +221,7 @@
|
|
status_ = #{status,jdbcType=INTEGER},
|
|
status_ = #{status,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="certificateType != null">
|
|
<if test="certificateType != null">
|
|
- certificate_type_ = #{certificateType},
|
|
|
|
|
|
+ certificate_type_ = #{certificateType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
</if>
|
|
</if>
|
|
update_time_ = NOW()
|
|
update_time_ = NOW()
|
|
</set>
|
|
</set>
|
|
@@ -284,7 +287,7 @@
|
|
status_ = #{degree.status,jdbcType=INTEGER},
|
|
status_ = #{degree.status,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="degree.certificateType != null">
|
|
<if test="degree.certificateType != null">
|
|
- certificate_type_ = #{degree.certificateType},
|
|
|
|
|
|
+ certificate_type_ = #{degree.certificateType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
</if>
|
|
</if>
|
|
update_time_ = NOW()
|
|
update_time_ = NOW()
|
|
</set>
|
|
</set>
|