修改参数
This commit is contained in:
		| @@ -11,7 +11,7 @@ import java.util.List; | ||||
|  */ | ||||
| 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); | ||||
|  | ||||
|   | ||||
| @@ -11,8 +11,7 @@ import java.util.List; | ||||
|  */ | ||||
| public interface VegetationCoverageMapper { | ||||
|  | ||||
|     List<VegetationCoverageVO> selectVegetation(/*@Param("region") String region, | ||||
|                                                 @Param("particularYear") String particularYear*/); | ||||
|     List<VegetationCoverageVO> selectVegetation(@Param("type") String type); | ||||
|  | ||||
|     Integer DelVegetation(@Param("id") String id); | ||||
|  | ||||
|   | ||||
| @@ -13,7 +13,7 @@ import java.util.List; | ||||
|  */ | ||||
| public interface IGlobalTypeService { | ||||
|  | ||||
|    public List<GlobalTypeVO> selectGlobalType(String typeName,  Integer particularYear); | ||||
|    public List<GlobalTypeVO> selectGlobalType(/*String typeName,  Integer particularYear*/); | ||||
|  | ||||
|    public   Integer DelGlobalType(String id); | ||||
|  | ||||
|   | ||||
| @@ -13,7 +13,7 @@ import java.util.List; | ||||
|  */ | ||||
| public interface IVegetationCoverageService { | ||||
|  | ||||
|     public List<VegetationCoverageVO> selectVegetation(/*String region,String particularYear*/); | ||||
|     public List<VegetationCoverageVO> selectVegetation(String type); | ||||
|  | ||||
|     public Integer DelVegetation(String id); | ||||
|  | ||||
|   | ||||
| @@ -26,8 +26,8 @@ public class GlobalTypeServiceimpl implements IGlobalTypeService { | ||||
|  | ||||
|  | ||||
|     @Override | ||||
|     public List<GlobalTypeVO> selectGlobalType(String typeName,  Integer particularYear) { | ||||
|         return typeMapper.selectGlobalType(typeName, particularYear); | ||||
|     public List<GlobalTypeVO> selectGlobalType(/*String typeName,  Integer particularYear*/) { | ||||
|         return typeMapper.selectGlobalType(/*typeName, particularYear*/); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|   | ||||
| @@ -26,8 +26,8 @@ public class VegetationCoverageServiceimpl implements IVegetationCoverageService | ||||
|  | ||||
|  | ||||
|     @Override | ||||
|     public List<VegetationCoverageVO> selectVegetation(/*String region,String particularYear*/) { | ||||
|         return coverageMapper.selectVegetation(/*region,particularYear*/); | ||||
|     public List<VegetationCoverageVO> selectVegetation(String type) { | ||||
|         return coverageMapper.selectVegetation(type); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|   | ||||
| @@ -26,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  | ||||
|     <select id="selectRegion" resultMap="RM_RegionVGI"> | ||||
|         SELECT  <include refid="columns"/>  FROM  region_vgi | ||||
|         where particular_year='2020.0' | ||||
| --         where particular_year='2020' | ||||
|  | ||||
| <!--        WHERE 1=1--> | ||||
| <!--        <if test="particularYear!= null and particularYear !=''">--> | ||||
|   | ||||
| @@ -25,10 +25,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  | ||||
|     <select id="selectVegetation" resultMap="RM_Vegetation"> | ||||
|         SELECT  <include refid="columns"/>  FROM  fvc_npp | ||||
| <!--        WHERE 1=1--> | ||||
| <!--        <if test="particularYear!= null and particularYear !=''">--> | ||||
| <!--            AND particular_year = #{particularYear}--> | ||||
| <!--        </if>--> | ||||
|         WHERE 1=1 | ||||
|         <if test="type!= null and type !=''"> | ||||
|             AND type = #{type} | ||||
|         </if> | ||||
| <!--        <if test="region != null and region !=''">--> | ||||
| <!--            AND region = #{region}--> | ||||
| <!--        </if>--> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user