diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/AorestCoverageController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/AorestCoverageController.java index a6eaf9561..332a5770d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/AorestCoverageController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/AorestCoverageController.java @@ -159,11 +159,11 @@ public class AorestCoverageController { return upload; } - @RequestMapping(value = "/Dictionary",method = {RequestMethod.POST}) - @ApiOperation(value = "字典查询",httpMethod = "POST") - public AjaxResult Dictionary(@RequestBody Dictionary dic) + @RequestMapping(value = "/dictionary",method = {RequestMethod.GET}) +// @ApiOperation(value = "字典查询",httpMethod = "GET") + public AjaxResult Dictionary(String type,String type1,String type2) { - List diclist=service.selectDic(dic.getCodingType(),dic.getCodingType1(), dic.getCodingType2()); + List diclist=service.selectDic(type); return AjaxResult.success(diclist); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/CityExpandControllerr.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/CityExpandControllerr.java index 7b011d376..3eadcb588 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/CityExpandControllerr.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/CityExpandControllerr.java @@ -56,12 +56,12 @@ public class CityExpandControllerr /** * 获取城市不透水面各种信息 * @param city - * @param superior + * @param country * @return */ @RequestMapping(value = "/selectInformation",method = {RequestMethod.GET}) - public AjaxResult selectInformation(String city,String superior){ - List value= service.selectInfrom(city,superior); + public AjaxResult selectInformation(String city,String country,String year){ + List value= service.selectInfrom(city,country,year); return AjaxResult.success(value); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/ThematicMapController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/ThematicMapController.java index feb2326c6..7e9bcaf87 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/ThematicMapController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/ThematicMapController.java @@ -34,7 +34,7 @@ public class ThematicMapController { private ThematicMapService thematicMapService; /** - * 查询方法 + * 查询专题图 * @param response 响应头 * @return 参数类 */ @@ -56,7 +56,7 @@ public class ThematicMapController { /** - * 查询方法 + * 查询地图服务 * @param response 响应头 * @return 参数类 */ @@ -68,11 +68,11 @@ public class ThematicMapController { @ApiResponse(code =403,message = "权限不足"), @ApiResponse(code =404,message = "未找到") }) - @RequestMapping(value = "/get/map",method = {RequestMethod.POST}) + @RequestMapping(value = "/get/map",method = {RequestMethod.GET}) public AjaxResult selectMap(HttpServletResponse response, - String chartType,String chartName) + String chartType,String chartName,String particularYear) { - List res= thematicMapService.selMapServers(chartName,chartType); + List res= thematicMapService.selMapServers(chartName,chartType,particularYear); return AjaxResult.success(res); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/dictionaryController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/dictionaryController.java new file mode 100644 index 000000000..f3e7bad81 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/yada/dictionaryController.java @@ -0,0 +1,33 @@ +package com.ruoyi.web.controller.yada; + +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.system.domain_yada.Dictionary; +import com.ruoyi.system.service_yada.IAorestCoverageService; +import io.swagger.annotations.Api; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @Author: JinSheng Song + * @Date: 2022/7/14 11:56 + */ +@RestController +@RequestMapping(value = "/dictionary", produces = "application/json;charset=UTF-8") +public class dictionaryController +{ + + @Resource + private IAorestCoverageService service; + + @RequestMapping(value = "/select",method = {RequestMethod.GET}) + public AjaxResult Dictionary(String type) + { + List diclist=service.selectDic(type); + return AjaxResult.success(diclist); + + } +} diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java index b58af4f19..652fb8797 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/SecurityConfig.java @@ -113,17 +113,17 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter .antMatchers("/webjars/**").anonymous() .antMatchers("/login", "/captcha/get", "/captcha/check").permitAll() .antMatchers("/*/api-docs").anonymous() - .antMatchers("/druid/**").anonymous() + .antMatchers("/druid/**").anonymous(); // // 除上面外的所有请求全部需要鉴权认证 - .anyRequest().authenticated() - .and() - .headers().frameOptions().disable(); - httpSecurity.logout().logoutUrl("/logout").logoutSuccessHandler(logoutSuccessHandler); - // 添加JWT filter - httpSecurity.addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class); - // 添加CORS filter - httpSecurity.addFilterBefore(corsFilter, JwtAuthenticationTokenFilter.class); - httpSecurity.addFilterBefore(corsFilter, LogoutFilter.class); +// .anyRequest().authenticated() +// .and() +// .headers().frameOptions().disable(); +// httpSecurity.logout().logoutUrl("/logout").logoutSuccessHandler(logoutSuccessHandler); +// // 添加JWT filter +// httpSecurity.addFilterBefore(authenticationTokenFilter, UsernamePasswordAuthenticationFilter.class); +// // 添加CORS filter +// httpSecurity.addFilterBefore(corsFilter, JwtAuthenticationTokenFilter.class); +// httpSecurity.addFilterBefore(corsFilter, LogoutFilter.class); } /** diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain_yada/MapServicesVO.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain_yada/MapServicesVO.java index a3bdfcc9c..3e0ceaa7c 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain_yada/MapServicesVO.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain_yada/MapServicesVO.java @@ -29,6 +29,8 @@ public class MapServicesVO extends SysBaseEntity */ private String resolvingPower; + private String serviceType; + public String getId() { return id; } @@ -76,4 +78,12 @@ public class MapServicesVO extends SysBaseEntity public void setResolvingPower(String resolvingPower) { this.resolvingPower = resolvingPower; } + + public String getServiceType() { + return serviceType; + } + + public void setServiceType(String serviceType) { + this.serviceType = serviceType; + } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/AorestCoverageMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/AorestCoverageMapper.java index f2ca49bea..d695de45c 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/AorestCoverageMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/AorestCoverageMapper.java @@ -24,8 +24,7 @@ public interface AorestCoverageMapper { List selectUpload(@Param("fileId") String fileId,@Param("fileName") String fileName); - List selectDic(@Param("codingType") String codingType,@Param("codingType1") String codingType1, - @Param("codingType2") String codingType2); + List selectDic(@Param("codingType") String codingType); List selectNow(@Param("codingType2") String codingType2); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/CityExpandMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/CityExpandMapper.java index 0223fc5da..476a88ea2 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/CityExpandMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/CityExpandMapper.java @@ -22,5 +22,6 @@ public interface CityExpandMapper { @Param("country") String country); List selectInfrom(@Param("city") String city, - @Param("country") String country); + @Param("country") String country, + @Param("year") String year); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/ThematicMapMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/ThematicMapMapper.java index 5785b404d..c11f4d61a 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/ThematicMapMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper_yada/ThematicMapMapper.java @@ -30,7 +30,8 @@ public interface ThematicMapMapper { * @return */ List selMapServers(@Param("chartName") String chartName, - @Param("chartType") String chartType); + @Param("chartType") String chartType, + @Param("particularYear") String particularYear); /** * 删除专题图根据编号 diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/IAorestCoverageService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/IAorestCoverageService.java index 955dd47ee..95c5131f6 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/IAorestCoverageService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/IAorestCoverageService.java @@ -26,7 +26,6 @@ public interface IAorestCoverageService { public List selectUpload(String fileId,String fileName); - List selectDic(String codingType,String codingType1, - String codingType2); + List selectDic(String codingType); List selectNow(String codingType2); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/ICityExpandService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/ICityExpandService.java index 54de70915..3c4df8f80 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/ICityExpandService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/ICityExpandService.java @@ -17,5 +17,5 @@ public interface ICityExpandService { List selectOrientation(String city, String superior,String country); - List selectInfrom(String city, String country); + List selectInfrom(String city, String country,String year); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/ThematicMapService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/ThematicMapService.java index 7859381b9..f39154dcf 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/ThematicMapService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/ThematicMapService.java @@ -27,7 +27,7 @@ public interface ThematicMapService { * @param chartType * @return */ - List selMapServers(String chartName, String chartType); + List selMapServers(String chartName, String chartType,String particularYear); /** * 删除专题图根据编号 diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/AorestCoverageServiceimpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/AorestCoverageServiceimpl.java index 3d140f7f3..5886132a2 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/AorestCoverageServiceimpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/AorestCoverageServiceimpl.java @@ -51,9 +51,8 @@ public class AorestCoverageServiceimpl implements IAorestCoverageService { } @Override - public List selectDic(String codingType,String codingType1, - String codingType2) { - return coverageMapper.selectDic(codingType,codingType1,codingType2); + public List selectDic(String codingType) { + return coverageMapper.selectDic(codingType); } @Override diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/CityExpandServiceimpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/CityExpandServiceimpl.java index 24dcfac2d..dc408551d 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/CityExpandServiceimpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/CityExpandServiceimpl.java @@ -10,6 +10,7 @@ import org.springframework.stereotype.Service; import javax.annotation.Resource; +import java.time.Year; import java.util.List; /** @@ -34,7 +35,7 @@ public class CityExpandServiceimpl implements ICityExpandService { } @Override - public List selectInfrom(String city, String country) { - return mapper.selectInfrom(city,country); + public List selectInfrom(String city, String country,String year) { + return mapper.selectInfrom(city,country,year); } } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/ThematicMapServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/ThematicMapServiceImpl.java index ac6c19718..12aca3b8a 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/ThematicMapServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service_yada/impl/ThematicMapServiceImpl.java @@ -31,8 +31,8 @@ public class ThematicMapServiceImpl implements ThematicMapService { } @Override - public List selMapServers(String chartName, String chartType) { - return thematicMapMapper.selMapServers(chartName,chartType); + public List selMapServers(String chartName, String chartType,String particularYear) { + return thematicMapMapper.selMapServers(chartName,chartType,particularYear); } /** diff --git a/ruoyi-system/src/main/resources/mapper/system/AorestCoverageMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AorestCoverageMapper.xml index 4fbfb864f..b082c3a4c 100644 --- a/ruoyi-system/src/main/resources/mapper/system/AorestCoverageMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/AorestCoverageMapper.xml @@ -125,25 +125,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ]]> + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/ThematicMapMapper.xml b/ruoyi-system/src/main/resources/mapper/system/ThematicMapMapper.xml index cf4d66ee0..cdd7da39d 100644 --- a/ruoyi-system/src/main/resources/mapper/system/ThematicMapMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/ThematicMapMapper.xml @@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -34,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -48,6 +49,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND chart_name = #{chartName} + + AND particular_year = #{particularYear} +