Sfoglia il codice sorgente

学生信息头像保存

chenw 7 anni fa
parent
commit
342911ab77

+ 9 - 0
applications/school/school-server/src/main/java/com/usoftchina/smartschool/school/po/SysStudent.java

@@ -51,6 +51,15 @@ public class SysStudent {
 
     private String stu_cardNo;
 
+    private String stu_img;
+
+    public String getStu_img() {
+        return stu_img;
+    }
+
+    public void setStu_img(String stu_img) {
+        this.stu_img = stu_img;
+    }
 
     public String getStu_cardNo() {
         return stu_cardNo;

+ 10 - 0
applications/school/school-server/src/main/resources/mapper/SysStudentMapper.xml

@@ -24,6 +24,7 @@
     <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"/>
+    <result property="stu_img" column="stu_img" jdbcType="VARCHAR"/>
   </resultMap>
 
   <sql id="Base_Column_List" >
@@ -124,6 +125,9 @@
       <if test="stu_cardNo != null" >
         stu_cardNo,
       </if>
+      <if test="stu_img != null" >
+        stu_img,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides="," >
       <if test="stu_number != null" >
@@ -189,6 +193,9 @@
       <if test="stu_cardNo != null" >
         #{stu_cardNo,jdbcType=VARCHAR},
       </if>
+      <if test="stu_img != null" >
+        #{stu_img,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.smartschool.school.po.SysStudent" >
@@ -257,6 +264,9 @@
       <if test="stu_cardNo != null" >
         stu_cardNo = #{stu_cardNo,jdbcType=VARCHAR},
       </if>
+      <if test="stu_img != null" >
+        stu_img = #{stu_img,jdbcType=VARCHAR},
+      </if>
     </set>
     where stu_id = #{stu_id,jdbcType=BIGINT}
   </update>