修改控制器及新增城市功能
This commit is contained in:
@ -143,4 +143,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</if>
|
||||
)
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectNow" resultMap="RM_Dictionary">
|
||||
select <include refid="columnsdic"/> from dictionary
|
||||
where coding_type =#{codingType2};
|
||||
</select>
|
||||
</mapper>
|
31
ruoyi-system/src/main/resources/mapper/system/CityMapper.xml
Normal file
31
ruoyi-system/src/main/resources/mapper/system/CityMapper.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?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.ruoyi.system.mapper_yada.CityMapper">
|
||||
|
||||
<resultMap id="RM_City" type="com.ruoyi.system.domain_yada.CityVo">
|
||||
<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="imperviousSurfaceExpansionSpeed" column="Impervious_surface_expansion_speed"/>
|
||||
<result property="imperviousSurfaceExpansionStrength" column="Impervious_surface_expansion_strength"/>
|
||||
<result property="imperviousSurfaceExpansionCntribution" column="Impervious_surface_expansion_Contribution "/>
|
||||
<result property="countryIdentification" column="country_identification"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
id,year,city,area,Impervious_surface_area,Impervious_surface_coverage,Impervious_surface_expansion_speed,Impervious_surface_expansion_strength,Impervious_surface_expansion_Contribution,country_identification
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectCity" resultMap="RM_City">
|
||||
SELECT <include refid="columns"/> FROM urban_impervious_surface
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user