|
@@ -18,6 +18,8 @@
|
|
|
<result column="contact_name_" property="contactName"/>
|
|
|
<result column="longitude_latitude_" property="longitudeLatitude"/>
|
|
|
<result column="subsidy_" property="subsidy"/>
|
|
|
+ <result column="cooperation_organ_id_" property="cooperationOrganId"/>
|
|
|
+ <result column="remark_" property="remark"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -39,8 +41,8 @@
|
|
|
</selectKey>
|
|
|
-->
|
|
|
INSERT INTO school
|
|
|
- (id_,name_,organ_id_,address_,contact_phone_,create_time_,update_time_,contact_name_,longitude_latitude_,subsidy_)
|
|
|
- VALUES(#{id},#{name},#{organId},#{address},#{contactPhone},now(),now(),#{contactName},#{longitudeLatitude},#{subsidy})
|
|
|
+ (id_,name_,organ_id_,address_,contact_phone_,create_time_,update_time_,contact_name_,longitude_latitude_,subsidy_,cooperation_organ_id_,remark_)
|
|
|
+ VALUES(#{id},#{name},#{organId},#{address},#{contactPhone},now(),now(),#{contactName},#{longitudeLatitude},#{subsidy},#{cooperationOrganId},#{remark})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -74,6 +76,12 @@
|
|
|
<if test="subsidy != null">
|
|
|
subsidy_ = #{subsidy},
|
|
|
</if>
|
|
|
+ <if test="cooperationOrganId != null">
|
|
|
+ cooperation_organ_id_ = #{cooperationOrganId},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null">
|
|
|
+ remark_ = #{remark},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
WHERE id_ = #{id}
|
|
|
</update>
|