新增1不透水面信息,扩张方位

This commit is contained in:
songjinsheng
2022-07-01 14:26:04 +08:00
parent 9665ec2690
commit b94ce7f31b
7 changed files with 318 additions and 2 deletions

View File

@ -4,6 +4,33 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper_yada.CityExpandMapper">
<resultMap id="RM_Orientation" type="com.ruoyi.system.domain_yada.OrientationVO">
<result property="id" column="id"/>
<result property="position" column="position"/>
<result property="city" column="city"/>
<result property="areaValue" column="area_value"/>
<result property="superior" column="superior"/>
<result property="createBy" column="created_by"/>
<result property="createTime" column="created_time"/>
</resultMap>
<sql id="columns_ore">
<![CDATA[
id,position,city,area_value,superior,created_by,created_time
]]>
</sql>
<select id="selectOrientation" resultMap="RM_Expand">
SELECT <include refid="columns_ore"/> FROM extension_orientation
where 1=1
<if test="city!= null and city !=''">
AND city = #{city}
</if>
<if test="superior!= null and superior !=''">
AND superior = #{superior}
</if>
</select>
<resultMap id="RM_Expand" type="com.ruoyi.system.domain_yada.CityFocusVO">
<result property="id" column="id"/>
<result property="year" column="year"/>
@ -37,4 +64,35 @@
</if>
</select>
<resultMap id="RM_Inform" type="com.ruoyi.system.domain_yada.CityInformation">
<result property="id" column="id"/>
<result property="year" column="year"/>
<result property="city" column="city"/>
<result property="area" column="area"/>
<result property="imperviousSurfaceArea" column="impervious_surface_area"/>
<result property="imperviousSurfaceCoverage" column="impervious_surface_coverage"/>
<result property="speed" column="speed"/>
<result property="strength" column="strength"/>
<result property="contribution" column="contribution"/>
<result property="superior" column="superior"/>
<result property="country" column="country"/>
</resultMap>
<sql id="columns_Infrom">
<![CDATA[
id,year,city,area,impervious_surface_area,impervious_surface_coverage,speed,strength,contribution,superior,country
]]>
</sql>
<select id="selectInfrom" resultMap="RM_Inform">
SELECT <include refid="columns_Infrom"/> FROM urban_impervious_surface
where 1=1
<if test="city!= null and city !=''">
AND city = #{city}
</if>
<if test="superior!= null and superior !=''">
AND superior = #{superior}
</if>
</select>
</mapper>