修改接口

This commit is contained in:
songjinsheng 2022-05-24 11:29:11 +08:00
parent 5041f3f92f
commit 264a5d910f
15 changed files with 130 additions and 132 deletions

View File

@ -7,6 +7,7 @@ import com.ruoyi.system.service_yada.IAorestCoverageService;
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService; import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; 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.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -14,12 +15,13 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import javax.xml.crypto.Data;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
* 森林覆盖率 * 森林覆盖率
* @Author: JinSheng Song
* @Date: 2022/5/11 9:08
*/ */
@RestController @RestController
@RequestMapping(value = "/business-service/api/Aorest", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Aorest", produces = "application/json;charset=UTF-8")
@ -29,9 +31,9 @@ public class AorestCoverageController {
/** /**
* 查询方法 * 查询方法
* @param response * @param response 响应头
* @param request * @param request 客户端请求
* @return * @return 参数类
*/ */
@RequestMapping(value = "/selectAorestCoverage",method = {RequestMethod.POST}) @RequestMapping(value = "/selectAorestCoverage",method = {RequestMethod.POST})
public AjaxResult selectAorestCoverage(HttpServletResponse response, HttpServletRequest request) public AjaxResult selectAorestCoverage(HttpServletResponse response, HttpServletRequest request)
@ -42,8 +44,8 @@ public class AorestCoverageController {
/** /**
* 删除方法 * 删除方法
* @param ID * @param ID 单据id
* @return * @return 状态码
*/ */
@RequestMapping(value = "/DelAorestCoverage",method = {RequestMethod.POST}) @RequestMapping(value = "/DelAorestCoverage",method = {RequestMethod.POST})
public AjaxResult DelAorestCoverage(@Param("ID") String ID) public AjaxResult DelAorestCoverage(@Param("ID") String ID)
@ -59,17 +61,25 @@ public class AorestCoverageController {
/** /**
* 新增方法 * 新增方法
* @param eastVOS * @param eastVOS 新增实体类
* @return * @return 状态码
*/ */
@RequestMapping(value = "/IntoAorestCoverage",method = {RequestMethod.POST}) @RequestMapping(value = "/IntoAorestCoverage",method = {RequestMethod.POST})
public AjaxResult IntoAorestCoverage(AorestCoverageVO eastVOS) public AjaxResult IntoAorestCoverage(@RequestBody AorestCoverageVO eastVOS)
{ {
int NUM = service.IntoAorestCoverage(eastVOS); try {
if (NUM>0) eastVOS.setCreateTime(LocalDateTime.now());
{ int NUM = service.IntoAorestCoverage(eastVOS);
return AjaxResult.success(); if (NUM>0)
{
return AjaxResult.success();
}
return AjaxResult.error();
} }
return AjaxResult.error(); catch (Exception E){
E.getMessage();
return AjaxResult.error();
}
} }
} }

View File

@ -5,6 +5,7 @@ import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO; import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; 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.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -12,12 +13,11 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
* 澳大利亚中东部地区 * 澳大利亚中东部地区
* @Author: JinSheng Song
* @Date: 2022/5/11 9:08
*/ */
@RestController @RestController
@RequestMapping(value = "/business-service/api/Australia", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Australia", produces = "application/json;charset=UTF-8")
@ -28,9 +28,9 @@ public class AustraliaMiddleEastController
/** /**
* 查询方法 * 查询方法
* @param response * @param response 请求头
* @param request * @param request 客户端请求
* @return * @return 实体类
*/ */
@RequestMapping(value = "/SelectAustralia",method = {RequestMethod.POST}) @RequestMapping(value = "/SelectAustralia",method = {RequestMethod.POST})
public AjaxResult SelectAustralia(HttpServletResponse response, HttpServletRequest request) public AjaxResult SelectAustralia(HttpServletResponse response, HttpServletRequest request)
@ -41,8 +41,8 @@ public class AustraliaMiddleEastController
/** /**
* 删除方法 * 删除方法
* @param ID * @param ID 单据id
* @return * @return 状态码
*/ */
@RequestMapping(value = "/DelAustralia",method = {RequestMethod.POST}) @RequestMapping(value = "/DelAustralia",method = {RequestMethod.POST})
public AjaxResult DelAustralia(@Param("ID") String ID) public AjaxResult DelAustralia(@Param("ID") String ID)
@ -58,12 +58,13 @@ public class AustraliaMiddleEastController
/** /**
* 新增方法 * 新增方法
* @param eastVOS * @param eastVOS 新增实体类
* @return * @return 状态码
*/ */
@RequestMapping(value = "/IntoAustralia",method = {RequestMethod.POST}) @RequestMapping(value = "/IntoAustralia",method = {RequestMethod.POST})
public AjaxResult IntoAustralia(AustraliaMiddleEastVO eastVOS) public AjaxResult IntoAustralia(@RequestBody AustraliaMiddleEastVO eastVOS)
{ {
eastVOS.setCreateTime(LocalDateTime.now());
int NUM = australiaMiddleEastService.IntoAustralia(eastVOS); int NUM = australiaMiddleEastService.IntoAustralia(eastVOS);
if (NUM>0) if (NUM>0)
{ {

View File

@ -7,6 +7,7 @@ import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.service_yada.IGlobalTypeService; import com.ruoyi.system.service_yada.IGlobalTypeService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; 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.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -14,12 +15,11 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
*全球各类型占比 *全球各类型占比
* @Author: JinSheng Song
* @Date: 2022/5/11 9:05
*/ */
@RestController @RestController
@RequestMapping("/monitor/clobal") @RequestMapping("/monitor/clobal")
@ -29,9 +29,9 @@ public class GlobalTypeController {
/** /**
* 查询方法 * 查询方法
* @param response * @param response 响应头
* @param request * @param request 客户端请求
* @return * @return 参数类
*/ */
@RequestMapping(value = "/selectGlobalType",method = {RequestMethod.POST}) @RequestMapping(value = "/selectGlobalType",method = {RequestMethod.POST})
public AjaxResult selectGlobalType(HttpServletResponse response, HttpServletRequest request) public AjaxResult selectGlobalType(HttpServletResponse response, HttpServletRequest request)
@ -42,8 +42,8 @@ public class GlobalTypeController {
/** /**
* 删除方法 * 删除方法
* @param ID * @param ID 单据id
* @return * @return 状态码
*/ */
@RequestMapping(value = "/DelGlobalType",method = {RequestMethod.POST}) @RequestMapping(value = "/DelGlobalType",method = {RequestMethod.POST})
public AjaxResult DelGlobalType(@Param("ID") String ID) public AjaxResult DelGlobalType(@Param("ID") String ID)
@ -59,12 +59,13 @@ public class GlobalTypeController {
/** /**
* 新增方法 * 新增方法
* @param eastVOS * @param eastVOS 新增实体类
* @return * @return 状态码
*/ */
@RequestMapping(value = "/IntoGlobalType",method = {RequestMethod.POST}) @RequestMapping(value = "/IntoGlobalType",method = {RequestMethod.POST})
public AjaxResult IntoGlobalType(GlobalTypeVO eastVOS) public AjaxResult IntoGlobalType(@RequestBody GlobalTypeVO eastVOS)
{ {
eastVOS.setCreateTime(LocalDateTime.now());
int NUM = typeService.IntoGlobalType(eastVOS); int NUM = typeService.IntoGlobalType(eastVOS);
if (NUM>0) if (NUM>0)
{ {

View File

@ -7,6 +7,7 @@ import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.service_yada.IOceanTemperatureService; import com.ruoyi.system.service_yada.IOceanTemperatureService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; 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.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -14,12 +15,11 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
* 海洋表面温度监测 * 海洋表面温度监测
* @Author: JinSheng Song
* @Date: 2022/5/11 9:13
*/ */
@RestController @RestController
@RequestMapping(value = "/business-service/api/Ocean", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Ocean", produces = "application/json;charset=UTF-8")
@ -29,9 +29,9 @@ public class OceanTemperatureController {
/** /**
* 查询方法 * 查询方法
* @param response * @param response 响应头
* @param request * @param request 客户端请求
* @return * @return 参数类
*/ */
@RequestMapping(value = "/selectOcean",method = {RequestMethod.POST}) @RequestMapping(value = "/selectOcean",method = {RequestMethod.POST})
public AjaxResult selectOcean(HttpServletResponse response, HttpServletRequest request) public AjaxResult selectOcean(HttpServletResponse response, HttpServletRequest request)
@ -42,8 +42,8 @@ public class OceanTemperatureController {
/** /**
* 删除方法 * 删除方法
* @param ID * @param ID 单据id
* @return * @return 状态码
*/ */
@RequestMapping(value = "/DelOcean",method = {RequestMethod.POST}) @RequestMapping(value = "/DelOcean",method = {RequestMethod.POST})
public AjaxResult DelOcean(@Param("ID") String ID) public AjaxResult DelOcean(@Param("ID") String ID)
@ -59,12 +59,13 @@ public class OceanTemperatureController {
/** /**
* 新增方法 * 新增方法
* @param eastVOS * @param eastVOS 新增实体类
* @return * @return 状态码
*/ */
@RequestMapping(value = "/IntoAustralia",method = {RequestMethod.POST}) @RequestMapping(value = "/IntoAustralia",method = {RequestMethod.POST})
public AjaxResult IntoOcean(OceanTemperatureVO eastVOS) public AjaxResult IntoOcean(@RequestBody OceanTemperatureVO eastVOS)
{ {
eastVOS.setCreateTime(LocalDateTime.now());
int NUM = temperatureService.IntoOcean(eastVOS); int NUM = temperatureService.IntoOcean(eastVOS);
if (NUM>0) if (NUM>0)
{ {

View File

@ -5,6 +5,7 @@ import com.ruoyi.system.service_yada.IRegionVGIService;
import com.ruoyi.system.domain_yada.RegionVGIVO; import com.ruoyi.system.domain_yada.RegionVGIVO;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; 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.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
@ -13,12 +14,11 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
* 各区域VGI * 各区域VGI
* @Author: JinSheng Song
* @Date: 2022/5/11 9:08
*/ */
@RestController @RestController
@RequestMapping(value = "/business-service/api/orderMng", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/orderMng", produces = "application/json;charset=UTF-8")
@ -28,9 +28,9 @@ public class RegionVGIController
private IRegionVGIService regionVGIService; private IRegionVGIService regionVGIService;
/** /**
* 查询方法 * 查询方法
* @param response * @param response 响应头
* @param request * @param request 客户端请求
* @return * @return 参数类
*/ */
@RequestMapping(value = "/SelectRegion",method = {RequestMethod.POST}) @RequestMapping(value = "/SelectRegion",method = {RequestMethod.POST})
public AjaxResult SelectRegion(HttpServletResponse response, HttpServletRequest request) public AjaxResult SelectRegion(HttpServletResponse response, HttpServletRequest request)
@ -41,8 +41,8 @@ public class RegionVGIController
/** /**
* 删除方法 * 删除方法
* @param ID * @param ID 单据id
* @return * @return 状态码
*/ */
@RequestMapping(value = "/DelRegion",method = {RequestMethod.POST}) @RequestMapping(value = "/DelRegion",method = {RequestMethod.POST})
public AjaxResult DelRegion(@Param("ID") String ID) public AjaxResult DelRegion(@Param("ID") String ID)
@ -58,12 +58,13 @@ public class RegionVGIController
/** /**
* 新增方法 * 新增方法
* @param vgivo * @param vgivo 新增实体类
* @return * @return 状态码
*/ */
@RequestMapping(value = "/IntoRegion",method = {RequestMethod.POST}) @RequestMapping(value = "/IntoRegion",method = {RequestMethod.POST})
public AjaxResult IntoRegion(RegionVGIVO vgivo) public AjaxResult IntoRegion(@RequestBody RegionVGIVO vgivo)
{ {
vgivo.setCreatedTime(LocalDateTime.now());
int NUM = regionVGIService.IntoRegion(vgivo); int NUM = regionVGIService.IntoRegion(vgivo);
if (NUM>0) if (NUM>0)
{ {

View File

@ -8,6 +8,7 @@ import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.service_yada.IRegionalSystemService; import com.ruoyi.system.service_yada.IRegionalSystemService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; 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.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -15,12 +16,11 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
* 区域生态系统 * 区域生态系统
* @Author: JinSheng Song
* @Date: 2022/5/11 9:12
*/ */
@RestController @RestController
@RequestMapping(value = "/business-service/api/Regional", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Regional", produces = "application/json;charset=UTF-8")
@ -30,9 +30,9 @@ public class RegionalSystemController {
/** /**
* 查询方法 * 查询方法
* @param response * @param response 响应头
* @param request * @param request 客户端请求
* @return * @return 参数类
*/ */
@RequestMapping(value = "/selectRegional",method = {RequestMethod.POST}) @RequestMapping(value = "/selectRegional",method = {RequestMethod.POST})
public AjaxResult selectRegional(HttpServletResponse response, HttpServletRequest request) public AjaxResult selectRegional(HttpServletResponse response, HttpServletRequest request)
@ -43,8 +43,8 @@ public class RegionalSystemController {
/** /**
* 删除方法 * 删除方法
* @param ID * @param ID 单据id
* @return * @return 状态码
*/ */
@RequestMapping(value = "/DelRegional",method = {RequestMethod.POST}) @RequestMapping(value = "/DelRegional",method = {RequestMethod.POST})
public AjaxResult DelRegional(@Param("ID") String ID) public AjaxResult DelRegional(@Param("ID") String ID)
@ -60,12 +60,13 @@ public class RegionalSystemController {
/** /**
* 新增方法 * 新增方法
* @param eastVOS * @param eastVOS 新增实体类
* @return * @return 状态码
*/ */
@RequestMapping(value = "/IntoRegional",method = {RequestMethod.POST}) @RequestMapping(value = "/IntoRegional",method = {RequestMethod.POST})
public AjaxResult IntoRegional(RegionalSystemVO eastVOS) public AjaxResult IntoRegional(@RequestBody RegionalSystemVO eastVOS)
{ {
eastVOS.setCreateTime(LocalDateTime.now());
int NUM = systemService.IntoRegional(eastVOS); int NUM = systemService.IntoRegional(eastVOS);
if (NUM>0) if (NUM>0)
{ {

View File

@ -2,8 +2,6 @@ package com.ruoyi.web.controller.yada;
/** /**
* 专题报告 * 专题报告
* @Author: JinSheng Song
* @Date: 2022/5/11 11:10
*/ */
public class SpecialReportController { public class SpecialReportController {
} }

View File

@ -4,6 +4,7 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain_yada.ThematicMapDomain; import com.ruoyi.system.domain_yada.ThematicMapDomain;
import com.ruoyi.system.service_yada.ThematicMapService; import com.ruoyi.system.service_yada.ThematicMapService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -11,12 +12,11 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
* 中国城市监测 * 中国城市监测
* @Author: JinSheng Song
* @Date: 2022/5/11 10:55
*/ */
@RestController @RestController
@RequestMapping(value = "/thematic-map") @RequestMapping(value = "/thematic-map")
@ -27,9 +27,9 @@ public class ThematicMapController {
/** /**
* 查询方法 * 查询方法
* @param response * @param response 响应头
* @param request * @param request 客户端请求
* @return * @return 参数类
*/ */
@RequestMapping(value = "/get/all",method = {RequestMethod.GET}) @RequestMapping(value = "/get/all",method = {RequestMethod.GET})
public AjaxResult selectAllThematicMap(HttpServletResponse response, HttpServletRequest request) public AjaxResult selectAllThematicMap(HttpServletResponse response, HttpServletRequest request)
@ -40,8 +40,8 @@ public class ThematicMapController {
/** /**
* 删除方法 * 删除方法
* @param id * @param id 单据id
* @return * @return 状态码
*/ */
@RequestMapping(value = "/delete",method = {RequestMethod.DELETE}) @RequestMapping(value = "/delete",method = {RequestMethod.DELETE})
public AjaxResult deleteThematicMap(@Param("id") Long id) public AjaxResult deleteThematicMap(@Param("id") Long id)
@ -55,12 +55,13 @@ public class ThematicMapController {
/** /**
* 新增方法 * 新增方法
* @param thematicMapDomain * @param thematicMapDomain 新增实体类
* @return * @return 状态码
*/ */
@RequestMapping(value = "/add",method = {RequestMethod.POST}) @RequestMapping(value = "/add",method = {RequestMethod.POST})
public AjaxResult saveThematicMap(ThematicMapDomain thematicMapDomain) public AjaxResult saveThematicMap(@RequestBody ThematicMapDomain thematicMapDomain)
{ {
thematicMapDomain.setCreatedTime(LocalDateTime.now());
int num = thematicMapService.save(thematicMapDomain); int num = thematicMapService.save(thematicMapDomain);
if (num>0) { if (num>0) {
return AjaxResult.success(); return AjaxResult.success();

View File

@ -7,6 +7,7 @@ import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.service_yada.IUrbanService; import com.ruoyi.system.service_yada.IUrbanService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; 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.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -14,12 +15,11 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
* 中国城市监测 * 中国城市监测
* @Author: JinSheng Song
* @Date: 2022/5/11 10:55
*/ */
@RestController @RestController
@RequestMapping(value = "/business-service/api/Urban", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Urban", produces = "application/json;charset=UTF-8")
@ -29,9 +29,9 @@ public class UrbanController {
/** /**
* 查询方法 * 查询方法
* @param response * @param response 响应头
* @param request * @param request 客户端请求
* @return * @return 参数类
*/ */
@RequestMapping(value = "/selectUrban",method = {RequestMethod.POST}) @RequestMapping(value = "/selectUrban",method = {RequestMethod.POST})
public AjaxResult selectUrban(HttpServletResponse response, HttpServletRequest request) public AjaxResult selectUrban(HttpServletResponse response, HttpServletRequest request)
@ -42,8 +42,8 @@ public class UrbanController {
/** /**
* 删除方法 * 删除方法
* @param ID * @param ID 单据id
* @return * @return 状态码
*/ */
@RequestMapping(value = "/DelUrban",method = {RequestMethod.POST}) @RequestMapping(value = "/DelUrban",method = {RequestMethod.POST})
public AjaxResult DelUrban(@Param("ID") String ID) public AjaxResult DelUrban(@Param("ID") String ID)
@ -59,12 +59,13 @@ public class UrbanController {
/** /**
* 新增方法 * 新增方法
* @param eastVOS * @param eastVOS 新增实体类
* @return * @return 状态码
*/ */
@RequestMapping(value = "/IntoUrban",method = {RequestMethod.POST}) @RequestMapping(value = "/IntoUrban",method = {RequestMethod.POST})
public AjaxResult IntoUrban(UrbanVO eastVOS) public AjaxResult IntoUrban(@RequestBody UrbanVO eastVOS)
{ {
eastVOS.setCreateTime(LocalDateTime.now());
int NUM = urbanService.IntoUrban(eastVOS); int NUM = urbanService.IntoUrban(eastVOS);
if (NUM>0) if (NUM>0)
{ {

View File

@ -7,6 +7,7 @@ import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
import com.ruoyi.system.service_yada.IVegetationCoverageService; import com.ruoyi.system.service_yada.IVegetationCoverageService;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired; 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.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -14,12 +15,11 @@ import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
* 平均植被覆盖度和净初级生产力 * 平均植被覆盖度和净初级生产力
* @Author: JinSheng Song
* @Date: 2022/5/11 10:56
*/ */
@RestController @RestController
@RequestMapping(value = "/business-service/api/Vegetation", produces = "application/json;charset=UTF-8") @RequestMapping(value = "/business-service/api/Vegetation", produces = "application/json;charset=UTF-8")
@ -29,9 +29,9 @@ public class VegetationCoverageController {
/** /**
* 查询方法 * 查询方法
* @param response * @param response 响应头
* @param request * @param request 客户端请求
* @return * @return 参数类
*/ */
@RequestMapping(value = "/selectVegetation",method = {RequestMethod.POST}) @RequestMapping(value = "/selectVegetation",method = {RequestMethod.POST})
public AjaxResult selectVegetation(HttpServletResponse response, HttpServletRequest request) public AjaxResult selectVegetation(HttpServletResponse response, HttpServletRequest request)
@ -42,8 +42,8 @@ public class VegetationCoverageController {
/** /**
* 删除方法 * 删除方法
* @param ID * @param ID 单据id
* @return * @return 状态码
*/ */
@RequestMapping(value = "/DelVegetation",method = {RequestMethod.POST}) @RequestMapping(value = "/DelVegetation",method = {RequestMethod.POST})
public AjaxResult DelVegetation(@Param("ID") String ID) public AjaxResult DelVegetation(@Param("ID") String ID)
@ -59,12 +59,13 @@ public class VegetationCoverageController {
/** /**
* 新增方法 * 新增方法
* @param eastVOS * @param eastVOS 新增实体类
* @return * @return 状态码
*/ */
@RequestMapping(value = "/IntoVegetation",method = {RequestMethod.POST}) @RequestMapping(value = "/IntoVegetation",method = {RequestMethod.POST})
public AjaxResult IntoVegetation(VegetationCoverageVO eastVOS) public AjaxResult IntoVegetation(@RequestBody VegetationCoverageVO eastVOS)
{ {
eastVOS.setCreateTime(LocalDateTime.now());
int NUM = coverageService.IntoVegetation(eastVOS); int NUM = coverageService.IntoVegetation(eastVOS);
if (NUM>0) if (NUM>0)
{ {

View File

@ -20,10 +20,6 @@ public class AustraliaMiddleEastVO extends SysBaseEntity
private Double vaiAnomolies; private Double vaiAnomolies;
private String createdBy;
private LocalDate createdTime;
public String getId() { public String getId() {
return id; return id;
} }
@ -72,19 +68,4 @@ public class AustraliaMiddleEastVO extends SysBaseEntity
this.vaiAnomolies = vaiAnomolies; this.vaiAnomolies = vaiAnomolies;
} }
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;
}
} }

View File

@ -2,6 +2,7 @@ package com.ruoyi.system.domain_yada;
import java.io.Serializable; import java.io.Serializable;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
* @Author: JinSheng Song * @Author: JinSheng Song
@ -26,7 +27,7 @@ public class RegionVGIVO implements Serializable {
private String createdBy; private String createdBy;
private LocalDate createdTime; private LocalDateTime createdTime;
public String getId() { public String getId() {
return id; return id;
@ -100,11 +101,11 @@ public class RegionVGIVO implements Serializable {
this.createdBy = createdBy; this.createdBy = createdBy;
} }
public LocalDate getCreatedTime() { public LocalDateTime getCreatedTime() {
return createdTime; return createdTime;
} }
public void setCreatedTime(LocalDate createdTime) { public void setCreatedTime(LocalDateTime createdTime) {
this.createdTime = createdTime; this.createdTime = createdTime;
} }

View File

@ -34,6 +34,6 @@ public class AorestCoverageServiceimpl implements IAorestCoverageService {
@Override @Override
public Integer IntoAorestCoverage(AorestCoverageVO eastVO) { public Integer IntoAorestCoverage(AorestCoverageVO eastVO) {
return IntoAorestCoverage(eastVO); return coverageMapper.IntoAorestCoverage(eastVO);
} }
} }

View File

@ -44,19 +44,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
non_protected_lands , non_protected_lands ,
mountain, mountain,
non_mountain, non_mountain,
created_by , created_by,
created_time created_time
) VALUES ( ) VALUES (
#{id,jdbcType=VARCHAR}, #{id,jdbcType=VARCHAR},
#{particularYear,jdbcType=VARCHAR}, #{particularYear,jdbcType=VARCHAR},
#{region,jdbcType=VARCHAR}, #{region,jdbcType=VARCHAR},
#{regionEn,jdbcType=VARCHAR}, #{regionEn,jdbcType=VARCHAR},
#{protectedLands,jdbcType=DOUBLE}, #{protectedLands,jdbcType=DOUBLE},
#{nonProtectedLand,jdbcType=DOUBLE}, #{nonProtectedLands,jdbcType=DOUBLE},
#{mountain,jdbcType=DOUBLE}, #{mountain,jdbcType=DOUBLE},
#{nonMountain,jdbcType=DOUBLE}, #{nonMountain,jdbcType=DOUBLE},
#{createBy,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=DATE} #{createTime,jdbcType=TIMESTAMP}
) )
]]> ]]>
</insert> </insert>

View File

@ -5,20 +5,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper"> <mapper namespace="com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper">
<resultMap id="RM_AustraliaMiddleEast" type="com.ruoyi.system.domain_yada.AustraliaMiddleEastVO"> <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="id" column="ID"/> <result property="id" column="ID"/>
<result property="sstAnomalyIndex" column="sst_anomaly_index"/> <result property="sstAnomalyIndex" column="sst_anomaly_index"/>
<result property="temperatureAnomolies" column="temperature_anomolies"/> <result property="temperatureAnomolies" column="temperature_anomolies"/>
<result property="precipitationAnomolies" column="precipitation_anomolies"/> <result property="precipitationAnomolies" column="precipitation_anomolies"/>
<result property="vaiAnomolies" column="vai_anomolies"/> <result property="vaiAnomolies" column="vai_anomolies"/>
<result property="createdBy" column="created_by"/> <result property="createBy" column="created_by"/>
<result property="createdTime" column="created_time"/> <result property="createTime" column="created_time"/>
</resultMap> </resultMap>
<sql id="columns"> <sql id="columns">
<![CDATA[ <![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
]]> ]]>
</sql> </sql>
@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<![CDATA[ <![CDATA[
INSERT INTO central_and_eastern_australia ( INSERT INTO central_and_eastern_australia (
ID , ID ,
year_month , particular_month ,
sst_anomaly_index , sst_anomaly_index ,
temperature_anomolies , temperature_anomolies ,
precipitation_anomolies , precipitation_anomolies ,
@ -44,13 +44,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
created_time created_time
) VALUES ( ) VALUES (
#{id,jdbcType=VARCHAR}, #{id,jdbcType=VARCHAR},
#{yearMonth,jdbcType=DATE}, #{yearMonth,jdbcType=TIMESTAMP},
#{sstAnomalyIndex,jdbcType=DOUBLE}, #{sstAnomalyIndex,jdbcType=DOUBLE},
#{temperatureAnomolies,jdbcType=DOUBLE}, #{temperatureAnomolies,jdbcType=DOUBLE},
#{precipitationAnomolies,jdbcType=DOUBLE}, #{precipitationAnomolies,jdbcType=DOUBLE},
#{vaiAnomolies,jdbcType=DOUBLE}, #{vaiAnomolies,jdbcType=DOUBLE},
#{createdBy,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{createdTime,jdbcType=DATE} #{createTime,jdbcType=TIMESTAMP}
) )
]]> ]]>
</insert> </insert>