规范性编码
This commit is contained in:
@@ -25,25 +25,8 @@
|
||||
<result property="isDelete" column="is_delete" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="XianHiddenDangerSpotsBasePointResultMap" type="com.gis.xian.vo.XianHiddenDangerSpotsBasePointVo">
|
||||
<id property="id" column="id" />
|
||||
<result property="lon" column="lon" />
|
||||
<result property="lat" column="lat" />
|
||||
<result property="disasterType" column="disaster_type" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="XianHiddenDangerSpotsPointDetailResultMap" type="com.gis.xian.vo.XianHiddenDangerSpotsPointDetailVo">
|
||||
<id property="id" column="id" />
|
||||
<result property="fieldCode" column="field_code" />
|
||||
<result property="disasterName" column="disaster_name" />
|
||||
<result property="position" column="position" />
|
||||
<result property="disasterType" column="disaster_type" />
|
||||
<result property="scaleGrade" column="scale_grade" />
|
||||
<result property="riskGrade" column="risk_grade" />
|
||||
</resultMap>
|
||||
|
||||
<!-- 获取所有基础点:滑坡、泥石流、山洪、内涝 -->
|
||||
<select id="getBasePoints" resultMap="XianHiddenDangerSpotsBasePointResultMap">
|
||||
<select id="getBasePoints" resultMap="XianHiddenDangerSpotsResultMap">
|
||||
SELECT id, lon, lat, disaster_type FROM xian_hidden_danger_spots
|
||||
<where>
|
||||
<choose>
|
||||
@@ -58,7 +41,7 @@
|
||||
</select>
|
||||
|
||||
<!-- 根据id获取隐患点详情 -->
|
||||
<select id="getPointDetailById" resultMap="XianHiddenDangerSpotsPointDetailResultMap">
|
||||
<select id="getPointDetailById" resultMap="XianHiddenDangerSpotsResultMap">
|
||||
SELECT id, field_code, disaster_name, position, disaster_type, scale_grade, risk_grade FROM xian_hidden_danger_spots
|
||||
<where>
|
||||
id = #{id}
|
||||
|
||||
@@ -29,34 +29,13 @@
|
||||
<result property="isDelete" column="is_delete" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="XianRiskSpotsBasePointResultMap" type="com.gis.xian.vo.XianRiskSpotsBasePointVo">
|
||||
<id property="id" column="id" />
|
||||
<result property="lon" column="lon" />
|
||||
<result property="lat" column="lat" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="XianRiskSpotsPointDetailResultMap" type="com.gis.xian.vo.XianRiskSpotsPointDetailVo">
|
||||
<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="getBasePoints" resultMap="XianRiskSpotsResultMap">
|
||||
SELECT id, lon, lat FROM xian_risk_spots
|
||||
</select>
|
||||
|
||||
<!-- 根据id获取风险点信息 -->
|
||||
<select id="getPointDetailById" resultType="com.gis.xian.vo.XianRiskSpotsPointDetailVo">
|
||||
<select id="getPointDetailById" resultMap="XianRiskSpotsResultMap">
|
||||
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}
|
||||
|
||||
Reference in New Issue
Block a user