文件下载
This commit is contained in:
@ -10,7 +10,7 @@ import java.util.List;
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/11 15:32
|
||||
*/
|
||||
public class DateUpload
|
||||
public class DateUpload extends SysSTEntity
|
||||
{
|
||||
private String id;
|
||||
|
||||
|
@ -0,0 +1,15 @@
|
||||
package com.ruoyi.system.domain_shate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class RegionName {
|
||||
private List<RegionNameVO> regionName;
|
||||
|
||||
public List<RegionNameVO> getRegionName() {
|
||||
return regionName;
|
||||
}
|
||||
|
||||
public void setRegionName(List<RegionNameVO> regionName) {
|
||||
this.regionName = regionName;
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.ruoyi.system.domain_shate;
|
||||
|
||||
public class RegionNameVO {
|
||||
/**
|
||||
* 历史
|
||||
*/
|
||||
private String originalName;
|
||||
/**
|
||||
* 当前
|
||||
*/
|
||||
private String currentName;
|
||||
|
||||
|
||||
public String getOriginalName() {
|
||||
return originalName;
|
||||
}
|
||||
|
||||
public void setOriginalName(String originalName) {
|
||||
this.originalName = originalName;
|
||||
}
|
||||
|
||||
public String getCurrentName() {
|
||||
return currentName;
|
||||
}
|
||||
|
||||
public void setCurrentName(String currentName) {
|
||||
this.currentName = currentName;
|
||||
}
|
||||
}
|
@ -5,6 +5,8 @@ package com.ruoyi.system.domain_shate;
|
||||
* @Date: 2022/7/11 10:02
|
||||
*/
|
||||
public class SysSTEntity {
|
||||
|
||||
private String regionName;
|
||||
private String link;
|
||||
|
||||
public String getLink() {
|
||||
@ -14,4 +16,12 @@ public class SysSTEntity {
|
||||
public void setLink(String link) {
|
||||
this.link = link;
|
||||
}
|
||||
|
||||
public String getRegionName() {
|
||||
return regionName;
|
||||
}
|
||||
|
||||
public void setRegionName(String regionName) {
|
||||
this.regionName = regionName;
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ package com.ruoyi.system.domain_shate;
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/23 16:38
|
||||
*/
|
||||
public class lanUseNew
|
||||
public class lanUseNew extends SysSTEntity
|
||||
{
|
||||
private Integer id;
|
||||
|
||||
|
@ -0,0 +1,49 @@
|
||||
package com.ruoyi.system.mapper_shate;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface updateAllRegionNameMapper {
|
||||
|
||||
Integer altitude(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer Aspect(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer Slope(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer salinization(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer moisture(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer desertification(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer road(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer water(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer landuse(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
Integer dataUpload(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer suitability(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer waterArea(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer seedSuccess(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
|
||||
Integer healthy(@Param("regionName") String regionName,
|
||||
@Param("regionName1") String regionName1);
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
package com.ruoyi.system.service_shate;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.domain_shate.LandUse;
|
||||
import com.ruoyi.system.domain_shate.RegionNameVO;
|
||||
import com.ruoyi.system.domain_shate.SeedingSuccessRate;
|
||||
import com.ruoyi.system.domain_shate.UplodFile;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@ -24,4 +26,6 @@ public interface ILandUseServices
|
||||
|
||||
UplodFile mainClass(String zone,String year);
|
||||
|
||||
AjaxResult updateAllRegionName(List<RegionNameVO> region);
|
||||
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
package com.ruoyi.system.service_shate.impl;
|
||||
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.domain_shate.*;
|
||||
import com.ruoyi.system.mapper_shate.LandUseMapper;
|
||||
import com.ruoyi.system.mapper_shate.SoilFactorMapper;
|
||||
import com.ruoyi.system.mapper_shate.*;
|
||||
import com.ruoyi.system.service_shate.ILandUseServices;
|
||||
import com.ruoyi.system.service_shate.IRegionalFactorService;
|
||||
import com.ruoyi.system.service_shate.ISoilFactorService;
|
||||
@ -14,17 +14,30 @@ import javax.annotation.Resource;
|
||||
import java.time.Year;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/8 11:20
|
||||
*/
|
||||
@Service
|
||||
public class LandUseServiceipml implements ILandUseServices
|
||||
{
|
||||
public class LandUseServiceipml implements ILandUseServices {
|
||||
|
||||
@Resource
|
||||
private PlantingSuitabilityMapper plantingSuitabilityMapper;
|
||||
|
||||
@Resource
|
||||
private SeedingSuccessMapper seedingSuccessMapper;
|
||||
|
||||
@Resource
|
||||
private VegetationHealthMapper vegetationHealthMapper;
|
||||
|
||||
@Resource
|
||||
private LandUseMapper mapper;
|
||||
|
||||
@Resource
|
||||
private updateAllRegionNameMapper updateAllRegionNameMapper;
|
||||
|
||||
@Resource
|
||||
private ITopographicFactorService factorService;
|
||||
|
||||
@ -35,14 +48,14 @@ public class LandUseServiceipml implements ILandUseServices
|
||||
private IRegionalFactorService regionalFactorService;
|
||||
|
||||
@Override
|
||||
public List<LandUse> sqlSeeding(String zone, String[] landUses,String year) {
|
||||
List<LandUse> value=mapper.sqlSeeding(zone, landUses,year);
|
||||
public List<LandUse> sqlSeeding(String zone, String[] landUses, String year) {
|
||||
List<LandUse> value = mapper.sqlSeeding(zone, landUses, year);
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<LandUse> sqlSeeding1(String zone, String year) {
|
||||
List<LandUse> value=mapper.sqlSeeding1(zone,year);
|
||||
List<LandUse> value = mapper.sqlSeeding1(zone, year);
|
||||
return value;
|
||||
}
|
||||
|
||||
@ -57,25 +70,34 @@ public class LandUseServiceipml implements ILandUseServices
|
||||
}
|
||||
|
||||
@Override
|
||||
public UplodFile mainClass(String zone,String year) {
|
||||
public UplodFile mainClass(String zone, String year) {
|
||||
|
||||
UplodFile file=new UplodFile();
|
||||
UplodFile file = new UplodFile();
|
||||
//播种成活率
|
||||
List<SeedingSuccessRate> information= seedingSuccessMapper.sqlSeeding(zone,year);
|
||||
//植被健康状况
|
||||
List<VegetationHealth> vegetationHealths=vegetationHealthMapper.sqlInfo(zone,year);
|
||||
//种植适宜性
|
||||
List<PlantingSuitability> plantingSuitabilities=plantingSuitabilityMapper.sqlSeeding(zone);
|
||||
//海拔
|
||||
List<Altitude> altitude = factorService.sqlAltitude(zone,year);
|
||||
List<Altitude> altitude = factorService.sqlAltitude(zone, year);
|
||||
//坡度
|
||||
List<Slope> slopes = factorService.sqlSlope(zone,year);
|
||||
List<Slope> slopes = factorService.sqlSlope(zone, year);
|
||||
//坡向
|
||||
List<Aspect> aspects = factorService.sqlAspect(zone,year);
|
||||
List<Aspect> aspects = factorService.sqlAspect(zone, year);
|
||||
//沙化指数
|
||||
List<SoilDesertification> desertifications=soilFactorService.sqlDesert(zone,year);
|
||||
List<SoilDesertification> desertifications = soilFactorService.sqlDesert(zone, year);
|
||||
//湿度指数
|
||||
List<SoilMoisture> moistures=soilFactorService.sqlMoisture(zone,year);
|
||||
List<SoilMoisture> moistures = soilFactorService.sqlMoisture(zone, year);
|
||||
//盐渍化指数
|
||||
List<SoilSalinization> salinizations=soilFactorService.sqlSalin(zone,year);
|
||||
List<SoilSalinization> salinizations = soilFactorService.sqlSalin(zone, year);
|
||||
//水域因子
|
||||
List<WaterFactor> waterFactors=regionalFactorService.sqlWater(zone,year);
|
||||
List<WaterFactor> waterFactors = regionalFactorService.sqlWater(zone, year);
|
||||
//道路因子
|
||||
List<RoadFactor> roadFactors=regionalFactorService.sqlRoad(zone,year);
|
||||
List<RoadFactor> roadFactors = regionalFactorService.sqlRoad(zone, year);
|
||||
file.setInformation(information);
|
||||
file.setVegetationHealths(vegetationHealths);
|
||||
file.setPlantingSuitabilities(plantingSuitabilities);
|
||||
file.setWaterFactors(waterFactors);
|
||||
file.setRoadFactors(roadFactors);
|
||||
file.setSoilMoistures(moistures);
|
||||
@ -86,4 +108,41 @@ public class LandUseServiceipml implements ILandUseServices
|
||||
file.setAltitudes(altitude);
|
||||
return file;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult updateAllRegionName(List<RegionNameVO> region) {
|
||||
try {
|
||||
List<RegionNameVO> regionNameLists = region.stream().distinct().collect(Collectors.toList());
|
||||
regionNameLists.forEach(e -> {
|
||||
try {
|
||||
Thread.currentThread().sleep(100);
|
||||
} catch (InterruptedException ex) {
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
|
||||
String regionName = e.getCurrentName();
|
||||
String regionName1 = e.getOriginalName();
|
||||
System.out.println("输出参数"+regionName+regionName1);
|
||||
updateAllRegionNameMapper.desertification(regionName, regionName1);
|
||||
updateAllRegionNameMapper.altitude(regionName, regionName1);
|
||||
updateAllRegionNameMapper.Aspect(regionName, regionName1);
|
||||
updateAllRegionNameMapper.Slope(regionName, regionName1);
|
||||
updateAllRegionNameMapper.salinization(regionName, regionName1);
|
||||
updateAllRegionNameMapper.moisture(regionName, regionName1);
|
||||
updateAllRegionNameMapper.road(regionName, regionName1);
|
||||
updateAllRegionNameMapper.water(regionName, regionName1);
|
||||
updateAllRegionNameMapper.landuse(regionName, regionName1);
|
||||
updateAllRegionNameMapper.dataUpload(regionName,regionName1);
|
||||
updateAllRegionNameMapper.suitability(regionName,regionName1);
|
||||
updateAllRegionNameMapper.waterArea(regionName,regionName1);
|
||||
updateAllRegionNameMapper.seedSuccess(regionName,regionName1);
|
||||
updateAllRegionNameMapper.healthy(regionName,regionName1);
|
||||
});
|
||||
return AjaxResult.success("成功!");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return AjaxResult.error(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,12 +29,13 @@
|
||||
<result property="size" column="size"/>
|
||||
<result property="month" column="month"/>
|
||||
<result property="route" column="route"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
ID,Zone,data_id ,year1,route,link,type,month ,type1,type2,file_name,data_time,created_time,type,data_id,area,band_index,bands,cols,depth,description,extent,name,projection,resolution,size
|
||||
ID,Zone,region_name,data_id ,year1,route,link,type,month ,type1,type2,file_name,data_time,created_time,type,data_id,area,band_index,bands,cols,depth,description,extent,name,projection,resolution,size
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
@ -137,6 +138,7 @@
|
||||
<![CDATA[
|
||||
INSERT INTO Data_Upload (
|
||||
zone ,
|
||||
region_name,
|
||||
type ,
|
||||
type1 ,
|
||||
type2,
|
||||
@ -160,6 +162,7 @@
|
||||
month,
|
||||
created_time
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{type,jdbcType=VARCHAR},
|
||||
#{type1,jdbcType=VARCHAR},
|
||||
|
@ -4,9 +4,9 @@
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.system.mapper_shate.LandUseMapper">
|
||||
<resultMap id="RM_Seeding" type="com.ruoyi.system.domain_shate.LandUse">
|
||||
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="landUse" column="Land_use"/>
|
||||
<result property="area" column="area"/>
|
||||
<result property="total" column="total"/>
|
||||
@ -22,7 +22,7 @@
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
ID,zone,land_use,year1,total,area,percent,Image_date,Product_code1,Product_code2,Product_code3,created_by
|
||||
ID,zone,region_name,land_use,year1,total,area,percent,Image_date,Product_code1,Product_code2,Product_code3,created_by
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
@ -43,6 +43,7 @@
|
||||
SELECT <include refid="columns"/> FROM landuse
|
||||
where 1=1
|
||||
<if test="zone!= null and zone !=''">
|
||||
|
||||
AND zone = #{zone}
|
||||
</if>
|
||||
<if test="year!= null and year !=''">
|
||||
@ -52,13 +53,14 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlYear" resultMap="RM_Seeding">
|
||||
SELECT distinct year1,ZONE FROM landuse ORDER BY ZONE
|
||||
SELECT distinct year1,ZONE,region_name FROM landuse ORDER BY ZONE
|
||||
</select>
|
||||
|
||||
<insert id="insertSeeding">
|
||||
<![CDATA[
|
||||
INSERT INTO landuse (
|
||||
zone ,
|
||||
region_name,
|
||||
Land_use,
|
||||
total,
|
||||
area ,
|
||||
@ -70,6 +72,7 @@
|
||||
year1,
|
||||
created_by
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{landUse,jdbcType=DOUBLE},
|
||||
#{total,jdbcType=DOUBLE},
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="verySuitable" column="very_suitable"/>
|
||||
<result property="suitable" column="Suitable"/>
|
||||
<result property="notSuitable" column="Not_Suitable"/>
|
||||
@ -22,7 +23,7 @@
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
ID,zone,very_suitable,year1,Suitable,Not_Suitable,Total_Area,Image_date,Product_code1,Product_code2,Product_code3,created_by,created_time
|
||||
ID,zone,region_name,very_suitable,year1,Suitable,Not_Suitable,Total_Area,Image_date,Product_code1,Product_code2,Product_code3,created_by,created_time
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
@ -47,13 +48,14 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlYear" resultMap="RM_Seeding">
|
||||
SELECT distinct year1,ZONE FROM suitability
|
||||
SELECT distinct year1,ZONE,region_name FROM suitability
|
||||
</select>
|
||||
|
||||
<insert id="InsertSeeding">
|
||||
<![CDATA[
|
||||
INSERT INTO suitability (
|
||||
zone ,
|
||||
region_name,
|
||||
very_suitable,
|
||||
Suitable ,
|
||||
Not_Suitable ,
|
||||
@ -65,6 +67,7 @@
|
||||
year1,
|
||||
created_by
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{verySuitable,jdbcType=DOUBLE},
|
||||
#{suitable,jdbcType=DOUBLE},
|
||||
|
@ -6,6 +6,7 @@
|
||||
<resultMap id="RM_Seeding" type="com.ruoyi.system.domain_shate.WaterFactor">
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="level1" column="level1"/>
|
||||
<result property="level2" column="level2"/>
|
||||
<result property="level3" column="level3"/>
|
||||
@ -23,6 +24,7 @@
|
||||
<resultMap id="RM_Road" type="com.ruoyi.system.domain_shate.RoadFactor">
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="level1" column="level1"/>
|
||||
<result property="level2" column="level2"/>
|
||||
<result property="level3" column="level3"/>
|
||||
@ -39,6 +41,7 @@
|
||||
<resultMap id="RM_Region" type="com.ruoyi.system.domain_shate.RegionIndex">
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="waterArea" column="Water_area"/>
|
||||
<result property="roadLength" column="Road_length"/>
|
||||
<result property="imageDate" column="Image_date"/>
|
||||
@ -59,7 +62,7 @@
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
ID,zone,level5,year1,level1,level2,level3,level4,Image_date,Product_code1,Product_code2,created_by
|
||||
ID,zone,region_name,level5,year1,level1,level2,level3,level4,Image_date,Product_code1,Product_code2,created_by
|
||||
]]>
|
||||
</sql>
|
||||
<sql id="Region">
|
||||
@ -97,7 +100,7 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlRegion" resultMap="RM_Region">
|
||||
select a.zone as zone,a.year1 as year1,a.water_area as water_area,
|
||||
select a.zone as zone,a.year1 as year1,a.water_area as water_area,a.region_name as region_name,
|
||||
b.road_length as road_length,a.image_date as image_date,
|
||||
a.product_code as product_code,b.product_code as product_code1
|
||||
FROM water_area a join road_length b
|
||||
@ -113,7 +116,7 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlYear1" resultMap="RM_Region">
|
||||
SELECT distinct year1,ZONE FROM water_area
|
||||
SELECT distinct year1,ZONE,region_name FROM water_area
|
||||
</select>
|
||||
|
||||
<select id="sqlRoad" resultMap="RM_Road">
|
||||
@ -127,13 +130,14 @@
|
||||
</if>
|
||||
</select>
|
||||
<select id="sqlYear2" resultMap="RM_Road">
|
||||
SELECT distinct year1,ZONE FROM road
|
||||
SELECT distinct year1,ZONE,region_name FROM road
|
||||
</select>
|
||||
|
||||
<insert id="InsertWater">
|
||||
<![CDATA[
|
||||
INSERT INTO water (
|
||||
zone ,
|
||||
region_name,
|
||||
level1,
|
||||
level2 ,
|
||||
level3 ,
|
||||
@ -145,6 +149,7 @@
|
||||
year1,
|
||||
created_by
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{level1,jdbcType=DOUBLE},
|
||||
#{level2,jdbcType=DOUBLE},
|
||||
@ -163,6 +168,7 @@
|
||||
<![CDATA[
|
||||
INSERT INTO road (
|
||||
zone ,
|
||||
region_name,
|
||||
level1,
|
||||
level2 ,
|
||||
level3 ,
|
||||
@ -174,6 +180,7 @@
|
||||
year1,
|
||||
created_by
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{level1,jdbcType=DOUBLE},
|
||||
#{level2,jdbcType=DOUBLE},
|
||||
@ -194,11 +201,13 @@
|
||||
<![CDATA[
|
||||
INSERT INTO water_area (
|
||||
zone ,
|
||||
region_name,
|
||||
Water_area,
|
||||
Image_date ,
|
||||
Product_code,
|
||||
year1
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{waterArea,jdbcType=DOUBLE},
|
||||
#{imageDate,jdbcType=VARCHAR},
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="plantingArea" column="Planting_area"/>
|
||||
<result property="seedingSuccessArea" column="Seeding_success_area"/>
|
||||
<result property="seedingSuccess" column="seeding_success"/>
|
||||
@ -28,6 +29,7 @@
|
||||
|
||||
<select id="sqlSeeding" resultMap="RM_Seeding">
|
||||
select distinct a.product_code2 as Product_code2,
|
||||
a.region_name as region_name,
|
||||
a.zone as zone,
|
||||
a.seeding_success_rate as seeding_success,
|
||||
a.product_code1 as productCode1,
|
||||
@ -49,7 +51,7 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlYear" resultMap="RM_Seeding">
|
||||
SELECT distinct year1,ZONE FROM "seed_Success"
|
||||
SELECT distinct year1,ZONE,region_name FROM "seed_Success"
|
||||
</select>
|
||||
|
||||
<insert id="InsertSeeding2">
|
||||
@ -74,12 +76,14 @@
|
||||
<![CDATA[
|
||||
INSERT INTO "seed_Success" (
|
||||
zone ,
|
||||
region_name,
|
||||
seeding_Success_Rate ,
|
||||
Image_date ,
|
||||
Product_code1 ,
|
||||
year1 ,
|
||||
Product_code2
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{seedingSuccess,jdbcType=DOUBLE},
|
||||
#{imageDate,jdbcType=VARCHAR},
|
||||
|
@ -6,6 +6,7 @@
|
||||
<resultMap id="RM_Desert" type="com.ruoyi.system.domain_shate.SoilDesertification">
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="level1" column="level1"/>
|
||||
<result property="level2" column="level2"/>
|
||||
<result property="level3" column="level3"/>
|
||||
@ -22,6 +23,7 @@
|
||||
<resultMap id="RM_Moisture" type="com.ruoyi.system.domain_shate.SoilMoisture">
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="level1" column="level1"/>
|
||||
<result property="level2" column="level2"/>
|
||||
<result property="level3" column="level3"/>
|
||||
@ -38,6 +40,7 @@
|
||||
<resultMap id="RM_Salin" type="com.ruoyi.system.domain_shate.SoilSalinization">
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="level1" column="level1"/>
|
||||
<result property="level2" column="level2"/>
|
||||
<result property="level3" column="level3"/>
|
||||
@ -53,7 +56,7 @@
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
ID,zone,level5,year1,level1,level2,level3,level4,Image_date,Product_code1,Product_code2,created_by
|
||||
ID,zone,region_name,level5,year1,level1,level2,level3,level4,Image_date,Product_code1,Product_code2,created_by
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
@ -70,7 +73,7 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlYear" resultMap="RM_Desert">
|
||||
SELECT distinct year1,ZONE FROM desertification
|
||||
SELECT distinct year1,ZONE,region_name FROM desertification
|
||||
</select>
|
||||
|
||||
<select id="sqlMoisture" resultMap="RM_Moisture">
|
||||
@ -85,7 +88,7 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlYear1" resultMap="RM_Moisture">
|
||||
SELECT distinct year1,ZONE FROM moisture
|
||||
SELECT distinct year1,ZONE,region_name FROM moisture
|
||||
</select>
|
||||
|
||||
<select id="sqlSalin" resultMap="RM_Salin">
|
||||
@ -100,13 +103,14 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlYear2" resultMap="RM_Salin">
|
||||
SELECT distinct year1,ZONE FROM salinization
|
||||
SELECT distinct year1,ZONE,region_name FROM salinization
|
||||
</select>
|
||||
|
||||
<insert id="InsertDesert">
|
||||
<![CDATA[
|
||||
INSERT INTO desertification (
|
||||
zone ,
|
||||
region_name,
|
||||
level1,
|
||||
level2 ,
|
||||
level3 ,
|
||||
@ -118,6 +122,7 @@
|
||||
year1,
|
||||
created_by
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{level1,jdbcType=DOUBLE},
|
||||
#{level2,jdbcType=DOUBLE},
|
||||
@ -136,6 +141,7 @@
|
||||
<![CDATA[
|
||||
INSERT INTO moisture (
|
||||
zone ,
|
||||
region_name,
|
||||
level1,
|
||||
level2 ,
|
||||
level3 ,
|
||||
@ -147,6 +153,7 @@
|
||||
year1,
|
||||
created_by
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{level1,jdbcType=DOUBLE},
|
||||
#{level2,jdbcType=DOUBLE},
|
||||
@ -166,6 +173,7 @@
|
||||
<![CDATA[
|
||||
INSERT INTO salinization (
|
||||
zone ,
|
||||
region_name,
|
||||
level1,
|
||||
level2 ,
|
||||
level3 ,
|
||||
@ -177,6 +185,7 @@
|
||||
year1,
|
||||
created_by
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{level1,jdbcType=DOUBLE},
|
||||
#{level2,jdbcType=DOUBLE},
|
||||
|
@ -6,6 +6,7 @@
|
||||
<resultMap id="RM_Altitude" type="com.ruoyi.system.domain_shate.Altitude">
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="level1" column="level1"/>
|
||||
<result property="level2" column="level2"/>
|
||||
<result property="level3" column="level3"/>
|
||||
@ -22,6 +23,7 @@
|
||||
<resultMap id="RM_Aspect" type="com.ruoyi.system.domain_shate.Aspect">
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="north" column="North"/>
|
||||
<result property="northeast" column="Northeast"/>
|
||||
<result property="east" column="East"/>
|
||||
@ -41,6 +43,7 @@
|
||||
<resultMap id="RM_Slope" type="com.ruoyi.system.domain_shate.Slope">
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="level1" column="level1"/>
|
||||
<result property="level2" column="level2"/>
|
||||
<result property="level3" column="level3"/>
|
||||
@ -55,13 +58,13 @@
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
ID,zone,level5,year1,level1,level2,level3,level4,Image_date,Product_code1,Product_code2,created_by
|
||||
ID,zone,region_name,level5,year1,level1,level2,level3,level4,Image_date,Product_code1,Product_code2,created_by
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<sql id="Aspect">
|
||||
<![CDATA[
|
||||
ID,zone,north,year1,northeast,east,southeast,south,southwest,west,northwest,Image_date,Product_code1,Product_code2,created_by
|
||||
ID,zone,region_name,north,year1,northeast,east,southeast,south,southwest,west,northwest,Image_date,Product_code1,Product_code2,created_by
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
@ -77,7 +80,7 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlYear" resultMap="RM_Altitude">
|
||||
SELECT distinct year1,ZONE FROM Altitude
|
||||
SELECT distinct year1,ZONE,region_name FROM Altitude
|
||||
|
||||
</select>
|
||||
|
||||
@ -93,7 +96,7 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlYear1" resultMap="RM_Slope">
|
||||
SELECT distinct year1,ZONE FROM Slope
|
||||
SELECT distinct year1,ZONE,region_name FROM Slope
|
||||
</select>
|
||||
|
||||
<select id="sqlAspect" resultMap="RM_Aspect">
|
||||
@ -108,13 +111,14 @@
|
||||
</select>
|
||||
|
||||
<select id="sqlYear2" resultMap="RM_Aspect">
|
||||
SELECT distinct year1,ZONE FROM Aspect
|
||||
SELECT distinct year1,ZONE,region_name FROM Aspect
|
||||
</select>
|
||||
|
||||
<insert id="InsertAltitude">
|
||||
<![CDATA[
|
||||
INSERT INTO Altitude (
|
||||
zone ,
|
||||
region_name,
|
||||
level1,
|
||||
level2 ,
|
||||
level3 ,
|
||||
@ -126,6 +130,7 @@
|
||||
year1,
|
||||
created_by
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{level1,jdbcType=DOUBLE},
|
||||
#{level2,jdbcType=DOUBLE},
|
||||
@ -145,6 +150,7 @@
|
||||
<![CDATA[
|
||||
INSERT INTO Aspect (
|
||||
zone ,
|
||||
region_name,
|
||||
North,
|
||||
Northeast ,
|
||||
East ,
|
||||
@ -159,6 +165,7 @@
|
||||
year1,
|
||||
created_by
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{north,jdbcType=DOUBLE},
|
||||
#{northeast,jdbcType=DOUBLE},
|
||||
@ -181,6 +188,7 @@
|
||||
<![CDATA[
|
||||
INSERT INTO Slope (
|
||||
zone ,
|
||||
region_name,
|
||||
level1,
|
||||
level2 ,
|
||||
level3 ,
|
||||
@ -192,6 +200,7 @@
|
||||
year1,
|
||||
created_by
|
||||
) VALUES (
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{zone,jdbcType=VARCHAR},
|
||||
#{level1,jdbcType=DOUBLE},
|
||||
#{level2,jdbcType=DOUBLE},
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
<result property="id" column="id"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="regionName" column="region_name"/>
|
||||
<result property="healthy" column="healthy"/>
|
||||
<result property="normal" column="Normal"/>
|
||||
<result property="notHealthy" column="Not_Healthy"/>
|
||||
|
@ -0,0 +1,66 @@
|
||||
<?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_shate.updateAllRegionNameMapper">
|
||||
|
||||
<update id="altitude">
|
||||
UPDATE altitude SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="Aspect">
|
||||
UPDATE Aspect SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="Slope">
|
||||
UPDATE Slope SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="salinization">
|
||||
UPDATE salinization SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="moisture">
|
||||
UPDATE moisture SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="desertification">
|
||||
UPDATE desertification SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="road">
|
||||
UPDATE road SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="water">
|
||||
UPDATE water SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="landuse">
|
||||
UPDATE landuse SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="dataUpload">
|
||||
UPDATE data_upload SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="suitability">
|
||||
UPDATE suitability SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="waterArea">
|
||||
UPDATE water_area SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="seedSuccess">
|
||||
UPDATE "seed_Success" SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<update id="healthy">
|
||||
UPDATE healthy SET region_name=#{regionName} where region_name=#{regionName1}
|
||||
</update>
|
||||
|
||||
<!-- <update id="healthy">-->
|
||||
<!-- UPDATE vegetation_Distribution SET region_name=#{regionName} where region_name=#{regionName1}-->
|
||||
<!-- </update>-->
|
||||
</mapper>
|
Reference in New Issue
Block a user