From de1dd3a808f3b30558131087841709019ac963cf Mon Sep 17 00:00:00 2001 From: songjinsheng Date: Fri, 20 May 2022 08:56:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E8=BF=AD=E4=BB=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AustraliaMiddleEastController.java | 76 +++++++++++ .../RemoteSensing/RegionVGIController.java | 0 .../mapper/AustraliaMiddleEastMapper.java | 21 +++ .../ruoyi/system/mapper/RegionVGIMapper.java | 20 +++ .../service/IAustraliaMiddleEastService.java | 20 +++ .../system/service/IRegionVGIService.java | 20 +++ .../impl/AustraliaMiddleEastServiceimpl.java | 37 +++++ .../service/impl/RegionVGIServiceimpl.java | 35 +++++ .../system/vo/AustraliaMiddleEastVO.java | 93 +++++++++++++ .../java/com/ruoyi/system/vo/RegionVGIVO.java | 126 ++++++++++++++++++ .../system/AustraliaMiddleEastMapper.xml | 57 ++++++++ .../mapper/system/RegionVGIMapper.xml | 65 +++++++++ 12 files changed, 570 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/RemoteSensing/AustraliaMiddleEastController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/RemoteSensing/RegionVGIController.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/AustraliaMiddleEastMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/RegionVGIMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IAustraliaMiddleEastService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IRegionVGIService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/AustraliaMiddleEastServiceimpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RegionVGIServiceimpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/vo/AustraliaMiddleEastVO.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/vo/RegionVGIVO.java create mode 100644 ruoyi-system/src/main/resources/mapper/system/AustraliaMiddleEastMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/system/RegionVGIMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RemoteSensing/AustraliaMiddleEastController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RemoteSensing/AustraliaMiddleEastController.java new file mode 100644 index 000000000..9040013ea --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RemoteSensing/AustraliaMiddleEastController.java @@ -0,0 +1,76 @@ +package com.ruoyi.web.controller.RemoteSensing; + +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.system.service.IAustraliaMiddleEastService; +import com.ruoyi.system.service.IForestService; +import com.ruoyi.system.vo.AustraliaMiddleEastVO; +import org.apache.ibatis.annotations.Param; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.List; + +/** + * 澳大利亚中东部地区 + * @Author: JinSheng Song + * @Date: 2022/5/11 9:08 + */ +@RestController +@RequestMapping(value = "/business-service/api/orderMng", produces = "application/json;charset=UTF-8") +public class AustraliaMiddleEastController +{ + // @Autowired + private IAustraliaMiddleEastService australiaMiddleEastService; + + /** + * 查询方法 + * @param response + * @param request + * @return + */ + @RequestMapping(value = "/SelectAustralia",method = {RequestMethod.POST}) + public AjaxResult SelectAustralia(HttpServletResponse response, HttpServletRequest request) + { + List eastVOSList= australiaMiddleEastService.selectAustralia(); + return AjaxResult.success(eastVOSList); + } + + /** + * 删除方法 + * @param ID + * @return + */ + @RequestMapping(value = "/DelAustralia",method = {RequestMethod.POST}) + public AjaxResult DelAustralia(@Param("ID") String ID) + { + int NUM = australiaMiddleEastService.DelAustralia(ID); + if (NUM>0) + { + return AjaxResult.success(); + } + return AjaxResult.error(); + + } + + /** + * 新增方法 + * @param eastVOS + * @return + */ + @RequestMapping(value = "/IntoAustralia",method = {RequestMethod.POST}) + public AjaxResult IntoAustralia(AustraliaMiddleEastVO eastVOS) + { + int NUM = australiaMiddleEastService.IntoAustralia(eastVOS); + if (NUM>0) + { + return AjaxResult.success(); + } + return AjaxResult.error(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RemoteSensing/RegionVGIController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RemoteSensing/RegionVGIController.java new file mode 100644 index 000000000..e69de29bb diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/AustraliaMiddleEastMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/AustraliaMiddleEastMapper.java new file mode 100644 index 000000000..9293c5b94 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/AustraliaMiddleEastMapper.java @@ -0,0 +1,21 @@ +package com.ruoyi.system.mapper; + +import com.ruoyi.system.vo.AustraliaMiddleEastVO; +import org.apache.ibatis.annotations.Param; + + +import java.util.List; + +/** + * 澳大利亚中东部地区 + * @Author: JinSheng Song + * @Date: 2022/5/11 15:17 + */ +public interface AustraliaMiddleEastMapper { + + List selectAustralia(); + + Integer DelAustralia(@Param("id") String id); + + Integer IntoAustralia(AustraliaMiddleEastVO eastVO); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/RegionVGIMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/RegionVGIMapper.java new file mode 100644 index 000000000..c44334dcb --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/RegionVGIMapper.java @@ -0,0 +1,20 @@ +package com.ruoyi.system.mapper; + +import com.ruoyi.system.vo.AustraliaMiddleEastVO; +import com.ruoyi.system.vo.RegionVGIVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * @Author: JinSheng Song + * @Date: 2022/5/11 15:17 + */ +public interface RegionVGIMapper { + + List selectRegion(); + + Integer DelRegion(@Param("id") String id); + + Integer IntoRegion(RegionVGIVO regionVGIVO); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IAustraliaMiddleEastService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IAustraliaMiddleEastService.java new file mode 100644 index 000000000..01f552567 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IAustraliaMiddleEastService.java @@ -0,0 +1,20 @@ +package com.ruoyi.system.service; + +import com.ruoyi.system.vo.AustraliaMiddleEastVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * 澳大利亚中东部地区 + * @Author: JinSheng Song + * @Date: 2022/5/11 11:32 + */ +public interface IAustraliaMiddleEastService +{ + public List selectAustralia(); + + public Integer DelAustralia(@Param("id") String id); + + public Integer IntoAustralia(AustraliaMiddleEastVO eastVO); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IRegionVGIService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IRegionVGIService.java new file mode 100644 index 000000000..1cf8d34d7 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IRegionVGIService.java @@ -0,0 +1,20 @@ +package com.ruoyi.system.service; + +import com.ruoyi.system.vo.AustraliaMiddleEastVO; +import com.ruoyi.system.vo.RegionVGIVO; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * @Author: JinSheng Song + * @Date: 2022/5/11 11:34 + */ +public interface IRegionVGIService { + + public List selectRegion(); + + public Integer DelRegion(@Param("id") String id); + + public Integer IntoRegion(RegionVGIVO eastVO); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/AustraliaMiddleEastServiceimpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/AustraliaMiddleEastServiceimpl.java new file mode 100644 index 000000000..3fa866dd6 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/AustraliaMiddleEastServiceimpl.java @@ -0,0 +1,37 @@ +package com.ruoyi.system.service.impl; + +import com.ruoyi.system.mapper.AustraliaMiddleEastMapper; +import com.ruoyi.system.mapper.SysLogininforMapper; +import com.ruoyi.system.service.IAustraliaMiddleEastService; +import com.ruoyi.system.vo.AustraliaMiddleEastVO; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.List; + +/** + * 亚大综合监测 + * @Author: JinSheng Song + * @Date: 2022/5/11 11:43 + */ +public class AustraliaMiddleEastServiceimpl implements IAustraliaMiddleEastService +{ + @Autowired + private AustraliaMiddleEastMapper australiaMiddleEastMapper; + + @Override + public List selectAustralia() + { + return australiaMiddleEastMapper.selectAustralia(); + } + + @Override + public Integer DelAustralia(String id) { + return australiaMiddleEastMapper.DelAustralia(id); + + } + + @Override + public Integer IntoAustralia(AustraliaMiddleEastVO eastVO) { + return australiaMiddleEastMapper.IntoAustralia(eastVO); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RegionVGIServiceimpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RegionVGIServiceimpl.java new file mode 100644 index 000000000..60966b5dc --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/RegionVGIServiceimpl.java @@ -0,0 +1,35 @@ +package com.ruoyi.system.service.impl; + +import com.ruoyi.system.mapper.AustraliaMiddleEastMapper; +import com.ruoyi.system.mapper.RegionVGIMapper; +import com.ruoyi.system.service.IRegionVGIService; +import com.ruoyi.system.vo.RegionVGIVO; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.List; + +/** + * 大气质量监测 + * @Author: JinSheng Song + * @Date: 2022/5/11 11:45 + */ +public class RegionVGIServiceimpl implements IRegionVGIService { + + @Autowired + private RegionVGIMapper vgiMapper; + + @Override + public List selectRegion() { + return vgiMapper.selectRegion(); + } + + @Override + public Integer DelRegion(String id) { + return vgiMapper.DelRegion(id); + } + + @Override + public Integer IntoRegion(RegionVGIVO eastVO) { + return vgiMapper.IntoRegion(eastVO); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/vo/AustraliaMiddleEastVO.java b/ruoyi-system/src/main/java/com/ruoyi/system/vo/AustraliaMiddleEastVO.java new file mode 100644 index 000000000..20c863231 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/vo/AustraliaMiddleEastVO.java @@ -0,0 +1,93 @@ +package com.ruoyi.system.vo; + +import javax.xml.crypto.Data; +import java.lang.ref.PhantomReference; +import java.time.LocalDate; + +/** + * @Author: JinSheng Song + * @Date: 2022/5/19 14:50 + */ +public class AustraliaMiddleEastVO +{ + private String id; + + private LocalDate yearMonth; + + private Double sstAnomalyIndex; + + private Double temperatureAnomolies; + + private Double precipitationAnomolies; + + private Double vaiAnomolies; + + private String createdBy; + + private String createdTime; + + + public LocalDate getYearMonth() { + return yearMonth; + } + + public void setYearMonth(LocalDate yearMonth) { + this.yearMonth = yearMonth; + } + + public Double getSstAnomalyIndex() { + return sstAnomalyIndex; + } + + public void setSstAnomalyIndex(Double sstAnomalyIndex) { + this.sstAnomalyIndex = sstAnomalyIndex; + } + + public Double getTemperatureAnomolies() { + return temperatureAnomolies; + } + + public void setTemperatureAnomolies(Double temperatureAnomolies) { + this.temperatureAnomolies = temperatureAnomolies; + } + + public Double getPrecipitationAnomolies() { + return precipitationAnomolies; + } + + public void setPrecipitationAnomolies(Double precipitationAnomolies) { + this.precipitationAnomolies = precipitationAnomolies; + } + + public Double getVaiAnomolies() { + return vaiAnomolies; + } + + public void setVaiAnomolies(Double vaiAnomolies) { + this.vaiAnomolies = vaiAnomolies; + } + + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public String getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(String createdTime) { + this.createdTime = createdTime; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/vo/RegionVGIVO.java b/ruoyi-system/src/main/java/com/ruoyi/system/vo/RegionVGIVO.java new file mode 100644 index 000000000..379df3396 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/vo/RegionVGIVO.java @@ -0,0 +1,126 @@ +package com.ruoyi.system.vo; + +import java.io.Serializable; +import java.time.LocalDate; + +/** + * @Author: JinSheng Song + * @Date: 2022/5/19 16:53 + */ +public class RegionVGIVO implements Serializable { + private String id; + + private String region; + + private String regionEn; + + private String typeName; + + private String typeNameEn; + + private Double forest; + + private Double grassland; + + private Integer particularYear; + + private String createdBy; + + private LocalDate createdTime; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public String getRegionEn() { + return regionEn; + } + + public void setRegionEn(String regionEn) { + this.regionEn = regionEn; + } + + public String getTypeName() { + return typeName; + } + + public void setTypeName(String typeName) { + this.typeName = typeName; + } + + public String getTypeNameEn() { + return typeNameEn; + } + + public void setTypeNameEn(String typeNameEn) { + this.typeNameEn = typeNameEn; + } + + public Double getForest() { + return forest; + } + + public void setForest(Double forest) { + this.forest = forest; + } + + public Double getGrassland() { + return grassland; + } + + public void setGrassland(Double grassland) { + this.grassland = grassland; + } + + public Integer getParticularYear() { + return particularYear; + } + + public void setParticularYear(Integer particularYear) { + this.particularYear = particularYear; + } + + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public LocalDate getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(LocalDate createdTime) { + this.createdTime = createdTime; + } + + @Override + public String toString() { + return "RegionVGIVO{" + + "id='" + id + '\'' + + ", region='" + region + '\'' + + ", regionEn='" + regionEn + '\'' + + ", typeName='" + typeName + '\'' + + ", typeNameEn='" + typeNameEn + '\'' + + ", forest=" + forest + + ", grassland=" + grassland + + ", particularYear=" + particularYear + + ", createdBy='" + createdBy + '\'' + + ", createdTime=" + createdTime + + '}'; + } +} diff --git a/ruoyi-system/src/main/resources/mapper/system/AustraliaMiddleEastMapper.xml b/ruoyi-system/src/main/resources/mapper/system/AustraliaMiddleEastMapper.xml new file mode 100644 index 000000000..b0de66317 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/AustraliaMiddleEastMapper.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM central_and_eastern_australia + WHERE ID=#{id} + + + + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/RegionVGIMapper.xml b/ruoyi-system/src/main/resources/mapper/system/RegionVGIMapper.xml new file mode 100644 index 000000000..b1eb0efe3 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/RegionVGIMapper.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + DELETE FROM region_vgi + WHERE ID=#{id} + + + + + + + + \ No newline at end of file