测试
This commit is contained in:
		| @@ -1,8 +0,0 @@ | ||||
| <?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.AdahTestingMapper"> | ||||
|  | ||||
|  | ||||
| </mapper>  | ||||
| @@ -0,0 +1,146 @@ | ||||
| <?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.AorestCoverageMapper"> | ||||
|  | ||||
|     <resultMap id="RM_AorestCoverage" type="com.ruoyi.system.domain_yada.AorestCoverageVO"> | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="region" column="region"/> | ||||
|         <result property="regionEn" column="region_en"/> | ||||
|         <result property="protectedLands" column="protected_lands"/> | ||||
|         <result property="nonProtectedLands" column="non_protected_lands"/> | ||||
|         <result property="mountain" column="mountain"/> | ||||
|         <result property="nonMountain" column="non_mountain"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,particular_year,region,region_en,protected_lands,non_protected_lands,mountain,non_mountain,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectAorestCoverage" resultMap="RM_AorestCoverage"> | ||||
|         SELECT  <include refid="columns"/>  FROM  forest_coverage | ||||
| <!--    WHERE 1=1--> | ||||
| <!--        <if test="particularYear!= null and particularYear !=''">--> | ||||
| <!--        AND particular_year = #{particularYear}--> | ||||
| <!--        </if>--> | ||||
| <!--        <if test="region!= null and region !=''">--> | ||||
| <!--            AND region = #{typeName}--> | ||||
| <!--        </if>--> | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelAorestCoverage"> | ||||
|         DELETE FROM forest_coverage | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoAorestCoverage"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO forest_coverage ( | ||||
|             particular_year , | ||||
|             region , | ||||
|             region_en , | ||||
|             protected_lands , | ||||
|             non_protected_lands , | ||||
|             mountain, | ||||
|             non_mountain, | ||||
|             created_by, | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{particularYear,jdbcType=VARCHAR}, | ||||
|                      #{region,jdbcType=VARCHAR}, | ||||
|                      #{regionEn,jdbcType=VARCHAR}, | ||||
|                      #{protectedLands,jdbcType=DOUBLE}, | ||||
|                      #{nonProtectedLands,jdbcType=DOUBLE}, | ||||
|                      #{mountain,jdbcType=DOUBLE}, | ||||
|                      #{nonMountain,jdbcType=DOUBLE}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                     #{createTime,jdbcType=TIMESTAMP} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
|     <resultMap id="RM_Upload" type="com.ruoyi.system.domain_yada.UploadFile"> | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="fileId" column="file_id"/> | ||||
|         <result property="fileName" column="file_name"/> | ||||
|         <result property="fileSize" column="file_size"/> | ||||
|         <result property="filePath" column="file_path"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <insert id="IntoUpload"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO sys_file_info ( | ||||
|             id , | ||||
|             file_id , | ||||
|             file_name , | ||||
|             file_size , | ||||
|             file_path , | ||||
|             created_by, | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{fileId,jdbcType=VARCHAR}, | ||||
|                      #{fileName,jdbcType=VARCHAR}, | ||||
|                      #{fileSize,jdbcType=VARCHAR}, | ||||
|                      #{filePath,jdbcType=VARCHAR}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=TIMESTAMP} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
|     <select id="selectUpload" resultMap="RM_Upload"> | ||||
|         SELECT  file_id,file_name,file_size,file_path,created_by,created_time  FROM  sys_file_info | ||||
|         WHERE 1=1 | ||||
|         <if test="fileId!= null and fileId !=''"> | ||||
|             AND fileId = #{fileId} | ||||
|         </if> | ||||
|         <if test="fileName!= null and fileName !=''"> | ||||
|             AND file_name = #{fileName} | ||||
|         </if> | ||||
|     </select> | ||||
|  | ||||
|     <resultMap id="RM_Dictionary" type="com.ruoyi.system.domain_yada.Dictionary"> | ||||
|         <result property="codingType" column="coding_type"/> | ||||
|         <result property="codingType1" column="codingType1"/> | ||||
|         <result property="codingType2" column="codingType2"/> | ||||
|         <result property="dictionary" column="dictionary"/> | ||||
|         <result property="name" column="name"/> | ||||
|         <result property="nameEn" column="name_en"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columnsdic"> | ||||
| 	    <![CDATA[ | ||||
|         coding_type,dictionary,name,name_En,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectDic" resultMap="RM_Dictionary"> | ||||
|         select <include refid="columnsdic"/> from dictionary | ||||
|         where dictionary in | ||||
|               (SELECT A.dictionary FROM dictionary a | ||||
|                join (select dictionary from dictionary | ||||
|                where 1=1 | ||||
|                 <if test="codingType!= null and codingType !=''"> | ||||
|                     AND coding_type = #{codingType} | ||||
|                 </if> | ||||
|                 <if test="codingType1!= null and codingType1 !=''"> | ||||
|                     AND dictionary = #{codingType1} | ||||
|                 </if> | ||||
|                    ) b on a.coding_type=b.dictionary | ||||
|                 <if test="codingType2!= null and codingType2 !=''"> | ||||
|                     AND a.dictionary = #{codingType2} | ||||
|                 </if> | ||||
|                           ) | ||||
|     </select> | ||||
| </mapper>  | ||||
| @@ -1,8 +0,0 @@ | ||||
| <?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.AtmosphereMapper"> | ||||
|  | ||||
|  | ||||
| </mapper>  | ||||
| @@ -2,28 +2,36 @@ | ||||
| <!DOCTYPE mapper | ||||
| PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.ruoyi.system.mapper.AustraliaMiddleEastMapper"> | ||||
|     <resultMap id="RM_AustraliaMiddleEast" type="com.ruoyi.system.vo.AustraliaMiddleEastVO"> | ||||
| <mapper namespace="com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper"> | ||||
|     <resultMap id="RM_AustraliaMiddleEast" type="com.ruoyi.system.domain_yada.AustraliaMiddleEastVO"> | ||||
|  | ||||
|         <result property="yearMonth" column="year_month"/> | ||||
|         <result property="yearMonth" column="particular_month"/> | ||||
|         <result property="month" column="month"/> | ||||
|         <result property="id" column="ID"/> | ||||
|         <result property="sstAnomalyIndex" column="sst_anomaly_index"/> | ||||
|         <result property="temperatureAnomolies" column="temperature_anomolies"/> | ||||
|         <result property="precipitationAnomolies" column="precipitation_anomolies"/> | ||||
|         <result property="vaiAnomolies" column="vai_anomolies"/> | ||||
|         <result property="createdBy" column="created_by"/> | ||||
|         <result property="createdTime" column="created_time"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|  | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         ID,year_month,sst_anomaly_index,temperature_anomolies,precipitation_anomolies,vai_anomolies,created_by,created_time | ||||
|         ID,particular_month,sst_anomaly_index,temperature_anomolies,precipitation_anomolies,vai_anomolies,created_by,created_time,month | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectAustralia" resultMap="RM_AustraliaMiddleEast"> | ||||
|         SELECT  <include refid="columns"/>  FROM  central_and_eastern_australia; | ||||
|         SELECT  <include refid="columns"/>  FROM  central_and_eastern_australia | ||||
|         WHERE 1=1 | ||||
|         <if test="yearMonth!= null and yearMonth !=''"> | ||||
|             AND particular_month = #{yearMonth} | ||||
|         </if> | ||||
|         <if test="month!= null and month !=''"> | ||||
|             AND month = #{month} | ||||
|         </if> | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelAustralia"> | ||||
| @@ -34,8 +42,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|     <insert id="IntoAustralia"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO central_and_eastern_australia ( | ||||
|             ID , | ||||
|             year_month , | ||||
|             particular_month , | ||||
|             month, | ||||
|             sst_anomaly_index , | ||||
|             temperature_anomolies , | ||||
|             precipitation_anomolies , | ||||
| @@ -43,14 +51,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{yearMonth,jdbcType=DATE}, | ||||
|                      #{yearMonth,jdbcType=VARCHAR}, | ||||
|                      #{month,jdbcType=VARCHAR}, | ||||
|                      #{sstAnomalyIndex,jdbcType=DOUBLE}, | ||||
|                      #{temperatureAnomolies,jdbcType=DOUBLE}, | ||||
|                      #{precipitationAnomolies,jdbcType=DOUBLE}, | ||||
|                      #{vaiAnomolies,jdbcType=DOUBLE}, | ||||
|                      #{createdBy,jdbcType=VARCHAR}, | ||||
|                      #{createdTime,jdbcType=VARCHAR} | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=TIMESTAMP} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|   | ||||
| @@ -1,8 +0,0 @@ | ||||
| <?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.ENSOMapper"> | ||||
|  | ||||
|  | ||||
| </mapper>  | ||||
| @@ -1,8 +0,0 @@ | ||||
| <?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.ForestMapper"> | ||||
|  | ||||
|  | ||||
| </mapper>  | ||||
| @@ -1,7 +0,0 @@ | ||||
| <?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.GlobalEcologyMapper"> | ||||
|  | ||||
| </mapper>  | ||||
| @@ -0,0 +1,63 @@ | ||||
| <?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.GlobalTypeMapper"> | ||||
|  | ||||
|     <resultMap id="RM_GlobalType" type="com.ruoyi.system.domain_yada.GlobalTypeVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="typeName" column="type_name"/> | ||||
|         <result property="typeNameEn" column="type_name_en"/> | ||||
|         <result property="areaProportion" column="area_proportion"/> | ||||
|         <result property="area" column="area"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,particular_year,type_name,type_name_en,area_proportion,area,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|     <select id="selectGlobalType" resultMap="RM_GlobalType"> | ||||
|         SELECT  <include refid="columns"/>  FROM  proportion_of_global_types | ||||
|         WHERE 1=1 | ||||
|         <if test="particularYear!= null and particularYear !=''"> | ||||
|             AND particular_year = #{particularYear} | ||||
|         </if> | ||||
|         <if test="typeName!= null and typeName !=''"> | ||||
|             AND type_name = #{typeName} | ||||
|         </if> | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelGlobalType"> | ||||
|         DELETE FROM proportion_of_global_types | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoGlobalType"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO proportion_of_global_types ( | ||||
|             id , | ||||
|             particular_year , | ||||
|             type_name , | ||||
|             type_name_en , | ||||
|             area_proportion , | ||||
|             area , | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{particularYear,jdbcType=VARCHAR}, | ||||
|                      #{typeName,jdbcType=VARCHAR}, | ||||
|                      #{typeNameEn,jdbcType=VARCHAR}, | ||||
|                      #{areaProportion,jdbcType=DOUBLE}, | ||||
|                      #{area,jdbcType=DOUBLE}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
| </mapper>  | ||||
| @@ -0,0 +1,60 @@ | ||||
| <?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.OceanTemperatureMapper"> | ||||
|  | ||||
|     <resultMap id="RM_Ocean" type="com.ruoyi.system.domain_yada.OceanTemperatureVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="ninoPhenomenon" column="nino_phenomenon"/> | ||||
|         <result property="laNina" column="la_nina"/> | ||||
|         <result property="startDate" column="start_date"/> | ||||
|         <result property="endDate" column="end_date"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,nino_phenomenon,la_nina,start_date,end_date,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectOcean" resultMap="RM_Ocean"> | ||||
|         SELECT  <include refid="columns"/>  FROM  sea_surface_temperature_anomaly | ||||
|         WHERE 1=1 | ||||
|         <if test="startDate!= null and startDate !=''"> | ||||
|             AND startDate > #{startDate} | ||||
|         </if> | ||||
|  | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelOcean"> | ||||
|         DELETE FROM sea_surface_temperature_anomaly | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoOcean"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO sea_surface_temperature_anomaly ( | ||||
|             id , | ||||
|             nino_phenomenon , | ||||
|             la_nina , | ||||
|             start_date , | ||||
|             end_date , | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{ninoPhenomenon,jdbcType=INTEGER}, | ||||
|                      #{laNina,jdbcType=INTEGER}, | ||||
|                      #{startDate,jdbcType=DATE}, | ||||
|                      #{endDate,jdbcType=DATE}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
| </mapper>  | ||||
| @@ -2,8 +2,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.RegionVGIMapper"> | ||||
|     <resultMap id="RM_RegionVGI" type="com.ruoyi.system.vo.RegionVGIVO"> | ||||
| <mapper namespace="com.ruoyi.system.mapper_yada.RegionVGIMapper"> | ||||
|     <resultMap id="RM_RegionVGI" type="com.ruoyi.system.domain_yada.RegionVGIVO"> | ||||
|  | ||||
|         <result property="region" column="region"/> | ||||
|         <result property="id" column="ID"/> | ||||
| @@ -25,7 +25,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| 	</sql> | ||||
|  | ||||
|     <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 1=1--> | ||||
| <!--        <if test="particularYear!= null and particularYear !=''">--> | ||||
| <!--            AND particular_year = #{particularYear}--> | ||||
| <!--        </if>--> | ||||
| <!--        <if test="typeName!= null and typeName !=''">--> | ||||
| <!--            AND type_name = #{typeName}--> | ||||
| <!--        </if>--> | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelRegion"> | ||||
| @@ -50,9 +59,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{region,jdbcType=VARCHAR}, | ||||
|                      #{region_en,jdbcType=VARCHAR}, | ||||
|                      #{type_name,jdbcType=VARCHAR}, | ||||
|                      #{type_name_en,jdbcType=TIMESTAMP}, | ||||
|                      #{regionEn,jdbcType=VARCHAR}, | ||||
|                      #{typeName,jdbcType=VARCHAR}, | ||||
|                      #{typeNameEn,jdbcType=TIMESTAMP}, | ||||
|                      #{forest,jdbcType=DOUBLE}, | ||||
|                      #{createdBy,jdbcType=VARCHAR}, | ||||
|                      #{createdTime,jdbcType=DATE}, | ||||
|   | ||||
| @@ -0,0 +1,62 @@ | ||||
| <?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.RegionalSystemMapper"> | ||||
|  | ||||
|     <resultMap id="RM_Regional" type="com.ruoyi.system.domain_yada.RegionalSystemVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="region" column="region"/> | ||||
|         <result property="regionEn" column="region_en"/> | ||||
|         <result property="typeConversion" column="type_conversion"/> | ||||
|         <result property="typeconversionEn" column="type_conversion_en"/> | ||||
|         <result property="proportionOfChangedAreas" column="proportion_of_changed_areas"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,region,region_en,type_conversion,type_conversion_en,proportion_of_changed_areas,particular_year,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectRegional" resultMap="RM_Regional"> | ||||
|         SELECT  <include refid="columns"/>  FROM  proportion_of_ecosystem_type_transfer | ||||
|         WHERE 1=1 | ||||
|         <if test="region!= null and region !=''"> | ||||
|             AND region = #{region} | ||||
|         </if> | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelRegional"> | ||||
|         DELETE FROM proportion_of_ecosystem_type_transfer | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoRegional"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO proportion_of_ecosystem_type_transfer ( | ||||
|             region , | ||||
|             region_en , | ||||
|             type_conversion , | ||||
|             type_conversion_en , | ||||
|             proportion_of_changed_areas, | ||||
|             particular_year, | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{region,jdbcType=VARCHAR}, | ||||
|                      #{regionEn,jdbcType=VARCHAR}, | ||||
|                      #{typeConversion,jdbcType=VARCHAR}, | ||||
|                      #{typeconversionEn,jdbcType=VARCHAR}, | ||||
|                      #{proportionOfChangedAreas,jdbcType=DOUBLE}, | ||||
|                      #{particularYear,jdbcType=VARCHAR}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=TIMESTAMP} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
| </mapper>  | ||||
| @@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| 			<if test="configType != null and configType != ''">#{configType},</if> | ||||
| 			<if test="createBy != null and createBy != ''">#{createBy},</if> | ||||
| 			<if test="remark != null and remark != ''">#{remark},</if> | ||||
|  			sysdate() | ||||
|         current_timestamp | ||||
| 		) | ||||
|     </insert> | ||||
| 	  | ||||
| @@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|             <if test="configType != null and configType != ''">config_type = #{configType},</if> | ||||
|             <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> | ||||
|             <if test="remark != null">remark = #{remark},</if> | ||||
|  			update_time = sysdate() | ||||
|  			update_time = current_timestamp | ||||
|         </set> | ||||
|         where config_id = #{configId} | ||||
|     </update> | ||||
|   | ||||
| @@ -109,7 +109,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="email != null and email != ''">#{email},</if> | ||||
|  			<if test="status != null">#{status},</if> | ||||
|  			<if test="createBy != null and createBy != ''">#{createBy},</if> | ||||
|  			sysdate() | ||||
| 		current_timestamp | ||||
|  		) | ||||
| 	</insert> | ||||
| 	 | ||||
| @@ -125,7 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="email != null">email = #{email},</if> | ||||
|  			<if test="status != null and status != ''">status = #{status},</if> | ||||
|  			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> | ||||
|  			update_time = sysdate() | ||||
|  			update_time = current_timestamp | ||||
|  		</set> | ||||
|  		where dept_id = #{deptId} | ||||
| 	</update> | ||||
|   | ||||
| @@ -84,7 +84,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="status != null">status = #{status},</if> | ||||
|  			<if test="remark != null">remark = #{remark},</if> | ||||
|  			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> | ||||
|  			update_time = sysdate() | ||||
|  			update_time = current_timestamp | ||||
|  		</set> | ||||
|  		where dict_code = #{dictCode} | ||||
| 	</update> | ||||
| @@ -117,7 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="status != null">#{status},</if> | ||||
|  			<if test="remark != null and remark != ''">#{remark},</if> | ||||
|  			<if test="createBy != null and createBy != ''">#{createBy},</if> | ||||
|  			sysdate() | ||||
| 		current_timestamp | ||||
|  		) | ||||
| 	</insert> | ||||
| 	 | ||||
|   | ||||
| @@ -79,7 +79,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="status != null">status = #{status},</if> | ||||
|  			<if test="remark != null">remark = #{remark},</if> | ||||
|  			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> | ||||
|  			update_time = sysdate() | ||||
|  			update_time = current_timestamp | ||||
|  		</set> | ||||
|  		where dict_id = #{dictId} | ||||
| 	</update> | ||||
| @@ -98,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="status != null">#{status},</if> | ||||
|  			<if test="remark != null and remark != ''">#{remark},</if> | ||||
|  			<if test="createBy != null and createBy != ''">#{createBy},</if> | ||||
|  			sysdate() | ||||
|  			current_timestamp | ||||
|  		) | ||||
| 	</insert> | ||||
| 	 | ||||
|   | ||||
| @@ -18,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  | ||||
| 	<insert id="insertLogininfor" parameterType="SysLogininfor"> | ||||
| 		insert into sys_logininfor (user_name, status, ipaddr, login_location, browser, os, msg, login_time) | ||||
| 		values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, sysdate()) | ||||
| 		values (#{userName}, #{status}, #{ipaddr}, #{loginLocation}, #{browser}, #{os}, #{msg}, current_timestamp) | ||||
| 	</insert> | ||||
| 	 | ||||
| 	<select id="selectLogininforList" parameterType="SysLogininfor" resultMap="SysLogininforResult"> | ||||
|   | ||||
| @@ -28,7 +28,7 @@ | ||||
| 	</resultMap> | ||||
|  | ||||
| 	<sql id="selectMenuVo"> | ||||
|         select menu_id, menu_name, parent_id, order_num, path, component, `query`, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time  | ||||
|         select menu_id, menu_name, parent_id, order_num, path, component, `query`, is_frame, is_cache, menu_type, visible, status, nullif(perms,'') as perms, icon, create_time | ||||
| 		from sys_menu | ||||
|     </sql> | ||||
|      | ||||
| @@ -49,13 +49,13 @@ | ||||
| 	</select> | ||||
| 	 | ||||
| 	<select id="selectMenuTreeAll" resultMap="SysMenuResult"> | ||||
| 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time | ||||
| 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query, m.visible, m.status, nullif(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time | ||||
| 		from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0 | ||||
| 		order by m.parent_id, m.order_num | ||||
| 	</select> | ||||
| 	 | ||||
| 	<select id="selectMenuListByUserId" parameterType="SysMenu" resultMap="SysMenuResult"> | ||||
| 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time | ||||
| 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query, m.visible, m.status, nullif (m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time | ||||
| 		from sys_menu m | ||||
| 		left join sys_role_menu rm on m.menu_id = rm.menu_id | ||||
| 		left join sys_user_role ur on rm.role_id = ur.role_id | ||||
| @@ -74,7 +74,7 @@ | ||||
| 	</select> | ||||
|      | ||||
|     <select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult"> | ||||
| 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time | ||||
| 		select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.query, m.visible, m.status, nullif(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time | ||||
| 		from sys_menu m | ||||
| 			 left join sys_role_menu rm on m.menu_id = rm.menu_id | ||||
| 			 left join sys_user_role ur on rm.role_id = ur.role_id | ||||
| @@ -143,7 +143,7 @@ | ||||
| 			<if test="icon !=null and icon != ''">icon = #{icon},</if> | ||||
| 			<if test="remark != null and remark != ''">remark = #{remark},</if> | ||||
| 			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> | ||||
| 			update_time = sysdate() | ||||
| 			update_time = current_timestamp | ||||
| 		</set> | ||||
| 		where menu_id = #{menuId} | ||||
| 	</update> | ||||
| @@ -184,7 +184,7 @@ | ||||
| 		<if test="icon != null and icon != ''">#{icon},</if> | ||||
| 		<if test="remark != null and remark != ''">#{remark},</if> | ||||
| 		<if test="createBy != null and createBy != ''">#{createBy},</if> | ||||
| 		sysdate() | ||||
| 		current_timestamp | ||||
| 		) | ||||
| 	</insert> | ||||
| 	 | ||||
|   | ||||
| @@ -58,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| 			<if test="status != null and status != ''">#{status}, </if> | ||||
| 			<if test="remark != null and remark != ''">#{remark},</if> | ||||
|  			<if test="createBy != null and createBy != ''">#{createBy},</if> | ||||
|  			sysdate() | ||||
|  			current_timestamp | ||||
| 		) | ||||
|     </insert> | ||||
| 	  | ||||
| @@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|             <if test="noticeContent != null">notice_content = #{noticeContent}, </if> | ||||
|             <if test="status != null and status != ''">status = #{status}, </if> | ||||
|             <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> | ||||
|  			update_time = sysdate() | ||||
|  			update_time = current_timestamp | ||||
|         </set> | ||||
|         where notice_id = #{noticeId} | ||||
|     </update> | ||||
|   | ||||
| @@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|      | ||||
| 	<insert id="insertOperlog" parameterType="SysOperLog"> | ||||
| 		insert into sys_oper_log(title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, oper_time) | ||||
|         values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, sysdate()) | ||||
|         values (#{title}, #{businessType}, #{method}, #{requestMethod}, #{operatorType}, #{operName}, #{deptName}, #{operUrl}, #{operIp}, #{operLocation}, #{operParam}, #{jsonResult}, #{status}, #{errorMsg}, current_timestamp) | ||||
| 	</insert> | ||||
| 	 | ||||
| 	<select id="selectOperLogList" parameterType="SysOperLog" resultMap="SysOperLogResult"> | ||||
|   | ||||
| @@ -81,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="status != null and status != ''">status = #{status},</if> | ||||
|  			<if test="remark != null">remark = #{remark},</if> | ||||
|  			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> | ||||
|  			update_time = sysdate() | ||||
|  			update_time = current_timestamp | ||||
|  		</set> | ||||
|  		where post_id = #{postId} | ||||
| 	</update> | ||||
| @@ -104,7 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="status != null and status != ''">#{status},</if> | ||||
|  			<if test="remark != null and remark != ''">#{remark},</if> | ||||
|  			<if test="createBy != null and createBy != ''">#{createBy},</if> | ||||
|  			sysdate() | ||||
|  			current_timestamp | ||||
|  		) | ||||
| 	</insert> | ||||
| 	 | ||||
|   | ||||
| @@ -117,7 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="status != null and status != ''">#{status},</if> | ||||
|  			<if test="remark != null and remark != ''">#{remark},</if> | ||||
|  			<if test="createBy != null and createBy != ''">#{createBy},</if> | ||||
|  			sysdate() | ||||
|  			current_timestamp | ||||
|  		) | ||||
| 	</insert> | ||||
| 	 | ||||
| @@ -133,7 +133,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="status != null and status != ''">status = #{status},</if> | ||||
|  			<if test="remark != null">remark = #{remark},</if> | ||||
|  			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> | ||||
|  			update_time = sysdate() | ||||
|  			update_time = current_timestamp | ||||
|  		</set> | ||||
|  		where role_id = #{roleId} | ||||
| 	</update> | ||||
|   | ||||
| @@ -170,7 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="status != null and status != ''">#{status},</if> | ||||
|  			<if test="createBy != null and createBy != ''">#{createBy},</if> | ||||
|  			<if test="remark != null and remark != ''">#{remark},</if> | ||||
|  			sysdate() | ||||
| 		current_timestamp | ||||
|  		) | ||||
| 	</insert> | ||||
| 	 | ||||
| @@ -190,7 +190,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|  			<if test="loginDate != null">login_date = #{loginDate},</if> | ||||
|  			<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> | ||||
|  			<if test="remark != null">remark = #{remark},</if> | ||||
|  			update_time = sysdate() | ||||
|  			update_time = current_timestamp | ||||
|  		</set> | ||||
|  		where user_id = #{userId} | ||||
| 	</update> | ||||
|   | ||||
| @@ -0,0 +1,81 @@ | ||||
| <?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.ThematicMapMapper"> | ||||
|     <resultMap id="RM_ThematicMap" type="com.ruoyi.system.domain_yada.ThematicMapDomain"> | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="pictureZh" column="picture_zh"/> | ||||
|         <result property="pictureCode" column="picture_code"/> | ||||
|         <result property="pictureTypeOne" column="picture_type_one"/> | ||||
|         <result property="pictureTypeTwo" column="picture_type_two"/> | ||||
|         <result property="pictureEn" column="picture_en"/> | ||||
|         <result property="pictureName" column="picture_name"/> | ||||
|         <result property="pictureType" column="picture_type"/> | ||||
|         <result property="pictureTime" column="picture_time"/> | ||||
|         <result property="picturePath" column="picture_path"/> | ||||
|         <result property="remarks" column="remarks"/> | ||||
|         <result property="createdBy" column="created_by"/> | ||||
|         <result property="createdTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,picture_zh,picture_code,picture_type_one,picture_type_two,picture_en,picture_name,picture_type,picture_time,picture_path,picture_time,remarks,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectAllThematicMap" resultMap="RM_ThematicMap"> | ||||
|         SELECT  <include refid="columns"/>  FROM thematic_map | ||||
|         WHERE 1=1 | ||||
|         <if test="pictureType!= null and pictureType !=''"> | ||||
|             AND picture_type = #{pictureType} | ||||
|         </if> | ||||
|         <if test="pictureTypeOne!= null and pictureTypeOne !=''"> | ||||
|             AND picture_type_one = #{pictureTypeOne} | ||||
|         </if> | ||||
|         <if test="pictureTypeTwo!= null and pictureTypeTwo !=''"> | ||||
|             AND picture_type_two = #{pictureTypeTwo} | ||||
|         </if> | ||||
|     </select> | ||||
|  | ||||
|     <delete id="deleteThematicMap"> | ||||
|         DELETE FROM thematic_map | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="saveThematicMap"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO thematic_map ( | ||||
|             id , | ||||
|             picture_zh , | ||||
|             picture_en , | ||||
|             picture_name , | ||||
|             picture_type , | ||||
|             picture_type_one, | ||||
|             picture_type_two, | ||||
|             picture_code, | ||||
|             picture_time , | ||||
|             picture_path, | ||||
|             remarks, | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=BIGINT}, | ||||
|                      #{pictureZh,jdbcType=VARCHAR}}, | ||||
|                      #{pictureEn,jdbcType=VARCHAR}}, | ||||
|                      #{pictureName,jdbcType=VARCHAR}}, | ||||
|                      #{pictureType,jdbcType=VARCHAR}}, | ||||
|                      #{pictureTypeOne,jdbcType=VARCHAR}}, | ||||
|                      #{pictureTypeTwo,jdbcType=VARCHAR}}, | ||||
|                      #{pictureCode,jdbcType=VARCHAR}}, | ||||
|                      #{pictureTime,jdbcType=TIMESTAMP}, | ||||
|                      #{picturePath,jdbcType=VARCHAR}, | ||||
|                      #{remarks,jdbcType=VARCHAR}, | ||||
|                      #{createdBy,jdbcType=VARCHAR}, | ||||
|                      #{createdTime,jdbcType=TIMESTAMP} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
| </mapper>  | ||||
| @@ -2,7 +2,61 @@ | ||||
| <!DOCTYPE mapper | ||||
| PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.ruoyi.system.mapper.UrbanMapper"> | ||||
| <mapper namespace="com.ruoyi.system.mapper_yada.UrbanMapper"> | ||||
|  | ||||
|     <resultMap id="RM_Urban" type="com.ruoyi.system.domain_yada.UrbanVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="name" column="name"/> | ||||
|         <result property="nameEn" column="name_en"/> | ||||
|         <result property="urbanArea" column="urban_area"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,particular_year,name,name_en,urban_area,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <select id="selectUrban" resultMap="RM_Urban"> | ||||
|         SELECT  <include refid="columns"/>  FROM  urban_agglomeration_china | ||||
|         WHERE 1=1 | ||||
|         <if test="particularYear!= null and particularYear !=''"> | ||||
|             AND particular_year = #{particularYear} | ||||
|         </if> | ||||
|         <if test="name!= null and name !=''"> | ||||
|             AND name = #{name} | ||||
|         </if> | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelUrban"> | ||||
|         DELETE FROM urban_agglomeration_china | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoUrban"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO urban_agglomeration_china ( | ||||
|             id , | ||||
|             particular_year , | ||||
|             name , | ||||
|             name_en , | ||||
|             urban_area , | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{id,jdbcType=VARCHAR}, | ||||
|                      #{particularYear,jdbcType=VARCHAR}, | ||||
|                      #{name,jdbcType=VARCHAR}, | ||||
|                      #{nameEn,jdbcType=VARCHAR}, | ||||
|                      #{urbanArea,jdbcType=DOUBLE}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
| </mapper>  | ||||
| @@ -0,0 +1,68 @@ | ||||
| <?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.VegetationCoverageMapper"> | ||||
|     <resultMap id="RM_Vegetation" type="com.ruoyi.system.domain_yada.VegetationCoverageVO"> | ||||
|  | ||||
|         <result property="id" column="id"/> | ||||
|         <result property="particularYear" column="particular_year"/> | ||||
|         <result property="region" column="region"/> | ||||
|         <result property="regionEn" column="region_en"/> | ||||
|         <result property="protectedLands" column="protected_lands"/> | ||||
|         <result property="nonProtectedLands" column="non_protected_lands"/> | ||||
|         <result property="mountain" column="mountain"/> | ||||
|         <result property="nonMountain" column="non_mountain"/> | ||||
|         <result property="createBy" column="created_by"/> | ||||
|         <result property="createTime" column="created_time"/> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="columns"> | ||||
| 	    <![CDATA[ | ||||
|         id,particular_year,region,region_en,protected_lands,non_protected_lands,mountain,non_mountain,created_by,created_time | ||||
|         ]]> | ||||
| 	</sql> | ||||
|  | ||||
|     <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>--> | ||||
| <!--        <if test="region != null and region !=''">--> | ||||
| <!--            AND region = #{region}--> | ||||
| <!--        </if>--> | ||||
|     </select> | ||||
|  | ||||
|     <delete id="DelVegetation"> | ||||
|         DELETE FROM fvc_npp | ||||
|         WHERE ID=#{id} | ||||
|     </delete> | ||||
|  | ||||
|     <insert id="IntoVegetation"> | ||||
|         <![CDATA[ | ||||
|         INSERT INTO fvc_npp ( | ||||
|             particular_year , | ||||
|             region , | ||||
|             region_en , | ||||
|             protected_lands , | ||||
|             non_protected_lands , | ||||
|             mountain, | ||||
|             non_mountain, | ||||
|             created_by , | ||||
|             created_time | ||||
|         ) VALUES ( | ||||
|                      #{particularYear,jdbcType=VARCHAR}, | ||||
|                      #{region,jdbcType=VARCHAR}, | ||||
|                      #{regionEn,jdbcType=VARCHAR}, | ||||
|                      #{protectedLands,jdbcType=DOUBLE}, | ||||
|                      #{nonProtectedLands,jdbcType=DOUBLE}, | ||||
|                      #{mountain,jdbcType=DOUBLE}, | ||||
|                      #{nonMountain,jdbcType=DOUBLE}, | ||||
|                      #{createBy,jdbcType=VARCHAR}, | ||||
|                      #{createTime,jdbcType=DATE} | ||||
|                  ) | ||||
|         ]]> | ||||
|     </insert> | ||||
|  | ||||
| </mapper>  | ||||
		Reference in New Issue
	
	Block a user