|
@@ -14,6 +14,9 @@
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="fullName" column="full_name" />
|
|
|
+ <result property="longitude" column="longitude_" />
|
|
|
+ <result property="latitude" column="latitude_" />
|
|
|
+ <result property="radius" column="radius_" />
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.bus.modules.base.entity.RegionInfo">
|
|
|
<!--
|
|
@@ -23,7 +26,8 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into base_region_info
|
|
|
- (id_,name_,parent_id,remark_,create_by,create_time,update_by,update_time,del_flag,full_name)
|
|
|
+ (id_,name_,parent_id,remark_,create_by,create_time,update_by,update_time,del_flag,full_name,
|
|
|
+ longitude_,latitude_,radius_)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
@@ -36,6 +40,9 @@
|
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
|
,#{fullName,jdbcType=VARCHAR}
|
|
|
+,#{longitude,jdbcType=DOUBLE}
|
|
|
+,#{latitude,jdbcType=DOUBLE}
|
|
|
+,#{radius,jdbcType= NUMERIC }
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
@@ -72,6 +79,15 @@
|
|
|
<if test="fullName!=null">
|
|
|
full_name=#{fullName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="longitude!=null">
|
|
|
+ longitude_=#{longitude,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="latitude!=null">
|
|
|
+ latitude_=#{latitude,jdbcType=DOUBLE},
|
|
|
+ </if>
|
|
|
+ <if test="radius!=null">
|
|
|
+ radius_=#{radius,jdbcType= NUMERIC },
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|