修改参数

This commit is contained in:
songjinsheng 2022-07-08 14:46:17 +08:00
parent 7943dd8156
commit 2a64885193
10 changed files with 18 additions and 20 deletions

View File

@ -33,15 +33,14 @@ public class GlobalTypeController {
/** /**
* 查询方法 * 查询方法
* @param response 响应头
* @param request 客户端请求
* @return 参数类 * @return 参数类
*/ */
@RequestMapping(value = "/selectGlobalType",method = {RequestMethod.POST}) @RequestMapping(value = "/selectGlobalType",method = {RequestMethod.POST})
@ApiOperation(value = "查询方法",httpMethod = "POST") @ApiOperation(value = "查询方法",httpMethod = "POST")
public AjaxResult selectGlobalType(HttpServletResponse response, HttpServletRequest request,@RequestBody GlobalTypeVO TypeVO) public AjaxResult selectGlobalType()
{ {
List<GlobalTypeVO> eastVOSList= typeService.selectGlobalType(TypeVO.getTypeName(),TypeVO.getParticularYear()); List<GlobalTypeVO> eastVOSList= typeService.selectGlobalType();
return AjaxResult.success(eastVOSList); return AjaxResult.success(eastVOSList);
} }

View File

@ -37,9 +37,9 @@ public class VegetationCoverageController {
*/ */
@RequestMapping(value = "/selectVegetation",method = {RequestMethod.GET}) @RequestMapping(value = "/selectVegetation",method = {RequestMethod.GET})
@ApiOperation(value = "查询方法",httpMethod = "GET") @ApiOperation(value = "查询方法",httpMethod = "GET")
public AjaxResult selectVegetation() public AjaxResult selectVegetation(String type)
{ {
List<VegetationCoverageVO> eastVOSList= coverageService.selectVegetation(); List<VegetationCoverageVO> eastVOSList= coverageService.selectVegetation(type);
return AjaxResult.success(eastVOSList); return AjaxResult.success(eastVOSList);
} }

View File

@ -11,7 +11,7 @@ import java.util.List;
*/ */
public interface GlobalTypeMapper { public interface GlobalTypeMapper {
List<GlobalTypeVO> selectGlobalType(@Param("typeName") String typeName, @Param("particularYear") Integer particularYear); List<GlobalTypeVO> selectGlobalType(/*@Param("typeName") String typeName, @Param("particularYear") Integer particularYear*/);
Integer DelGlobalType(@Param("id") String id); Integer DelGlobalType(@Param("id") String id);

View File

@ -11,8 +11,7 @@ import java.util.List;
*/ */
public interface VegetationCoverageMapper { public interface VegetationCoverageMapper {
List<VegetationCoverageVO> selectVegetation(/*@Param("region") String region, List<VegetationCoverageVO> selectVegetation(@Param("type") String type);
@Param("particularYear") String particularYear*/);
Integer DelVegetation(@Param("id") String id); Integer DelVegetation(@Param("id") String id);

View File

@ -13,7 +13,7 @@ import java.util.List;
*/ */
public interface IGlobalTypeService { public interface IGlobalTypeService {
public List<GlobalTypeVO> selectGlobalType(String typeName, Integer particularYear); public List<GlobalTypeVO> selectGlobalType(/*String typeName, Integer particularYear*/);
public Integer DelGlobalType(String id); public Integer DelGlobalType(String id);

View File

@ -13,7 +13,7 @@ import java.util.List;
*/ */
public interface IVegetationCoverageService { public interface IVegetationCoverageService {
public List<VegetationCoverageVO> selectVegetation(/*String region,String particularYear*/); public List<VegetationCoverageVO> selectVegetation(String type);
public Integer DelVegetation(String id); public Integer DelVegetation(String id);

View File

@ -26,8 +26,8 @@ public class GlobalTypeServiceimpl implements IGlobalTypeService {
@Override @Override
public List<GlobalTypeVO> selectGlobalType(String typeName, Integer particularYear) { public List<GlobalTypeVO> selectGlobalType(/*String typeName, Integer particularYear*/) {
return typeMapper.selectGlobalType(typeName, particularYear); return typeMapper.selectGlobalType(/*typeName, particularYear*/);
} }
@Override @Override

View File

@ -26,8 +26,8 @@ public class VegetationCoverageServiceimpl implements IVegetationCoverageService
@Override @Override
public List<VegetationCoverageVO> selectVegetation(/*String region,String particularYear*/) { public List<VegetationCoverageVO> selectVegetation(String type) {
return coverageMapper.selectVegetation(/*region,particularYear*/); return coverageMapper.selectVegetation(type);
} }
@Override @Override

View File

@ -26,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectRegion" resultMap="RM_RegionVGI"> <select id="selectRegion" resultMap="RM_RegionVGI">
SELECT <include refid="columns"/> FROM region_vgi SELECT <include refid="columns"/> FROM region_vgi
where particular_year='2020.0' -- where particular_year='2020'
<!-- WHERE 1=1--> <!-- WHERE 1=1-->
<!-- <if test="particularYear!= null and particularYear !=''">--> <!-- <if test="particularYear!= null and particularYear !=''">-->

View File

@ -25,10 +25,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectVegetation" resultMap="RM_Vegetation"> <select id="selectVegetation" resultMap="RM_Vegetation">
SELECT <include refid="columns"/> FROM fvc_npp SELECT <include refid="columns"/> FROM fvc_npp
<!-- WHERE 1=1--> WHERE 1=1
<!-- <if test="particularYear!= null and particularYear !=''">--> <if test="type!= null and type !=''">
<!-- AND particular_year = #{particularYear}--> AND type = #{type}
<!-- </if>--> </if>
<!-- <if test="region != null and region !=''">--> <!-- <if test="region != null and region !=''">-->
<!-- AND region = #{region}--> <!-- AND region = #{region}-->
<!-- </if>--> <!-- </if>-->