风险点
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.gis.xian.mapper.XianRiskSpotsMapper">
|
||||
|
||||
<resultMap id="XianRiskSpotsResultMap" type="com.gis.xian.entity.XianRiskSpots">
|
||||
<id property="id" column="id" />
|
||||
<result property="riskName" column="risk_name" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="riskLevel" column="risk_level" />
|
||||
<result property="area" column="area" />
|
||||
<result property="province" column="province" />
|
||||
<result property="city" column="city" />
|
||||
<result property="county" column="county" />
|
||||
<result property="country" column="country" />
|
||||
<result property="village" column="village" />
|
||||
<result property="position" column="position" />
|
||||
<result property="residentCounts" column="resident_counts" />
|
||||
<result property="addressPopulation" column="address_population" />
|
||||
<result property="riskProperty" column="risk_property" />
|
||||
<result property="permanentPopulation" column="permanent_population" />
|
||||
<result property="housing" column="housing" />
|
||||
<result property="inspectorName" column="inspector_name" />
|
||||
<result property="inspectorTele" column="inspector_tele" />
|
||||
<result property="lon" column="lon" />
|
||||
<result property="lat" column="lat" />
|
||||
<result property="geom" column="geom" />
|
||||
<result property="isDelete" column="is_delete" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="XianRiskSpotsBasePointResultMap" type="com.gis.xian.entity.XianRiskSpotsBasePoint">
|
||||
<id property="id" column="id" />
|
||||
<result property="lon" column="lon" />
|
||||
<result property="lat" column="lat" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="XianRiskSpotsPointDetailResultMap" type="com.gis.xian.entity.XianRiskSpotsPointDetail">
|
||||
<id property="id" column="id" />
|
||||
<result property="riskName" column="risk_name" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="position" column="position" />
|
||||
<result property="residentCounts" column="resident_counts" />
|
||||
<result property="riskProperty" column="risk_property" />
|
||||
<result property="permanentPopulation" column="permanent_population" />
|
||||
<result property="housing" column="housing" />
|
||||
<result property="inspectorName" column="inspector_name" />
|
||||
<result property="inspectorTele" column="inspector_tele" />
|
||||
<result property="lon" column="lon" />
|
||||
<result property="lat" column="lat" />
|
||||
</resultMap>
|
||||
|
||||
<!-- 获取所有风险点基础信息 -->
|
||||
<select id="getBasePoints" resultMap="XianRiskSpotsBasePointResultMap">
|
||||
SELECT id, lon, lat FROM xian_risk_spots
|
||||
</select>
|
||||
|
||||
<!-- 根据id获取风险点信息 -->
|
||||
<select id="getPointDetailById" resultType="com.gis.xian.entity.XianRiskSpotsPointDetail">
|
||||
SELECT id, risk_name, unit_code, position, resident_counts, risk_property, permanent_population, housing, inspector_name, inspector_tele, lon, lat FROM xian_risk_spots
|
||||
<where>
|
||||
id = #{id}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -10,5 +10,7 @@ init:
|
||||
data:
|
||||
# 基础信息点数据:滑坡、泥石流、山洪、内涝
|
||||
base-points:
|
||||
rainstorm: 'xian:init:data:base-points:rainstorm'
|
||||
earthquake: 'xian:init:data:base-points:earthquake'
|
||||
hidden-danger:
|
||||
rainstorm: 'xian:init:data:base-points:hidden-danger:rainstorm'
|
||||
earthquake: 'xian:init:data:base-points:hidden-danger:earthquake'
|
||||
risk: 'xian:init:data:base-points:risk'
|
||||
Reference in New Issue
Block a user