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