线下版本维护

This commit is contained in:
songjinsheng
2022-08-23 15:39:06 +08:00
parent 873c24cae8
commit 45fbc8a501
31 changed files with 268 additions and 264 deletions

View File

@ -23,12 +23,11 @@ public class Altitude extends SysSTEntity
private Double Level2;
private Double Level3;
private Double Level4;
private Double Level5;
private Double max;
private Double max;
private String imageDate;

View File

@ -26,12 +26,12 @@ public class Aspect extends SysSTEntity{
private Double southeast;
private Double max;
private Double south;
private Double southwest;
private Double max;
private Double west;
private Double northwest;

View File

@ -1,6 +1,6 @@
package com.ruoyi.system.domain_shate;
import java.time.LocalDateTime;
/**
@ -18,7 +18,6 @@ public class PlantingSuitability extends SysSTEntity
private String zone;
private Double max;
private Double verySuitable;
@ -32,6 +31,7 @@ public class PlantingSuitability extends SysSTEntity
private String total;
private Double max;
private String productCode1;

View File

@ -19,8 +19,6 @@ public class RoadFactor extends SysSTEntity
private String zone;
private Double max;
private Double Level1;
private Double Level2;
@ -31,6 +29,8 @@ public class RoadFactor extends SysSTEntity
private Double Level5;
private Double max;
private String imageDate;

View File

@ -31,7 +31,7 @@ public class SoilSalinization extends SysSTEntity
private String imageDate;
private String year1;
private String productCode1;
@ -165,5 +165,4 @@ public class SoilSalinization extends SysSTEntity
public void setYear(String year) {
this.year = year;
}
}

View File

@ -10,6 +10,9 @@ public class VegetationHealth extends SysSTEntity
{
private Integer id;
private Double max;
private String zone;
private Double healthy;
@ -22,8 +25,6 @@ public class VegetationHealth extends SysSTEntity
private String resolution;
private Double max;
private String imageDate;
private String productCode1;
@ -160,6 +161,7 @@ public class VegetationHealth extends SysSTEntity
this.year = year;
}
public String getResolution() {
return resolution;
}

View File

@ -19,8 +19,6 @@ public class WaterFactor extends SysSTEntity
private String zone;
private Double max;
private Double level1;
private Double level2;
@ -31,6 +29,7 @@ public class WaterFactor extends SysSTEntity
private Double level5;
private Double max;
private String imageDate;

View File

@ -15,8 +15,11 @@ public class paging {
private Integer pageSize;
private String zone;//区域
private String type;//类型1
private String type1;//类型2
private String type2;
private String type3;
@ -27,7 +30,6 @@ public class paging {
private String dateTime;
private List<Integer> ids;
public String getZone() {

View File

@ -13,53 +13,53 @@ import java.util.List;
public interface DateUploadMapper {
Integer altitude(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer aspect(@Param("zone") String zone,
@Param("imageDate") String imageDate);
Integer landuse(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer suitability(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer road(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer seedSuccess(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer vegetationDistribution(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer slope(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer desertification(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer moisture(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer salinization(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer healthy(@Param("zone") String zone,
@Param("imageDate") String imageDate,
@Param("imageDate") String imageDate,
@Param("resolution") String resolution);
Integer water(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer waterArea(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer roadLength(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
Integer climateIndex(@Param("zone") String zone,
@Param("imageDate") String imageDate);
@Param("imageDate") String imageDate);
List<DateUpload> selectUpload(@Param("zone") String zone,
@Param("type") String type,
@ -71,13 +71,13 @@ public interface DateUploadMapper {
@Param("dateTime") String dateTime);
DateUpload selectShpfile(@Param("zone") String zone,
@Param("type") String type,
@Param("dateTime") String dateTime,
@Param("year") String year);
@Param("type") String type,
@Param("dateTime") String dateTime,
@Param("year") String year);
DateUpload selectShp(@Param("zone") String zone,
@Param("type") String type,
@Param("dateTime") String dateTime);
@Param("type") String type,
@Param("dateTime") String dateTime);
Integer DelUpload(@Param("id") Integer id);

View File

@ -6,7 +6,6 @@ import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;
import java.util.StringTokenizer;
/**
* @Author: JinSheng Song
@ -38,36 +37,36 @@ public interface IDateUploadService {
DateUpload selectDel(Integer id);
Integer altitude( String zone,
String imageDate);
Integer aspect( String zone,
String imageDate);
Integer landuse( String zone,
String imageDate);
Integer suitability( String zone,
String imageDate);
Integer road( String zone,
String imageDate);
Integer seedSuccess( String zone,
String imageDate);
Integer vegetationDistribution( String zone,
String imageDate);
Integer slope( String zone,
String imageDate);
Integer desertification( String zone,
String imageDate);
Integer moisture( String zone,
String imageDate);
Integer salinization( String zone,
String imageDate);
Integer healthy(String zone,
String imageDate,
String resolution);
Integer water( String zone,
String imageDate);
Integer waterArea( String zone,
String imageDate);
Integer roadLength( String zone,
String imageDate);
Integer climateIndex( String zone,
Integer aspect( String zone,
String imageDate);
Integer landuse( String zone,
String imageDate);
Integer suitability( String zone,
String imageDate);
Integer road( String zone,
String imageDate);
Integer seedSuccess( String zone,
String imageDate);
Integer vegetationDistribution( String zone,
String imageDate);
Integer slope( String zone,
String imageDate);
Integer desertification( String zone,
String imageDate);
Integer moisture( String zone,
String imageDate);
Integer salinization( String zone,
String imageDate);
Integer healthy( String zone,
String imageDate,
String resolution);
Integer water( String zone,
String imageDate);
Integer waterArea( String zone,
String imageDate);
Integer roadLength( String zone,
String imageDate);
Integer climateIndex( String zone,
String imageDate);
}

View File

@ -55,9 +55,9 @@
AND type = #{type}
</if>
<!-- <if test="dateTime!= null and dateTime !=''">-->
<!-- AND data_time = #{dateTime}-->
<!-- </if>-->
<!-- <if test="dateTime!= null and dateTime !=''">-->
<!-- AND data_time = #{dateTime}-->
<!-- </if>-->
</select>
@ -91,11 +91,10 @@
<if test="name!= null and name !=''">
AND file_name like #{name}
</if>
<if test="dateTime != null and dateTime !=''">
AND data_time=#{dateTime}
<if test="dateTime!= null and dateTime !=''">
AND data_Time = #{dateTime}
</if>
ORDER BY created_time desc
</select>
<select id="selectShpfile" resultMap="RM_Upload">
@ -244,7 +243,7 @@
</delete>
<delete id="vegetationDistribution">
DELETE FROM "vegetation_Distribution"
DELETE FROM "vegetation_Distrbution"
WHERE zone = #{zone}
and image_date =#{imageDate}
</delete>
@ -276,8 +275,8 @@
<delete id="healthy">
DELETE FROM healthy
WHERE zone = #{zone}
and image_date =#{imageDate}
and resolution=#{resolution}
and image_date =#{imageDate}
and resolution=#{resolution}
</delete>
<delete id="water">

View File

@ -52,7 +52,7 @@
</select>
<select id="sqlYear" resultMap="RM_Seeding">
SELECT distinct year1,ZONE FROM landuse ORDER BY ZONE
SELECT distinct year1,ZONE FROM landuse ORDER BY ZONE
</select>
<insert id="insertSeeding">

View File

@ -57,7 +57,7 @@
#{verySuitable,jdbcType=DOUBLE},
#{suitable,jdbcType=DOUBLE},
#{notSuitable,jdbcType=DOUBLE},
#{totalArea,jdbcType=DOUBLE},
#{totalArea,jdbcType=DOUBLE},
#{imageDate,jdbcType=VARCHAR},
#{productCode1,jdbcType=VARCHAR},
#{productCode2,jdbcType=VARCHAR},

View File

@ -97,9 +97,9 @@
</select>
<select id="sqlRegion" resultMap="RM_Region">
select a.zone as zone,a.year1 as year1,a.water_area as water_area,
b.road_length as road_length,a.image_date as image_date,
a.product_code as product_code,b.product_code as product_code1
select a.zone zone,a.year1 year1,a.water_area water_area,
b.road_length road_length,a.image_date image_date,
a.product_code product_code,b.product_code product_code1
FROM water_area a join road_length b
on a.image_date=b.image_date
and a.zone=b.zone

View File

@ -27,14 +27,14 @@
</sql>
<select id="sqlSeeding" resultMap="RM_Seeding">
select distinct a.product_code2 as Product_code2,
a.zone as zone,
a.seeding_success_rate as seeding_success,
a.product_code1 as productCode1,
a.image_date as Image_date,
b.seeding_success_area as Seeding_success_area,
b.product_code2 as Product_code3,
a.year1 as year1
select distinct a.product_code2 Product_code2,
a.zone zone,
a.seeding_success_rate seeding_success,
a.product_code1 productCode1,
a.image_date Image_date,
b.seeding_success_area Seeding_success_area,
b.product_code2 Product_code3,
a.year1 year1
from "seed_Success" a
left join "vegetation_Distribution" b
on a.image_date=b.image_date

View File

@ -56,7 +56,7 @@
<sql id="columns">
<![CDATA[
ID,zone,healthy,resolution,year1,Normal,Not_Healthy,Total_Area,Image_date,Product_code1,Product_code2,Product_code3,created_by,created_time
ID,zone,healthy,year1,Normal,Not_Healthy,Total_Area,Image_date,Product_code1,Product_code2,Product_code3,created_by,created_time
]]>
</sql>