Compare commits
30 Commits
master
...
43ee95a198
Author | SHA1 | Date | |
---|---|---|---|
43ee95a198 | |||
7c5e92246f | |||
fafe483b53 | |||
6148ca9ae8 | |||
3006b3c751 | |||
e9e8ea36b7 | |||
c9ee01dd1f | |||
2de946adb8 | |||
a4976eff13 | |||
bd12230d7e | |||
42e4acf3dd | |||
498a502c02 | |||
5c0a93f679 | |||
264a5d910f | |||
15bc756bd4 | |||
c424d5cd89 | |||
9b784c99ed | |||
5041f3f92f | |||
f4caf10bd3 | |||
bb6fb94038 | |||
7cfae514ea | |||
d262ec6b72 | |||
a51c6872d8 | |||
afa068f477 | |||
c6fa415356 | |||
6006a9f18c | |||
1722abfae7 | |||
57db36e015 | |||
43e3d8cfea | |||
598860d544 |
@ -18,8 +18,7 @@ public class RuoYiApplication
|
|||||||
{
|
{
|
||||||
// System.setProperty("spring.devtools.restart.enabled", "false");
|
// System.setProperty("spring.devtools.restart.enabled", "false");
|
||||||
SpringApplication.run(RuoYiApplication.class, args);
|
SpringApplication.run(RuoYiApplication.class, args);
|
||||||
System.out.println();
|
System.out.println(" --->>>启动成功!<<<---");
|
||||||
System.out.println(" --->>>启动成功!<<<---");
|
|
||||||
// System.out.println("(♥◠‿◠)ノ゙ ლ(´ڡ`ლ)゙ \n" +
|
// System.out.println("(♥◠‿◠)ノ゙ ლ(´ڡ`ლ)゙ \n" +
|
||||||
// " .-------. ____ __ \n" +
|
// " .-------. ____ __ \n" +
|
||||||
// " | _ _ \\ \\ \\ / / \n" +
|
// " | _ _ \\ \\ \\ / / \n" +
|
||||||
|
@ -28,10 +28,10 @@ public class SysRegisterController extends BaseController
|
|||||||
@PostMapping("/register")
|
@PostMapping("/register")
|
||||||
public AjaxResult register(@RequestBody RegisterBody user)
|
public AjaxResult register(@RequestBody RegisterBody user)
|
||||||
{
|
{
|
||||||
// if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser"))))
|
if (!("true".equals(configService.selectConfigByKey("sys.account.registerUser"))))
|
||||||
// {
|
{
|
||||||
// return error("当前系统没有开启注册功能!");
|
return error("当前系统没有开启注册功能!");
|
||||||
// }
|
}
|
||||||
String msg = registerService.register(user);
|
String msg = registerService.register(user);
|
||||||
return StringUtils.isEmpty(msg) ? success() : error(msg);
|
return StringUtils.isEmpty(msg) ? success() : error(msg);
|
||||||
}
|
}
|
||||||
|
@ -47,9 +47,9 @@ public class AorestCoverageController {
|
|||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/selectAorestCoverage",method = {RequestMethod.GET})
|
@RequestMapping(value = "/selectAorestCoverage",method = {RequestMethod.GET})
|
||||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||||
public AjaxResult selectAorestCoverage()
|
public AjaxResult selectAorestCoverage( @RequestBody AorestCoverageVO coverageVO)
|
||||||
{
|
{
|
||||||
List<AorestCoverageVO> eastVOSList= service.selectAorestCoverage();
|
List<AorestCoverageVO> eastVOSList= service.selectAorestCoverage(coverageVO.getRegion(),coverageVO.getParticularYear());
|
||||||
return AjaxResult.success(eastVOSList);
|
return AjaxResult.success(eastVOSList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,9 +36,9 @@ public class RegionVGIController
|
|||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/SelectRegion",method = {RequestMethod.GET})
|
@RequestMapping(value = "/SelectRegion",method = {RequestMethod.GET})
|
||||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||||
public AjaxResult SelectRegion()
|
public AjaxResult SelectRegion(@RequestBody RegionVGIVO regionVGIVO)
|
||||||
{
|
{
|
||||||
List<RegionVGIVO> vgivost= regionVGIService.selectRegion();
|
List<RegionVGIVO> vgivost= regionVGIService.selectRegion(regionVGIVO.getTypeName(),regionVGIVO.getParticularYear());
|
||||||
return AjaxResult.success(vgivost);
|
return AjaxResult.success(vgivost);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,9 +9,16 @@ import com.ruoyi.system.service_yada.IRegionalSystemService;
|
|||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.web.bind.annotation.*;
|
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.annotation.Resource;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -31,9 +38,9 @@ public class RegionalSystemController {
|
|||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/selectRegional",method = {RequestMethod.GET})
|
@RequestMapping(value = "/selectRegional",method = {RequestMethod.GET})
|
||||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||||
public AjaxResult selectRegional(@RequestParam("region") String region)
|
public AjaxResult selectRegional(@RequestBody RegionalSystemVO response)
|
||||||
{
|
{
|
||||||
List<RegionalSystemVO> eastVOSList= systemService.selectRegional(region);
|
List<RegionalSystemVO> eastVOSList= systemService.selectRegional(response.getRegion(),response.getParticularYear());
|
||||||
return AjaxResult.success(eastVOSList);
|
return AjaxResult.success(eastVOSList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +52,7 @@ public class RegionalSystemController {
|
|||||||
@RequestMapping(value = "/DelRegional",method = {RequestMethod.DELETE})
|
@RequestMapping(value = "/DelRegional",method = {RequestMethod.DELETE})
|
||||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
||||||
public AjaxResult DelRegional(@RequestParam("ID") String ID)
|
public AjaxResult DelRegional(@Param("ID") String ID)
|
||||||
{
|
{
|
||||||
int NUM = systemService.DelRegional(ID);
|
int NUM = systemService.DelRegional(ID);
|
||||||
if (NUM>0)
|
if (NUM>0)
|
||||||
|
@ -45,11 +45,11 @@ public class ThematicMapController {
|
|||||||
@ApiResponse(code =403,message = "权限不足"),
|
@ApiResponse(code =403,message = "权限不足"),
|
||||||
@ApiResponse(code =404,message = "未找到")
|
@ApiResponse(code =404,message = "未找到")
|
||||||
})
|
})
|
||||||
@RequestMapping(value = "/get/all",method = {RequestMethod.POST})
|
@RequestMapping(value = "/get/all",method = {RequestMethod.GET})
|
||||||
public AjaxResult selectAllThematicMap(HttpServletResponse response,@RequestBody ThematicMapDomain thematicMapDomain)
|
public AjaxResult selectAllThematicMap(HttpServletResponse response,@RequestBody ThematicMapDomain thematicMapDomain)
|
||||||
{
|
{
|
||||||
List<ThematicMapDomain> res= thematicMapService.selectAll(thematicMapDomain.getPictureType(),
|
List<ThematicMapDomain> res= thematicMapService.selectAll(thematicMapDomain.getPictureTime(),
|
||||||
thematicMapDomain.getPictureTypeOne(),thematicMapDomain.getPictureTypeTwo());
|
thematicMapDomain.getPictureZh());
|
||||||
return AjaxResult.success(res);
|
return AjaxResult.success(res);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -33,13 +33,14 @@ public class VegetationCoverageController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询方法
|
* 查询方法
|
||||||
|
* @param response 响应头
|
||||||
* @return 参数类
|
* @return 参数类
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/selectVegetation",method = {RequestMethod.GET})
|
@RequestMapping(value = "/selectVegetation",method = {RequestMethod.GET})
|
||||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||||
public AjaxResult selectVegetation()
|
public AjaxResult selectVegetation(HttpServletResponse response,@RequestBody VegetationCoverageVO coverageVO)
|
||||||
{
|
{
|
||||||
List<VegetationCoverageVO> eastVOSList= coverageService.selectVegetation();
|
List<VegetationCoverageVO> eastVOSList= coverageService.selectVegetation(coverageVO.getRegion(),coverageVO.getParticularYear());
|
||||||
return AjaxResult.success(eastVOSList);
|
return AjaxResult.success(eastVOSList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,17 +2,16 @@
|
|||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
# driverClassName: com.mysql.cj.jdbc.Driver
|
# driverClassName: com.mysql.cj.jdbc.Driver
|
||||||
driver-class-name: org.postgresql.Driver
|
driver-class-name: org.postgresql.Driver
|
||||||
druid:
|
druid:
|
||||||
master:
|
master:
|
||||||
#url: jdbc:postgresql://47.243.79.66:5432/yada?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai
|
url: jdbc:postgresql://192.168.2.9:5432/yada?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai
|
||||||
#url: jdbc:postgresql://192.168.2.9:5432/yada?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai
|
username: sjs
|
||||||
# username: postgres
|
password: song5325
|
||||||
# password: postgres
|
# url: jdbc:mysql://192.168.2.9:3306/nuoyi?AllowPublicKeyRetrieval=True&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||||
url: jdbc:postgresql://118.195.242.28:5432/yada?AllowPublicKeyRetrieval=True&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
|
# username: saas
|
||||||
username: gty
|
# password: XKrs123.
|
||||||
password: 308525
|
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
slave:
|
slave:
|
||||||
# 从数据源开关/默认关闭
|
# 从数据源开关/默认关闭
|
||||||
@ -35,7 +34,7 @@ spring:
|
|||||||
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
||||||
maxEvictableIdleTimeMillis: 900000
|
maxEvictableIdleTimeMillis: 900000
|
||||||
# 配置检测连接是否有效select * from pg_stat_activity
|
# 配置检测连接是否有效select * from pg_stat_activity
|
||||||
# validationQuery: SELECT 1 FROM DUAL
|
# validationQuery: SELECT 1 FROM DUAL
|
||||||
validationQuery: SELECT version()
|
validationQuery: SELECT version()
|
||||||
testWhileIdle: true
|
testWhileIdle: true
|
||||||
testOnBorrow: false
|
testOnBorrow: false
|
||||||
|
@ -9,7 +9,7 @@ ruoyi:
|
|||||||
# 实例演示开关
|
# 实例演示开关
|
||||||
demoEnabled: true
|
demoEnabled: true
|
||||||
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
||||||
profile: /home/gty/ruoyi/uploadPath
|
profile: D:/ruoyi/uploadPath
|
||||||
# 获取ip地址开关
|
# 获取ip地址开关
|
||||||
addressEnabled: false
|
addressEnabled: false
|
||||||
# 验证码类型 math 数组计算 char 字符验证
|
# 验证码类型 math 数组计算 char 字符验证
|
||||||
@ -19,7 +19,6 @@ ruoyi:
|
|||||||
server:
|
server:
|
||||||
# 服务器的HTTP端口,默认为8080
|
# 服务器的HTTP端口,默认为8080
|
||||||
port: 8080
|
port: 8080
|
||||||
#port: 6061
|
|
||||||
servlet:
|
servlet:
|
||||||
# 应用的访问路径
|
# 应用的访问路径
|
||||||
context-path: /
|
context-path: /
|
||||||
@ -66,7 +65,7 @@ spring:
|
|||||||
# 数据库索引
|
# 数据库索引
|
||||||
database: 0
|
database: 0
|
||||||
# 密码
|
# 密码
|
||||||
password: '*&jkjusWETO(^ses%i'
|
password: sdust2020
|
||||||
# 连接超时时间
|
# 连接超时时间
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
lettuce:
|
lettuce:
|
||||||
@ -135,4 +134,3 @@ xss:
|
|||||||
excludes: /system/notice/*
|
excludes: /system/notice/*
|
||||||
# 匹配链接
|
# 匹配链接
|
||||||
urlPatterns: /system/*,/monitor/*,/tool/*
|
urlPatterns: /system/*,/monitor/*,/tool/*
|
||||||
|
|
||||||
|
@ -41,12 +41,12 @@ public class SysRegisterService
|
|||||||
{
|
{
|
||||||
String msg = "", username = registerBody.getUsername(), password = registerBody.getPassword();
|
String msg = "", username = registerBody.getUsername(), password = registerBody.getPassword();
|
||||||
|
|
||||||
// boolean captchaOnOff = configService.selectCaptchaOnOff();
|
boolean captchaOnOff = configService.selectCaptchaOnOff();
|
||||||
// // 验证码开关
|
// 验证码开关
|
||||||
// if (captchaOnOff)
|
if (captchaOnOff)
|
||||||
// {
|
{
|
||||||
// validateCaptcha(username, registerBody.getCode(), registerBody.getUuid());
|
validateCaptcha(username, registerBody.getCode(), registerBody.getUuid());
|
||||||
// }
|
}
|
||||||
|
|
||||||
if (StringUtils.isEmpty(username))
|
if (StringUtils.isEmpty(username))
|
||||||
{
|
{
|
||||||
@ -56,16 +56,16 @@ public class SysRegisterService
|
|||||||
{
|
{
|
||||||
msg = "用户密码不能为空";
|
msg = "用户密码不能为空";
|
||||||
}
|
}
|
||||||
// else if (username.length() < UserConstants.USERNAME_MIN_LENGTH
|
else if (username.length() < UserConstants.USERNAME_MIN_LENGTH
|
||||||
// || username.length() > UserConstants.USERNAME_MAX_LENGTH)
|
|| username.length() > UserConstants.USERNAME_MAX_LENGTH)
|
||||||
// {
|
{
|
||||||
// msg = "账户长度必须在2到20个字符之间";
|
msg = "账户长度必须在2到20个字符之间";
|
||||||
// }
|
}
|
||||||
// else if (password.length() < UserConstants.PASSWORD_MIN_LENGTH
|
else if (password.length() < UserConstants.PASSWORD_MIN_LENGTH
|
||||||
// || password.length() > UserConstants.PASSWORD_MAX_LENGTH)
|
|| password.length() > UserConstants.PASSWORD_MAX_LENGTH)
|
||||||
// {
|
{
|
||||||
// msg = "密码长度必须在5到20个字符之间";
|
msg = "密码长度必须在5到20个字符之间";
|
||||||
// }
|
}
|
||||||
else if (UserConstants.NOT_UNIQUE.equals(userService.checkUserNameUnique(username)))
|
else if (UserConstants.NOT_UNIQUE.equals(userService.checkUserNameUnique(username)))
|
||||||
{
|
{
|
||||||
msg = "保存用户'" + username + "'失败,注册账号已存在";
|
msg = "保存用户'" + username + "'失败,注册账号已存在";
|
||||||
@ -89,6 +89,7 @@ public class SysRegisterService
|
|||||||
}
|
}
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验验证码
|
* 校验验证码
|
||||||
*
|
*
|
||||||
|
@ -13,8 +13,8 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface AorestCoverageMapper {
|
public interface AorestCoverageMapper {
|
||||||
|
|
||||||
List<AorestCoverageVO> selectAorestCoverage(/*@Param("region") String region,
|
List<AorestCoverageVO> selectAorestCoverage(@Param("region") String region,
|
||||||
@Param("particularYear") String particularYear*/);
|
@Param("particularYear") String particularYear);
|
||||||
|
|
||||||
Integer DelAorestCoverage(@Param("id") String id);
|
Integer DelAorestCoverage(@Param("id") String id);
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface RegionVGIMapper {
|
public interface RegionVGIMapper {
|
||||||
|
|
||||||
List<RegionVGIVO> selectRegion(/*@Param("typeName") String typeName,
|
List<RegionVGIVO> selectRegion(@Param("typeName") String typeName,
|
||||||
@Param("particularYear") String particularYear*/);
|
@Param("particularYear") String particularYear);
|
||||||
|
|
||||||
Integer DelRegion(@Param("id") String id);
|
Integer DelRegion(@Param("id") String id);
|
||||||
|
|
||||||
|
@ -12,7 +12,8 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface RegionalSystemMapper {
|
public interface RegionalSystemMapper {
|
||||||
|
|
||||||
List<RegionalSystemVO> selectRegional(@Param("region") String region);
|
List<RegionalSystemVO> selectRegional(@Param("region") String region,
|
||||||
|
@Param("particularYear") String particularYear);
|
||||||
|
|
||||||
Integer DelRegional(@Param("id") String id);
|
Integer DelRegional(@Param("id") String id);
|
||||||
|
|
||||||
|
@ -17,9 +17,8 @@ public interface ThematicMapMapper {
|
|||||||
* 获取所有专题图
|
* 获取所有专题图
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<ThematicMapDomain> selectAllThematicMap(@Param("pictureType") String pictureType,
|
List<ThematicMapDomain> selectAllThematicMap(@Param("pictureTime") LocalDateTime pictureTime,
|
||||||
@Param("pictureTypeOne") String pictureTypeOne,
|
@Param("pictureZh") String pictureZh);
|
||||||
@Param("pictureTypeTwo") String pictureTypeTwo);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除专题图根据编号
|
* 删除专题图根据编号
|
||||||
|
@ -11,8 +11,8 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface VegetationCoverageMapper {
|
public interface VegetationCoverageMapper {
|
||||||
|
|
||||||
List<VegetationCoverageVO> selectVegetation(/*@Param("region") String region,
|
List<VegetationCoverageVO> selectVegetation(@Param("region") String region,
|
||||||
@Param("particularYear") String particularYear*/);
|
@Param("particularYear") String particularYear);
|
||||||
|
|
||||||
Integer DelVegetation(@Param("id") String id);
|
Integer DelVegetation(@Param("id") String id);
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface IAorestCoverageService {
|
public interface IAorestCoverageService {
|
||||||
|
|
||||||
public List<AorestCoverageVO> selectAorestCoverage(/*String region,String particularYear*/);
|
public List<AorestCoverageVO> selectAorestCoverage(String region,String particularYear);
|
||||||
|
|
||||||
public Integer DelAorestCoverage(String id);
|
public Integer DelAorestCoverage(String id);
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ public interface IRegionVGIService {
|
|||||||
* 查询
|
* 查询
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public List<RegionVGIVO> selectRegion(/*String typeName,String particularYear*/);
|
public List<RegionVGIVO> selectRegion(String typeName,String particularYear);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除
|
* 删除
|
||||||
|
@ -13,7 +13,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface IRegionalSystemService {
|
public interface IRegionalSystemService {
|
||||||
|
|
||||||
public List<RegionalSystemVO> selectRegional(String region);
|
public List<RegionalSystemVO> selectRegional(String region,String particularYear);
|
||||||
|
|
||||||
public Integer DelRegional(@Param("id") String id);
|
public Integer DelRegional(@Param("id") String id);
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface IVegetationCoverageService {
|
public interface IVegetationCoverageService {
|
||||||
|
|
||||||
public List<VegetationCoverageVO> selectVegetation(/*String region,String particularYear*/);
|
public List<VegetationCoverageVO> selectVegetation(String region,String particularYear);
|
||||||
|
|
||||||
public Integer DelVegetation(String id);
|
public Integer DelVegetation(String id);
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ public interface ThematicMapService {
|
|||||||
* 获取全部专题图
|
* 获取全部专题图
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<ThematicMapDomain> selectAll(String pictureType,String pictureTypeOne, String pictureTypeTwo);
|
List<ThematicMapDomain> selectAll(LocalDateTime pictureTime, String pictureZh);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除专题图根据编号
|
* 删除专题图根据编号
|
||||||
|
@ -26,8 +26,8 @@ public class AorestCoverageServiceimpl implements IAorestCoverageService {
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<AorestCoverageVO> selectAorestCoverage(/*String region,String particularYear*/) {
|
public List<AorestCoverageVO> selectAorestCoverage(String region,String particularYear) {
|
||||||
return coverageMapper.selectAorestCoverage(/*region,particularYear*/);
|
return coverageMapper.selectAorestCoverage(region,particularYear);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,8 +22,8 @@ public class RegionVGIServiceimpl implements IRegionVGIService {
|
|||||||
private RegionVGIMapper vgiMapper;
|
private RegionVGIMapper vgiMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<RegionVGIVO> selectRegion(/*String typeName,String particularYear*/) {
|
public List<RegionVGIVO> selectRegion(String typeName,String particularYear) {
|
||||||
return vgiMapper.selectRegion(/*typeName,particularYear*/);
|
return vgiMapper.selectRegion(typeName,particularYear);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -25,8 +25,8 @@ public class RegionalSystemServiceimpl implements IRegionalSystemService {
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<RegionalSystemVO> selectRegional(String region) {
|
public List<RegionalSystemVO> selectRegional(String region,String particularYear) {
|
||||||
return Regional.selectRegional(region);
|
return Regional.selectRegional(region,particularYear);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -25,8 +25,8 @@ public class ThematicMapServiceImpl implements ThematicMapService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<ThematicMapDomain> selectAll(String pictureType,String pictureTypeOne, String pictureTypeTwo){
|
public List<ThematicMapDomain> selectAll(LocalDateTime pictureTime,String pictureZh){
|
||||||
return thematicMapMapper.selectAllThematicMap(pictureType,pictureTypeOne,pictureTypeTwo);
|
return thematicMapMapper.selectAllThematicMap(pictureTime,pictureZh);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,8 +26,8 @@ public class VegetationCoverageServiceimpl implements IVegetationCoverageService
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<VegetationCoverageVO> selectVegetation(/*String region,String particularYear*/) {
|
public List<VegetationCoverageVO> selectVegetation(String region,String particularYear) {
|
||||||
return coverageMapper.selectVegetation(/*region,particularYear*/);
|
return coverageMapper.selectVegetation(region,particularYear);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -25,13 +25,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectAorestCoverage" resultMap="RM_AorestCoverage">
|
<select id="selectAorestCoverage" resultMap="RM_AorestCoverage">
|
||||||
SELECT <include refid="columns"/> FROM forest_coverage
|
SELECT <include refid="columns"/> FROM forest_coverage
|
||||||
<!-- WHERE 1=1-->
|
WHERE 1=1
|
||||||
<!-- <if test="particularYear!= null and particularYear !=''">-->
|
<if test="particularYear!= null and particularYear !=''">
|
||||||
<!-- AND particular_year = #{particularYear}-->
|
AND particular_year = #{particularYear}
|
||||||
<!-- </if>-->
|
</if>
|
||||||
<!-- <if test="region!= null and region !=''">-->
|
<if test="region!= null and region !=''">
|
||||||
<!-- AND region = #{typeName}-->
|
AND region = #{typeName}
|
||||||
<!-- </if>-->
|
</if>
|
||||||
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<delete id="DelAorestCoverage">
|
<delete id="DelAorestCoverage">
|
||||||
|
@ -26,15 +26,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectRegion" resultMap="RM_RegionVGI">
|
<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 !=''">
|
||||||
<!-- WHERE 1=1-->
|
AND particular_year = #{particularYear}
|
||||||
<!-- <if test="particularYear!= null and particularYear !=''">-->
|
</if>
|
||||||
<!-- AND particular_year = #{particularYear}-->
|
<if test="typeName!= null and typeName !=''">
|
||||||
<!-- </if>-->
|
AND type_name = #{typeName}
|
||||||
<!-- <if test="typeName!= null and typeName !=''">-->
|
</if>
|
||||||
<!-- AND type_name = #{typeName}-->
|
|
||||||
<!-- </if>-->
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<delete id="DelRegion">
|
<delete id="DelRegion">
|
||||||
|
@ -19,13 +19,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<sql id="columns">
|
<sql id="columns">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
id,region,region_en,type_conversion,type_conversion_en,proportion_of_changed_areas,particular_year,created_by,created_time
|
id,region,region_en,type_conversion,type_conversion_en,proportion_of_changed_areas,particular_year,createBy,createTime
|
||||||
]]>
|
]]>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectRegional" resultMap="RM_Regional">
|
<select id="selectRegional" resultMap="RM_Regional">
|
||||||
SELECT <include refid="columns"/> FROM proportion_of_ecosystem_type_transfer
|
SELECT <include refid="columns"/> FROM proportion_of_ecosystem_type_transfer
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
|
<if test="particularYear!= null and particularYear !=''">
|
||||||
|
AND particular_year = #{particularYear}
|
||||||
|
</if>
|
||||||
<if test="region!= null and region !=''">
|
<if test="region!= null and region !=''">
|
||||||
AND region = #{region}
|
AND region = #{region}
|
||||||
</if>
|
</if>
|
||||||
|
@ -28,14 +28,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectAllThematicMap" resultMap="RM_ThematicMap">
|
<select id="selectAllThematicMap" resultMap="RM_ThematicMap">
|
||||||
SELECT <include refid="columns"/> FROM thematic_map
|
SELECT <include refid="columns"/> FROM thematic_map
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
<if test="pictureType!= null and pictureType !=''">
|
<if test="pictureTime!= null and pictureTime !=''">
|
||||||
AND picture_type = #{pictureType}
|
AND picture_time = #{pictureTime}
|
||||||
</if>
|
</if>
|
||||||
<if test="pictureTypeOne!= null and pictureTypeOne !=''">
|
<if test="pictureZh!= null and pictureZh !=''">
|
||||||
AND picture_type_one = #{pictureTypeOne}
|
AND picture_zh = #{pictureZh}
|
||||||
</if>
|
|
||||||
<if test="pictureTypeTwo!= null and pictureTypeTwo !=''">
|
|
||||||
AND picture_type_two = #{pictureTypeTwo}
|
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -25,13 +25,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
|
|
||||||
<select id="selectVegetation" resultMap="RM_Vegetation">
|
<select id="selectVegetation" resultMap="RM_Vegetation">
|
||||||
SELECT <include refid="columns"/> FROM fvc_npp
|
SELECT <include refid="columns"/> FROM fvc_npp
|
||||||
<!-- WHERE 1=1-->
|
WHERE 1=1
|
||||||
<!-- <if test="particularYear!= null and particularYear !=''">-->
|
<if test="particularYear!= null and particularYear !=''">
|
||||||
<!-- AND particular_year = #{particularYear}-->
|
AND particular_year = #{particularYear}
|
||||||
<!-- </if>-->
|
</if>
|
||||||
<!-- <if test="region != null and region !=''">-->
|
<if test="region != null and region !=''">
|
||||||
<!-- AND region = #{region}-->
|
AND region = #{region}
|
||||||
<!-- </if>-->
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<delete id="DelVegetation">
|
<delete id="DelVegetation">
|
||||||
|
Reference in New Issue
Block a user