不透水面修改
This commit is contained in:
parent
2a64885193
commit
e348a10862
@ -30,14 +30,13 @@ public class CityExpandControllerr
|
|||||||
/**
|
/**
|
||||||
* 获取城市扩张方位
|
* 获取城市扩张方位
|
||||||
* @param city
|
* @param city
|
||||||
* @param cityCh
|
|
||||||
* @param year
|
* @param year
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/selectCityExpand",method = {RequestMethod.GET})
|
@RequestMapping(value = "/selectCityExpand",method = {RequestMethod.GET})
|
||||||
public AjaxResult selectCityExpand(String city,String cityCh, String year)
|
public AjaxResult selectCityExpand(String city,String country, String year)
|
||||||
{
|
{
|
||||||
List<CityFocusVO> value=service.selectExpand(city,cityCh,year);
|
List<CityFocusVO> value=service.selectExpand(city,country,year);
|
||||||
return AjaxResult.success(value);
|
return AjaxResult.success(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,9 +47,9 @@ public class CityExpandControllerr
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/selectOrientation",method = {RequestMethod.GET})
|
@RequestMapping(value = "/selectOrientation",method = {RequestMethod.GET})
|
||||||
public AjaxResult selectOrientation(String city,String superior)
|
public AjaxResult selectOrientation(String city,String superior,String country)
|
||||||
{
|
{
|
||||||
List<OrientationVO> value=service.selectOrientation(city,superior);
|
List<OrientationVO> value=service.selectOrientation(city,superior,country);
|
||||||
return AjaxResult.success(value);
|
return AjaxResult.success(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
|||||||
.antMatchers("/login", "/captcha/get", "/captcha/check").permitAll()
|
.antMatchers("/login", "/captcha/get", "/captcha/check").permitAll()
|
||||||
.antMatchers("/*/api-docs").anonymous()
|
.antMatchers("/*/api-docs").anonymous()
|
||||||
.antMatchers("/druid/**").anonymous()
|
.antMatchers("/druid/**").anonymous()
|
||||||
// 除上面外的所有请求全部需要鉴权认证
|
// // 除上面外的所有请求全部需要鉴权认证
|
||||||
.anyRequest().authenticated()
|
.anyRequest().authenticated()
|
||||||
.and()
|
.and()
|
||||||
.headers().frameOptions().disable();
|
.headers().frameOptions().disable();
|
||||||
|
@ -20,7 +20,9 @@ public class CityFocusVO extends SysBaseEntity
|
|||||||
|
|
||||||
private String yAxisPy;
|
private String yAxisPy;
|
||||||
|
|
||||||
private String cityCh;
|
private String cityEn;
|
||||||
|
|
||||||
|
private String country;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
@ -78,11 +80,19 @@ public class CityFocusVO extends SysBaseEntity
|
|||||||
this.yAxisPy = yAxisPy;
|
this.yAxisPy = yAxisPy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCityCh() {
|
public String getCityEn() {
|
||||||
return cityCh;
|
return cityEn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCityCh(String cityCh) {
|
public void setCityEn(String cityEn) {
|
||||||
this.cityCh = cityCh;
|
this.cityEn = cityEn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCountry() {
|
||||||
|
return country;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCountry(String country) {
|
||||||
|
this.country = country;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,9 @@ public class OrientationVO extends SysBaseEntity
|
|||||||
|
|
||||||
private String superior;
|
private String superior;
|
||||||
|
|
||||||
|
|
||||||
|
private String country;
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -55,4 +58,12 @@ public class OrientationVO extends SysBaseEntity
|
|||||||
public void setSuperior(String superior) {
|
public void setSuperior(String superior) {
|
||||||
this.superior = superior;
|
this.superior = superior;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCountry() {
|
||||||
|
return country;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCountry(String country) {
|
||||||
|
this.country = country;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,12 +14,13 @@ import java.util.List;
|
|||||||
public interface CityExpandMapper {
|
public interface CityExpandMapper {
|
||||||
|
|
||||||
List<CityFocusVO> selectExpand(@Param("city") String city,
|
List<CityFocusVO> selectExpand(@Param("city") String city,
|
||||||
@Param("cityCh") String cityCh,
|
@Param("country") String country,
|
||||||
@Param("year") String year);
|
@Param("year") String year);
|
||||||
|
|
||||||
List<OrientationVO> selectOrientation( @Param("city") String city,
|
List<OrientationVO> selectOrientation( @Param("city") String city,
|
||||||
@Param("superior") String superior);
|
@Param("superior") String superior,
|
||||||
|
@Param("country") String country);
|
||||||
|
|
||||||
List<CityInformation> selectInfrom(@Param("city") String city,
|
List<CityInformation> selectInfrom(@Param("city") String city,
|
||||||
@Param("superior") String superior);
|
@Param("country") String country);
|
||||||
}
|
}
|
||||||
|
@ -13,9 +13,9 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface ICityExpandService {
|
public interface ICityExpandService {
|
||||||
|
|
||||||
List<CityFocusVO> selectExpand(String city,String cityCh,String year);
|
List<CityFocusVO> selectExpand(String city,String country,String year);
|
||||||
|
|
||||||
List<OrientationVO> selectOrientation(String city, String superior);
|
List<OrientationVO> selectOrientation(String city, String superior,String country);
|
||||||
|
|
||||||
List<CityInformation> selectInfrom(String city, String superior);
|
List<CityInformation> selectInfrom(String city, String country);
|
||||||
}
|
}
|
||||||
|
@ -24,17 +24,17 @@ public class CityExpandServiceimpl implements ICityExpandService {
|
|||||||
private CityExpandMapper mapper;
|
private CityExpandMapper mapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CityFocusVO> selectExpand(String city, String cityCh, String year) {
|
public List<CityFocusVO> selectExpand(String city, String country, String year) {
|
||||||
return mapper.selectExpand(city,cityCh,year);
|
return mapper.selectExpand(city,country,year);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<OrientationVO> selectOrientation(String city, String superior) {
|
public List<OrientationVO> selectOrientation(String city, String superior,String country) {
|
||||||
return mapper.selectOrientation(city,superior);
|
return mapper.selectOrientation(city,superior,country);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CityInformation> selectInfrom(String city, String superior) {
|
public List<CityInformation> selectInfrom(String city, String country) {
|
||||||
return mapper.selectInfrom(city,superior);
|
return mapper.selectInfrom(city,country);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,17 +10,18 @@
|
|||||||
<result property="city" column="city"/>
|
<result property="city" column="city"/>
|
||||||
<result property="areaValue" column="area_value"/>
|
<result property="areaValue" column="area_value"/>
|
||||||
<result property="superior" column="superior"/>
|
<result property="superior" column="superior"/>
|
||||||
|
<result property="country" column="country"/>
|
||||||
<result property="createBy" column="created_by"/>
|
<result property="createBy" column="created_by"/>
|
||||||
<result property="createTime" column="created_time"/>
|
<result property="createTime" column="created_time"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="columns_ore">
|
<sql id="columns_ore">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
id,position,city,area_value,superior,created_by,created_time
|
id,position,city,area_value,superior,created_by,created_time,country
|
||||||
]]>
|
]]>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectOrientation" resultMap="RM_Expand">
|
<select id="selectOrientation" resultMap="RM_Orientation">
|
||||||
SELECT <include refid="columns_ore"/> FROM extension_orientation
|
SELECT <include refid="columns_ore"/> FROM extension_orientation
|
||||||
where 1=1
|
where 1=1
|
||||||
<if test="city!= null and city !=''">
|
<if test="city!= null and city !=''">
|
||||||
@ -29,6 +30,9 @@
|
|||||||
<if test="superior!= null and superior !=''">
|
<if test="superior!= null and superior !=''">
|
||||||
AND superior = #{superior}
|
AND superior = #{superior}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="country!= null and country !=''">
|
||||||
|
AND country = #{country}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<resultMap id="RM_Expand" type="com.ruoyi.system.domain_yada.CityFocusVO">
|
<resultMap id="RM_Expand" type="com.ruoyi.system.domain_yada.CityFocusVO">
|
||||||
@ -39,25 +43,26 @@
|
|||||||
<result property="yAxis" column="y_axis"/>
|
<result property="yAxis" column="y_axis"/>
|
||||||
<result property="xAxisPy" column="x_axis_py"/>
|
<result property="xAxisPy" column="x_axis_py"/>
|
||||||
<result property="yAxisPy" column="y_axis_py"/>
|
<result property="yAxisPy" column="y_axis_py"/>
|
||||||
<result property="cityCh" column="city_ch"/>
|
<result property="cityEn" column="city_en"/>
|
||||||
|
<result property="country" column="country"/>
|
||||||
<result property="createBy" column="created_by"/>
|
<result property="createBy" column="created_by"/>
|
||||||
<result property="createTime" column="created_time"/>
|
<result property="createTime" column="created_time"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="columns">
|
<sql id="columns">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
id,year,city,x_axis,y_axis,x_axis_py,y_axis_py,city_ch
|
id,year,city,x_axis,y_axis,x_axis_py,y_axis_py,city_en,country
|
||||||
]]>
|
]]>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectExpand" resultMap="RM_Expand">
|
<select id="selectExpand" resultMap="RM_Expand">
|
||||||
SELECT <include refid="columns"/> FROM Urban_center_of_gravity
|
SELECT <include refid="columns"/> FROM urban_center_of_gravity
|
||||||
where 1=1
|
where 1=1
|
||||||
<if test="city!= null and city !=''">
|
<if test="city!= null and city !=''">
|
||||||
AND city = #{city}
|
AND city = #{city}
|
||||||
</if>
|
</if>
|
||||||
<if test="cityCh!= null and cityCh !=''">
|
<if test="country!= null and country !=''">
|
||||||
AND city_ch = #{cityCh}
|
AND country = #{country}
|
||||||
</if>
|
</if>
|
||||||
<if test="year!= null and year !=''">
|
<if test="year!= null and year !=''">
|
||||||
AND year = #{year}
|
AND year = #{year}
|
||||||
@ -90,8 +95,8 @@
|
|||||||
<if test="city!= null and city !=''">
|
<if test="city!= null and city !=''">
|
||||||
AND city = #{city}
|
AND city = #{city}
|
||||||
</if>
|
</if>
|
||||||
<if test="superior!= null and superior !=''">
|
<if test="country!= null and country !=''">
|
||||||
AND superior = #{superior}
|
AND country = #{country}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -40,12 +40,13 @@
|
|||||||
<result property="position" column="position"/>
|
<result property="position" column="position"/>
|
||||||
<result property="areaValue" column="area_Value"/>
|
<result property="areaValue" column="area_Value"/>
|
||||||
<result property="superior" column="superior"/>
|
<result property="superior" column="superior"/>
|
||||||
|
<result property="country" column="country"/>
|
||||||
<result property="createTime" column="created_Time"/>
|
<result property="createTime" column="created_Time"/>
|
||||||
<result property="createBy" column="created_By"/>
|
<result property="createBy" column="created_By"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="columns1">
|
<sql id="columns1">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
id,city,superior,area_Value,position,created_Time,created_By
|
id,city,superior,area_Value,position,created_Time,created_By,country
|
||||||
]]>
|
]]>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@ -57,7 +58,7 @@
|
|||||||
AND city = #{city}
|
AND city = #{city}
|
||||||
</if>
|
</if>
|
||||||
<if test="gj!= null and gj !=''">
|
<if test="gj!= null and gj !=''">
|
||||||
AND superior = #{gj}
|
AND country = #{gj}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user