guq 7 лет назад
Родитель
Сommit
7a90d2f653

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

@@ -49,6 +49,17 @@ public class SysStudent {
 
     private String stu_political;
 
+    private String stu_cardNo;
+
+
+    public String getStu_cardNo() {
+        return stu_cardNo;
+    }
+
+    public void setStu_cardNo(String stu_cardNo) {
+        this.stu_cardNo = stu_cardNo;
+    }
+
     public String getStu_classnickname() {
         return stu_classnickname;
     }

+ 2 - 0
applications/school/school-server/src/main/resources/mapper/HomeWorkMapper.xml

@@ -19,6 +19,8 @@
         <result column="publish_date" property="publish_date" jdbcType="TIMESTAMP"/>
         <result column="creator" property="creator" jdbcType="VARCHAR"/>
         <result column="accessory" property="accessory" jdbcType="VARCHAR"/>
+        <result property="task_classid" column="task_classid" jdbcType="BIGINT"/>
+        <result property="task_gradeid" column="task_gradeid" jdbcType="BIGINT"/>
     </resultMap>
 
     <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">

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

@@ -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>