ソースを参照

学校添加片区

shuzhan 3 年 前
コミット
35791e1da8

+ 2 - 0
common/src/main/java/com/jpsoft/campus/modules/base/entity/SchoolInfo.java

@@ -121,6 +121,8 @@ public class SchoolInfo {
     @ApiModelProperty(value = "学区名称")
     private String parentName;
 
+    @ApiModelProperty(value = "招生片区")
+    private String district;
 
     /**
      * 学校编码"

+ 6 - 1
common/src/main/resources/mapper/base/SchoolInfo.xml

@@ -25,6 +25,7 @@
         <result property="schoolCode" column="school_code"/>
         <result property="type" column="type_"/>
         <result property="isOpen" column="is_open"/>
+        <result property="district" column="district_"/>
     </resultMap>
     <insert id="insert" parameterType="com.jpsoft.campus.modules.base.entity.SchoolInfo">
         <!--
@@ -35,7 +36,7 @@
         <![CDATA[
 		insert into base_school_info
 	    (id_,create_by,create_time,update_by,update_time,del_flag,name_,logo_,enrollment_type,address_,phone_,
-	    lector_introduction,longitude_,latitude_,code_,introduction_,parent_id,school_code,type_,is_open)
+	    lector_introduction,longitude_,latitude_,code_,introduction_,parent_id,school_code,type_,is_open,district_)
 		values
 		(
             #{id,jdbcType=VARCHAR}
@@ -58,6 +59,7 @@
             ,#{schoolCode,jdbcType=VARCHAR}
             ,#{type,jdbcType=VARCHAR}
             ,#{isOpen,jdbcType= NUMERIC }
+            ,#{district,jdbcType=VARCHAR}
 		)
 	]]>
     </insert>
@@ -124,6 +126,9 @@
             <if test="isOpen!=null">
                 is_open=#{isOpen,jdbcType= NUMERIC },
             </if>
+            <if test="district!=null">
+                district_=#{district,jdbcType=VARCHAR},
+            </if>
         </set>
         where id_=#{id}
     </update>