|
@@ -26,6 +26,7 @@
|
|
|
<result property="type" column="type_"/>
|
|
|
<result property="isOpen" column="is_open"/>
|
|
|
<result property="district" column="district_"/>
|
|
|
+ <result property="districtMiddle" column="district_middle"/>
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.campus.modules.base.entity.SchoolInfo">
|
|
|
<!--
|
|
@@ -36,7 +37,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,district_)
|
|
|
+ lector_introduction,longitude_,latitude_,code_,introduction_,parent_id,school_code,type_,is_open,district_,district_middle)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -60,6 +61,7 @@
|
|
|
,#{type,jdbcType=VARCHAR}
|
|
|
,#{isOpen,jdbcType= NUMERIC }
|
|
|
,#{district,jdbcType=VARCHAR}
|
|
|
+ ,#{districtMiddle,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -129,6 +131,9 @@
|
|
|
<if test="district!=null">
|
|
|
district_=#{district,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="districtMiddle!=null">
|
|
|
+ district_middle=#{districtMiddle,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|