|
|
@@ -23,6 +23,7 @@
|
|
|
<result column="stu_native" property="stu_native" jdbcType="VARCHAR" />
|
|
|
<result column="stu_nation" property="stu_nation" jdbcType="VARCHAR" />
|
|
|
<result column="stu_political" property="stu_political" jdbcType="VARCHAR" />
|
|
|
+ <result property="stu_cardNo" column="stu_cardNo" jdbcType="VARCHAR"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List" >
|
|
|
@@ -120,6 +121,9 @@
|
|
|
<if test="stu_political != null" >
|
|
|
stu_political,
|
|
|
</if>
|
|
|
+ <if test="stu_cardNo != null" >
|
|
|
+ stu_cardNo,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="stu_number != null" >
|
|
|
@@ -182,6 +186,9 @@
|
|
|
<if test="stu_political != null" >
|
|
|
#{stu_political,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="stu_cardNo != null" >
|
|
|
+ #{stu_cardNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.smartschool.school.po.SysStudent" >
|
|
|
@@ -247,6 +254,9 @@
|
|
|
<if test="stu_political != null" >
|
|
|
stu_political = #{stu_political,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="stu_cardNo != null" >
|
|
|
+ stu_cardNo = #{stu_cardNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where stu_id = #{stu_id,jdbcType=BIGINT}
|
|
|
</update>
|