|
|
@@ -17,7 +17,14 @@
|
|
|
<result column="stu_remarks" property="stu_remarks" jdbcType="VARCHAR" />
|
|
|
<result column="clazz_id" property="clazz_id" jdbcType="BIGINT" />
|
|
|
<result column="school_id" property="school_id" jdbcType="BIGINT" />
|
|
|
+ <result column="stu_classnickname" property="stu_classnickname" jdbcType="VARCHAR" />
|
|
|
+ <result column="stu_class" property="stu_class" jdbcType="VARCHAR" />
|
|
|
+ <result column="stu_grade" property="stu_grade" jdbcType="VARCHAR" />
|
|
|
+ <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" />
|
|
|
</resultMap>
|
|
|
+
|
|
|
<sql id="Base_Column_List" >
|
|
|
stu_id, stu_number, stu_name, stu_enroll_date, stu_graduate_date, stu_birthday, stu_age,
|
|
|
stu_sex, stu_address, stu_photo, stu_status, stu_is_write, stu_remarks, clazz_id,
|
|
|
@@ -25,7 +32,7 @@
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
+ *
|
|
|
from sys_student
|
|
|
where stu_id = #{stu_id,jdbcType=BIGINT}
|
|
|
</select>
|
|
|
@@ -95,6 +102,24 @@
|
|
|
<if test="school_id != null" >
|
|
|
school_id,
|
|
|
</if>
|
|
|
+ <if test="stu_classnickname != null" >
|
|
|
+ stu_classnickname,
|
|
|
+ </if>
|
|
|
+ <if test="stu_class != null" >
|
|
|
+ stu_class,
|
|
|
+ </if>
|
|
|
+ <if test="stu_grade != null" >
|
|
|
+ stu_grade,
|
|
|
+ </if>
|
|
|
+ <if test="stu_native != null" >
|
|
|
+ stu_native,
|
|
|
+ </if>
|
|
|
+ <if test="stu_nation != null" >
|
|
|
+ stu_nation,
|
|
|
+ </if>
|
|
|
+ <if test="stu_political != null" >
|
|
|
+ stu_political,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="stu_number != null" >
|
|
|
@@ -139,6 +164,24 @@
|
|
|
<if test="school_id != null" >
|
|
|
#{school_id,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="stu_classnickname != null" >
|
|
|
+ #{stu_classnickname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stu_class != null" >
|
|
|
+ #{stu_class,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stu_grade != null" >
|
|
|
+ #{stu_grade,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stu_native != null" >
|
|
|
+ #{stu_native,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stu_nation != null" >
|
|
|
+ #{stu_nation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stu_political != null" >
|
|
|
+ #{stu_political,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.smartschool.school.po.SysStudent" >
|
|
|
@@ -186,6 +229,24 @@
|
|
|
<if test="school_id != null" >
|
|
|
school_id = #{school_id,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
+ <if test="stu_classnickname != null" >
|
|
|
+ stu_classnickname = #{stu_classnickname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stu_class != null" >
|
|
|
+ stu_class = #{stu_class,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stu_grade != null" >
|
|
|
+ stu_grade = #{stu_grade,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stu_native != null" >
|
|
|
+ stu_native = #{stu_native,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stu_nation != null" >
|
|
|
+ stu_nation = #{stu_nation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stu_political != null" >
|
|
|
+ stu_political = #{stu_political,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where stu_id = #{stu_id,jdbcType=BIGINT}
|
|
|
</update>
|