@ -22,6 +22,7 @@
<result column= "brief_introduction" jdbcType= "VARCHAR" property= "briefIntroduction" />
<result column= "latitude" jdbcType= "VARCHAR" property= "latitude" />
<result column= "longitude" jdbcType= "VARCHAR" property= "longitude" />
<result column= "retain_alert" jdbcType= "INTEGER" property= "retainAlert" />
</resultMap>
<resultMap extends= "BaseResultMap" id= "ResultMapWithBLOBs" type= "com.dongjian.dashboard.back.model.BasicBuilding" >
<!--
@ -104,7 +105,7 @@
-->
building_id, company_id, `name`, address, flag, create_time, creator_id, modify_time,
modifier_id, udf_building_id, building_bucket, thumbnail_num, show_switch_2d3d, brief_introduction,
latitude, longitude
latitude, longitude, retain_alert
</sql>
<sql id= "Blob_Column_List" >
<!--
@ -193,15 +194,15 @@
creator_id, modify_time, modifier_id,
udf_building_id, building_bucket, thumbnail_num,
show_switch_2d3d, brief_introduction, latitude,
longitude, floor_info_list, picture_introduction
)
longitude, retain_alert, floor_info_list,
picture_introduction )
values (#{buildingId,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR}, #{flag,jdbcType=INTEGER}, #{createTime,jdbcType=BIGINT},
#{creatorId,jdbcType=BIGINT}, #{modifyTime,jdbcType=BIGINT}, #{modifierId,jdbcType=BIGINT},
#{udfBuildingId,jdbcType=VARCHAR}, #{buildingBucket,jdbcType=VARCHAR}, #{thumbnailNum,jdbcType=INTEGER},
#{showSwitch2d3d,jdbcType=INTEGER}, #{briefIntroduction,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR},
#{longitude,jdbcType=VARCHAR}, #{floorInfoList,jdbcType=LONGVARCHAR}, #{pictureIntroduction,jdbcType=LONGVARCHAR}
)
#{longitude,jdbcType=VARCHAR}, #{retainAlert,jdbcType=INTEGER}, #{floorInfoList,jdbcType=LONGVARCHAR},
#{pictureIntroduction,jdbcType=LONGVARCHAR} )
</insert>
<insert id= "insertSelective" parameterType= "com.dongjian.dashboard.back.model.BasicBuilding" >
<!--
@ -258,6 +259,9 @@
<if test= "longitude != null" >
longitude,
</if>
<if test= "retainAlert != null" >
retain_alert,
</if>
<if test= "floorInfoList != null" >
floor_info_list,
</if>
@ -314,6 +318,9 @@
<if test= "longitude != null" >
#{longitude,jdbcType=VARCHAR},
</if>
<if test= "retainAlert != null" >
#{retainAlert,jdbcType=INTEGER},
</if>
<if test= "floorInfoList != null" >
#{floorInfoList,jdbcType=LONGVARCHAR},
</if>
@ -387,6 +394,9 @@
<if test= "record.longitude != null" >
longitude = #{record.longitude,jdbcType=VARCHAR},
</if>
<if test= "record.retainAlert != null" >
retain_alert = #{record.retainAlert,jdbcType=INTEGER},
</if>
<if test= "record.floorInfoList != null" >
floor_info_list = #{record.floorInfoList,jdbcType=LONGVARCHAR},
</if>
@ -420,6 +430,7 @@
brief_introduction = #{record.briefIntroduction,jdbcType=VARCHAR},
latitude = #{record.latitude,jdbcType=VARCHAR},
longitude = #{record.longitude,jdbcType=VARCHAR},
retain_alert = #{record.retainAlert,jdbcType=INTEGER},
floor_info_list = #{record.floorInfoList,jdbcType=LONGVARCHAR},
picture_introduction = #{record.pictureIntroduction,jdbcType=LONGVARCHAR}
<if test= "_parameter != null" >
@ -447,7 +458,8 @@
show_switch_2d3d = #{record.showSwitch2d3d,jdbcType=INTEGER},
brief_introduction = #{record.briefIntroduction,jdbcType=VARCHAR},
latitude = #{record.latitude,jdbcType=VARCHAR},
longitude = #{record.longitude,jdbcType=VARCHAR}
longitude = #{record.longitude,jdbcType=VARCHAR},
retain_alert = #{record.retainAlert,jdbcType=INTEGER}
<if test= "_parameter != null" >
<include refid= "Update_By_Example_Where_Clause" />
</if>
@ -504,6 +516,9 @@
<if test= "longitude != null" >
longitude = #{longitude,jdbcType=VARCHAR},
</if>
<if test= "retainAlert != null" >
retain_alert = #{retainAlert,jdbcType=INTEGER},
</if>
<if test= "floorInfoList != null" >
floor_info_list = #{floorInfoList,jdbcType=LONGVARCHAR},
</if>
@ -534,6 +549,7 @@
brief_introduction = #{briefIntroduction,jdbcType=VARCHAR},
latitude = #{latitude,jdbcType=VARCHAR},
longitude = #{longitude,jdbcType=VARCHAR},
retain_alert = #{retainAlert,jdbcType=INTEGER},
floor_info_list = #{floorInfoList,jdbcType=LONGVARCHAR},
picture_introduction = #{pictureIntroduction,jdbcType=LONGVARCHAR}
where building_id = #{buildingId,jdbcType=BIGINT}
@ -558,7 +574,8 @@
show_switch_2d3d = #{showSwitch2d3d,jdbcType=INTEGER},
brief_introduction = #{briefIntroduction,jdbcType=VARCHAR},
latitude = #{latitude,jdbcType=VARCHAR},
longitude = #{longitude,jdbcType=VARCHAR}
longitude = #{longitude,jdbcType=VARCHAR},
retain_alert = #{retainAlert,jdbcType=INTEGER}
where building_id = #{buildingId,jdbcType=BIGINT}
</update>
</mapper>