Compare commits
32 Commits
5041f3f92f
...
dev
Author | SHA1 | Date | |
---|---|---|---|
9b61e16fdd | |||
854afa033d | |||
52095ccd04 | |||
e348a10862 | |||
2a64885193 | |||
7943dd8156 | |||
b94ce7f31b | |||
9665ec2690 | |||
9c144e2138 | |||
b8d90525ae | |||
b51521dac7 | |||
0719379052 | |||
f52a876226 | |||
11b8a3db44 | |||
8918116dbd | |||
43ee95a198 | |||
7c5e92246f | |||
fafe483b53 | |||
6148ca9ae8 | |||
3006b3c751 | |||
e9e8ea36b7 | |||
c9ee01dd1f | |||
2de946adb8 | |||
a4976eff13 | |||
bd12230d7e | |||
42e4acf3dd | |||
498a502c02 | |||
5c0a93f679 | |||
264a5d910f | |||
15bc756bd4 | |||
c424d5cd89 | |||
9b784c99ed |
@ -94,4 +94,4 @@
|
||||
|
||||
## 若依前后端分离交流群
|
||||
|
||||
QQ群: [](https://jq.qq.com/?_wv=1027&k=5bVB1og) [](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [](https://jq.qq.com/?_wv=1027&k=51G72yr) [](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) 点击按钮入群。
|
||||
QQ群: [](https://jq.qq.com/?_wv=1027&k=5bVB1og) [](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [](https://jq.qq.com/?_wv=1027&k=51G72yr) [](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) 点击按钮入群。
|
||||
|
8
pom.xml
8
pom.xml
@ -18,13 +18,13 @@
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<java.version>11</java.version>
|
||||
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
|
||||
<druid.version>1.2.8</druid.version>
|
||||
<druid.version>1.2.11</druid.version>
|
||||
<bitwalker.version>1.21</bitwalker.version>
|
||||
<swagger.version>3.0.0</swagger.version>
|
||||
<kaptcha.version>2.3.2</kaptcha.version>
|
||||
<mybatis-spring-boot.version>2.2.2</mybatis-spring-boot.version>
|
||||
<pagehelper.boot.version>1.4.1</pagehelper.boot.version>
|
||||
<fastjson.version>1.2.80</fastjson.version>
|
||||
<pagehelper.boot.version>1.4.2</pagehelper.boot.version>
|
||||
<fastjson.version>1.2.83</fastjson.version>
|
||||
<oshi.version>6.1.6</oshi.version>
|
||||
<commons.io.version>2.11.0</commons.io.version>
|
||||
<commons.fileupload.version>1.4</commons.fileupload.version>
|
||||
@ -42,7 +42,7 @@
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-dependencies</artifactId>
|
||||
<version>2.5.13</version>
|
||||
<version>2.5.14</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
@ -17,7 +17,27 @@
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- spring-boot-devtools -->
|
||||
<dependency>
|
||||
|
||||
<groupId>org.apache.poi</groupId>
|
||||
|
||||
<artifactId>poi</artifactId>
|
||||
|
||||
<version>4.0.1</version>
|
||||
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
||||
<groupId>org.apache.poi</groupId>
|
||||
|
||||
<artifactId>poi-ooxml</artifactId>
|
||||
|
||||
<version>4.0.1</version>
|
||||
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-devtools</artifactId>
|
||||
@ -34,7 +54,19 @@
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-models</artifactId>
|
||||
<version>1.6.2</version>
|
||||
<version>1.6.6</version>
|
||||
</dependency>
|
||||
<!-- knife4j -->
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||||
<version>3.0.3</version>
|
||||
</dependency>
|
||||
<!-- postgresql驱动包-->
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>42.2.20</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Mysql驱动包 -->
|
||||
|
@ -1,9 +1,16 @@
|
||||
package com.ruoyi;
|
||||
|
||||
import com.sun.jna.platform.unix.solaris.LibKstat;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
import javax.print.attribute.standard.MediaSize;
|
||||
import java.time.Year;
|
||||
|
||||
|
||||
/**
|
||||
* 启动程序
|
||||
@ -16,17 +23,12 @@ public class RuoYiApplication
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
|
||||
// System.setProperty("spring.devtools.restart.enabled", "false");
|
||||
SpringApplication.run(RuoYiApplication.class, args);
|
||||
System.out.println("(♥◠‿◠)ノ゙ 我们一起学喵叫 ლ(´ڡ`ლ)゙ \n" +
|
||||
" .-------. ____ __ \n" +
|
||||
" | _ _ \\ 喵 \\ \\ / / \n" +
|
||||
" | ( ' ) | 喵 \\ _. / ' \n" +
|
||||
" |(_ o _) / 喵 _( )_ .' \n" +
|
||||
" | (_,_).' __ ___(_ o _)' \n" +
|
||||
" | |\\ \\ | || |(_,_)' \n" +
|
||||
" | | \\ `' /| `-' / \n" +
|
||||
" | | \\ / \\ / \n" +
|
||||
" ''-' `'-' `-..-' ");
|
||||
System.out.println();
|
||||
System.out.println(" --->>>启动成功!<<<---");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,96 +0,0 @@
|
||||
package com.ruoyi.web.controller.common;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import javax.annotation.Resource;
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.ruoyi.common.config.RuoYiConfig;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.FastByteArrayOutputStream;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.google.code.kaptcha.Producer;
|
||||
import com.ruoyi.common.constant.Constants;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.redis.RedisCache;
|
||||
import com.ruoyi.common.utils.sign.Base64;
|
||||
import com.ruoyi.common.utils.uuid.IdUtils;
|
||||
import com.ruoyi.system.service.ISysConfigService;
|
||||
|
||||
/**
|
||||
* 验证码操作处理
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@RestController
|
||||
public class CaptchaController
|
||||
{
|
||||
@Resource(name = "captchaProducer")
|
||||
private Producer captchaProducer;
|
||||
|
||||
@Resource(name = "captchaProducerMath")
|
||||
private Producer captchaProducerMath;
|
||||
|
||||
@Resource
|
||||
private RedisCache redisCache;
|
||||
|
||||
@Resource
|
||||
private ISysConfigService configService;
|
||||
/**
|
||||
* 生成验证码
|
||||
*/
|
||||
@GetMapping("/captchaImage")
|
||||
public AjaxResult getCode(HttpServletResponse response) throws IOException
|
||||
{
|
||||
AjaxResult ajax = AjaxResult.success();
|
||||
boolean captchaOnOff = configService.selectCaptchaOnOff();
|
||||
ajax.put("captchaOnOff", captchaOnOff);
|
||||
if (!captchaOnOff)
|
||||
{
|
||||
return ajax;
|
||||
}
|
||||
|
||||
// 保存验证码信息
|
||||
String uuid = IdUtils.simpleUUID();
|
||||
String verifyKey = Constants.CAPTCHA_CODE_KEY + uuid;
|
||||
|
||||
String capStr = null, code = null;
|
||||
BufferedImage image = null;
|
||||
|
||||
// 生成验证码
|
||||
String captchaType = RuoYiConfig.getCaptchaType();
|
||||
if ("math".equals(captchaType))
|
||||
{
|
||||
String capText = captchaProducerMath.createText();
|
||||
capStr = capText.substring(0, capText.lastIndexOf("@"));
|
||||
code = capText.substring(capText.lastIndexOf("@") + 1);
|
||||
image = captchaProducerMath.createImage(capStr);
|
||||
}
|
||||
else if ("char".equals(captchaType))
|
||||
{
|
||||
capStr = code = captchaProducer.createText();
|
||||
image = captchaProducer.createImage(capStr);
|
||||
}
|
||||
|
||||
redisCache.setCacheObject(verifyKey, code, Constants.CAPTCHA_EXPIRATION, TimeUnit.MINUTES);
|
||||
// 转换流信息写出
|
||||
FastByteArrayOutputStream os = new FastByteArrayOutputStream();
|
||||
try
|
||||
{
|
||||
ImageIO.write(image, "jpg", os);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
return AjaxResult.error(e.getMessage());
|
||||
}
|
||||
|
||||
ajax.put("uuid", uuid);
|
||||
ajax.put("img", Base64.encode(os.toByteArray()));
|
||||
return ajax;
|
||||
}
|
||||
}
|
@ -12,9 +12,11 @@ import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.domain.entity.SysMenu;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.core.domain.model.LoginBody;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||
import com.ruoyi.common.utils.ServletUtils;
|
||||
import com.ruoyi.framework.web.service.SysLoginService;
|
||||
import com.ruoyi.framework.web.service.SysPermissionService;
|
||||
import com.ruoyi.framework.web.service.TokenService;
|
||||
import com.ruoyi.system.service.ISysMenuService;
|
||||
|
||||
/**
|
||||
@ -34,6 +36,9 @@ public class SysLoginController
|
||||
@Autowired
|
||||
private SysPermissionService permissionService;
|
||||
|
||||
@Autowired
|
||||
private TokenService tokenService;
|
||||
|
||||
/**
|
||||
* 登录方法
|
||||
*
|
||||
@ -45,8 +50,7 @@ public class SysLoginController
|
||||
{
|
||||
AjaxResult ajax = AjaxResult.success();
|
||||
// 生成令牌
|
||||
String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(),
|
||||
loginBody.getUuid());
|
||||
String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode());
|
||||
ajax.put(Constants.TOKEN, token);
|
||||
return ajax;
|
||||
}
|
||||
@ -59,7 +63,8 @@ public class SysLoginController
|
||||
@GetMapping("getInfo")
|
||||
public AjaxResult getInfo()
|
||||
{
|
||||
SysUser user = SecurityUtils.getLoginUser().getUser();
|
||||
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
||||
SysUser user = loginUser.getUser();
|
||||
// 角色集合
|
||||
Set<String> roles = permissionService.getRolePermission(user);
|
||||
// 权限集合
|
||||
@ -79,8 +84,10 @@ public class SysLoginController
|
||||
@GetMapping("getRouters")
|
||||
public AjaxResult getRouters()
|
||||
{
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId);
|
||||
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
||||
// 用户信息
|
||||
SysUser user = loginUser.getUser();
|
||||
List<SysMenu> menus = menuService.selectMenuTreeByUserId(user.getUserId());
|
||||
return AjaxResult.success(menuService.buildMenus(menus));
|
||||
}
|
||||
}
|
||||
|
@ -1,40 +1,53 @@
|
||||
package com.ruoyi.web.controller.yada;
|
||||
|
||||
import com.ruoyi.common.config.RuoYiConfig;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.domain_yada.AorestCoverageVO;
|
||||
import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
|
||||
import com.ruoyi.common.utils.file.FileUploadUtils;
|
||||
import com.ruoyi.common.utils.file.FileUtils;
|
||||
import com.ruoyi.system.domain_yada.*;
|
||||
import com.ruoyi.system.service_yada.IAorestCoverageService;
|
||||
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
|
||||
import com.ruoyi.system.service_yada.ThematicMapService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.xml.crypto.Data;
|
||||
import java.io.InputStream;
|
||||
import java.security.Guard;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 森林覆盖率
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 9:08
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value = "/business-service/api/Aorest", produces = "application/json;charset=UTF-8")
|
||||
@Api(tags = "森林覆盖率")
|
||||
public class AorestCoverageController {
|
||||
@Resource
|
||||
private IAorestCoverageService service;
|
||||
|
||||
@Resource
|
||||
private ThematicMapService thematicMapService;
|
||||
|
||||
/**
|
||||
* 查询方法
|
||||
* @param response
|
||||
* @param request
|
||||
* @return
|
||||
* 需要查询的字段参数
|
||||
* @return 参数类
|
||||
*/
|
||||
@RequestMapping(value = "/selectAorestCoverage",method = {RequestMethod.POST})
|
||||
public AjaxResult selectAorestCoverage(HttpServletResponse response, HttpServletRequest request)
|
||||
@RequestMapping(value = "/selectAorestCoverage",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
public AjaxResult selectAorestCoverage()
|
||||
{
|
||||
List<AorestCoverageVO> eastVOSList= service.selectAorestCoverage();
|
||||
return AjaxResult.success(eastVOSList);
|
||||
@ -42,10 +55,12 @@ public class AorestCoverageController {
|
||||
|
||||
/**
|
||||
* 删除方法
|
||||
* @param ID
|
||||
* @return
|
||||
* @param ID id
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/DelAorestCoverage",method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/DelAorestCoverage",method = {RequestMethod.DELETE})
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||
public AjaxResult DelAorestCoverage(@Param("ID") String ID)
|
||||
{
|
||||
int NUM = service.DelAorestCoverage(ID);
|
||||
@ -59,17 +74,107 @@ public class AorestCoverageController {
|
||||
|
||||
/**
|
||||
* 新增方法
|
||||
* @param eastVOS
|
||||
* @return
|
||||
* @param eastVOS 新增实体类
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/IntoAorestCoverage",method = {RequestMethod.POST})
|
||||
public AjaxResult IntoAorestCoverage(AorestCoverageVO eastVOS)
|
||||
@ApiOperation(value = "新增方法",httpMethod = "POST")
|
||||
public AjaxResult IntoAorestCoverage(@RequestBody AorestCoverageVO eastVOS)
|
||||
{
|
||||
int NUM = service.IntoAorestCoverage(eastVOS);
|
||||
try {
|
||||
|
||||
|
||||
eastVOS.setCreateTime(LocalDateTime.now());
|
||||
int NUM = service.IntoAorestCoverage(eastVOS);
|
||||
if (NUM>0)
|
||||
{
|
||||
return AjaxResult.success();
|
||||
}
|
||||
return AjaxResult.error();
|
||||
}
|
||||
catch (Exception E){
|
||||
E.getMessage();
|
||||
return AjaxResult.error();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传文件
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/IntoUpLoad",method = {RequestMethod.POST})
|
||||
@ApiOperation(value = "上传文件",httpMethod = "POST")
|
||||
public AjaxResult IntoUpload(@RequestBody MultipartFile file)
|
||||
{
|
||||
UploadFile upload=new UploadFile();
|
||||
|
||||
ThematicMapDomain domain=new ThematicMapDomain();
|
||||
|
||||
UploadFile value= null;
|
||||
try {
|
||||
value = uploadFile(file,upload);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
int NUM = service.IntoUpload(value);
|
||||
domain.setPictureCode(value.getFileId());
|
||||
|
||||
if (NUM>0)
|
||||
{
|
||||
return AjaxResult.success();
|
||||
}
|
||||
return AjaxResult.error();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 文件查询
|
||||
* @param response 头
|
||||
* @param request 客户端请求
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/selectUpload",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "文件查询",httpMethod = "GET")
|
||||
public AjaxResult selectUpload(HttpServletResponse response, HttpServletRequest request,@RequestBody UploadFile upload)
|
||||
{
|
||||
List<UploadFile> eastVOSList= service.selectUpload(upload.getFileId(),upload.getFileName());
|
||||
return AjaxResult.success(eastVOSList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public UploadFile uploadFile(MultipartFile file,UploadFile upload) throws Exception
|
||||
{
|
||||
// 上传文件路径
|
||||
String filePath = RuoYiConfig.getUploadPath();
|
||||
// 上传并返回新文件名称
|
||||
String fileName = FileUploadUtils.upload(filePath, file);
|
||||
upload.setFileId(String.valueOf(System.currentTimeMillis()));
|
||||
upload.setFileName(file.getOriginalFilename());
|
||||
upload.setFilePath(fileName);
|
||||
upload.setFileSize(String.valueOf(file.getSize()));
|
||||
upload.setCreateTime(LocalDateTime.now());
|
||||
return upload;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/dictionary",method = {RequestMethod.GET})
|
||||
// @ApiOperation(value = "字典查询",httpMethod = "GET")
|
||||
public AjaxResult Dictionary(String type,String type1,String type2)
|
||||
{
|
||||
List<Dictionary> diclist=service.selectDic(type);
|
||||
return AjaxResult.success(diclist);
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/selectNow",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "字典查询",httpMethod = "GET")
|
||||
public AjaxResult selectNow(String type)
|
||||
{
|
||||
List<Dictionary> diclist=service.selectNow(type);
|
||||
return AjaxResult.success(diclist);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -3,8 +3,12 @@ package com.ruoyi.web.controller.yada;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
|
||||
import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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;
|
||||
@ -12,15 +16,15 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 澳大利亚中东部地区
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 9:08
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value = "/business-service/api/Australia", produces = "application/json;charset=UTF-8")
|
||||
@Api(tags = "澳大利亚中东部地区")
|
||||
public class AustraliaMiddleEastController
|
||||
{
|
||||
@Resource
|
||||
@ -28,23 +32,24 @@ public class AustraliaMiddleEastController
|
||||
|
||||
/**
|
||||
* 查询方法
|
||||
* @param response
|
||||
* @param request
|
||||
* @return
|
||||
* @return 实体类
|
||||
*/
|
||||
@RequestMapping(value = "/SelectAustralia",method = {RequestMethod.POST})
|
||||
public AjaxResult SelectAustralia(HttpServletResponse response, HttpServletRequest request)
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
@RequestMapping(value = "/SelectAustralia",method = {RequestMethod.GET})
|
||||
public AjaxResult SelectAustralia(@RequestBody AustraliaMiddleEastVO eastVO )
|
||||
{
|
||||
List<AustraliaMiddleEastVO> eastVOSList= australiaMiddleEastService.selectAustralia();
|
||||
List<AustraliaMiddleEastVO> eastVOSList= australiaMiddleEastService.selectAustralia(eastVO.getYearMonth(),eastVO.getMonth());
|
||||
return AjaxResult.success(eastVOSList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除方法
|
||||
* @param ID
|
||||
* @return
|
||||
* @param ID id
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/DelAustralia",method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/DelAustralia",method = {RequestMethod.DELETE})
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||
public AjaxResult DelAustralia(@Param("ID") String ID)
|
||||
{
|
||||
int NUM = australiaMiddleEastService.DelAustralia(ID);
|
||||
@ -58,12 +63,14 @@ public class AustraliaMiddleEastController
|
||||
|
||||
/**
|
||||
* 新增方法
|
||||
* @param eastVOS
|
||||
* @return
|
||||
* @param eastVOS 新增实体类
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/IntoAustralia",method = {RequestMethod.POST})
|
||||
public AjaxResult IntoAustralia(AustraliaMiddleEastVO eastVOS)
|
||||
@ApiOperation(value = "新增方法",httpMethod = "POST")
|
||||
public AjaxResult IntoAustralia(@RequestBody AustraliaMiddleEastVO eastVOS)
|
||||
{
|
||||
eastVOS.setCreateTime(LocalDateTime.now());
|
||||
int NUM = australiaMiddleEastService.IntoAustralia(eastVOS);
|
||||
if (NUM>0)
|
||||
{
|
||||
|
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.web.controller.yada;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.domain_yada.CityVo;
|
||||
import com.ruoyi.system.domain_yada.OrientationVO;
|
||||
import com.ruoyi.system.service_yada.ICityService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value = "/business-service/api/City", produces = "application/json;charset=UTF-8")
|
||||
@Api(tags = "城市")
|
||||
public class CityController
|
||||
{
|
||||
@Resource
|
||||
private ICityService cityService;
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value = "/getImpervious",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "不透水面面积",httpMethod = "GET")
|
||||
public AjaxResult getImpervious(String city,String country)
|
||||
{
|
||||
List<CityVo> cityVos=cityService.selectCity(city,country);
|
||||
return AjaxResult.success(cityVos);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/getOrientation",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "不透水面扩张方向",httpMethod = "GET")
|
||||
public AjaxResult getOrientation(String city,String country)
|
||||
{
|
||||
List<OrientationVO> cityVos=cityService.selectOrientation(city,country);
|
||||
return AjaxResult.success(cityVos);
|
||||
}
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
package com.ruoyi.web.controller.yada;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.framework.web.domain.Server;
|
||||
import com.ruoyi.system.domain_yada.CityFocusVO;
|
||||
import com.ruoyi.system.domain_yada.CityInformation;
|
||||
import com.ruoyi.system.domain_yada.OrientationVO;
|
||||
import com.ruoyi.system.service_yada.ICityExpandService;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
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 java.util.List;
|
||||
|
||||
/**
|
||||
* 城市扩张
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/1 10:09
|
||||
*/
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/CityExpand",produces = "application/json;charset=UTF-8")
|
||||
public class CityExpandControllerr
|
||||
{
|
||||
@Resource
|
||||
private ICityExpandService service;
|
||||
|
||||
/**
|
||||
* 获取城市扩张方位
|
||||
* @param city
|
||||
* @param year
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/selectCityExpand",method = {RequestMethod.GET})
|
||||
public AjaxResult selectCityExpand(String city,String country, String year)
|
||||
{
|
||||
List<CityFocusVO> value=service.selectExpand(city,country,year);
|
||||
return AjaxResult.success(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取不透水面扩张方位
|
||||
* @param city
|
||||
* @param superior
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/selectOrientation",method = {RequestMethod.GET})
|
||||
public AjaxResult selectOrientation(String city,String superior,String country)
|
||||
{
|
||||
List<OrientationVO> value=service.selectOrientation(city,superior,country);
|
||||
return AjaxResult.success(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取城市不透水面各种信息
|
||||
* @param city
|
||||
* @param country
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/selectInformation",method = {RequestMethod.GET})
|
||||
public AjaxResult selectInformation(String city,String country,String year){
|
||||
// if (city.equals("")&&country.equals(""))
|
||||
// {
|
||||
// List<CityInformation> value= service.selectMain(year);
|
||||
// return AjaxResult.success(value);
|
||||
// }
|
||||
List<CityInformation> value= service.selectInfrom(city,country,year);
|
||||
return AjaxResult.success(value);
|
||||
|
||||
}
|
||||
}
|
@ -5,8 +5,12 @@ import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
|
||||
import com.ruoyi.system.domain_yada.GlobalTypeVO;
|
||||
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
|
||||
import com.ruoyi.system.service_yada.IGlobalTypeService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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;
|
||||
@ -14,27 +18,27 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*全球各类型占比
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 9:05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/monitor/clobal")
|
||||
@Api(tags = "全球各类型占比")
|
||||
public class GlobalTypeController {
|
||||
@Resource
|
||||
private IGlobalTypeService typeService;
|
||||
|
||||
/**
|
||||
* 查询方法
|
||||
* @param response
|
||||
* @param request
|
||||
* @return
|
||||
|
||||
* @return 参数类
|
||||
*/
|
||||
@RequestMapping(value = "/selectGlobalType",method = {RequestMethod.POST})
|
||||
public AjaxResult selectGlobalType(HttpServletResponse response, HttpServletRequest request)
|
||||
@ApiOperation(value = "查询方法",httpMethod = "POST")
|
||||
public AjaxResult selectGlobalType()
|
||||
{
|
||||
List<GlobalTypeVO> eastVOSList= typeService.selectGlobalType();
|
||||
return AjaxResult.success(eastVOSList);
|
||||
@ -42,10 +46,12 @@ public class GlobalTypeController {
|
||||
|
||||
/**
|
||||
* 删除方法
|
||||
* @param ID
|
||||
* @return
|
||||
* @param ID id
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/DelGlobalType",method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/DelGlobalType",method = {RequestMethod.DELETE})
|
||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
||||
public AjaxResult DelGlobalType(@Param("ID") String ID)
|
||||
{
|
||||
int NUM = typeService.DelGlobalType(ID);
|
||||
@ -59,12 +65,14 @@ public class GlobalTypeController {
|
||||
|
||||
/**
|
||||
* 新增方法
|
||||
* @param eastVOS
|
||||
* @return
|
||||
* @param eastVOS 新增实体类
|
||||
* @return 状态码
|
||||
*/
|
||||
@ApiOperation(value = "新增方法",httpMethod = "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);
|
||||
if (NUM>0)
|
||||
{
|
||||
|
@ -5,8 +5,12 @@ import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
|
||||
import com.ruoyi.system.domain_yada.OceanTemperatureVO;
|
||||
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
|
||||
import com.ruoyi.system.service_yada.IOceanTemperatureService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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;
|
||||
@ -14,13 +18,13 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 海洋表面温度监测
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 9:13
|
||||
*/
|
||||
@Api(tags = "海洋表面温度监测")
|
||||
@RestController
|
||||
@RequestMapping(value = "/business-service/api/Ocean", produces = "application/json;charset=UTF-8")
|
||||
public class OceanTemperatureController {
|
||||
@ -29,23 +33,25 @@ public class OceanTemperatureController {
|
||||
|
||||
/**
|
||||
* 查询方法
|
||||
* @param response
|
||||
* @param request
|
||||
* @return
|
||||
* @return 参数类
|
||||
*/
|
||||
@RequestMapping(value = "/selectOcean",method = {RequestMethod.POST})
|
||||
public AjaxResult selectOcean(HttpServletResponse response, HttpServletRequest request)
|
||||
@RequestMapping(value = "/selectOcean",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
public AjaxResult selectOcean(@RequestBody OceanTemperatureVO temperatureVO)
|
||||
{
|
||||
List<OceanTemperatureVO> eastVOSList= temperatureService.selectOcean();
|
||||
List<OceanTemperatureVO> eastVOSList= temperatureService.selectOcean(temperatureVO.getStartDate());
|
||||
return AjaxResult.success(eastVOSList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除方法
|
||||
* @param ID
|
||||
* @return
|
||||
* @param ID id
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/DelOcean",method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/DelOcean",method = {RequestMethod.DELETE})
|
||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
||||
|
||||
public AjaxResult DelOcean(@Param("ID") String ID)
|
||||
{
|
||||
int NUM = temperatureService.DelOcean(ID);
|
||||
@ -59,12 +65,14 @@ public class OceanTemperatureController {
|
||||
|
||||
/**
|
||||
* 新增方法
|
||||
* @param eastVOS
|
||||
* @return
|
||||
* @param eastVOS 新增实体类
|
||||
* @return 状态码
|
||||
*/
|
||||
@ApiOperation(value = "新增方法",httpMethod = "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);
|
||||
if (NUM>0)
|
||||
{
|
||||
|
@ -3,8 +3,12 @@ package com.ruoyi.web.controller.yada;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.service_yada.IRegionVGIService;
|
||||
import com.ruoyi.system.domain_yada.RegionVGIVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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;
|
||||
@ -13,13 +17,13 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 各区域VGI
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 9:08
|
||||
*/
|
||||
@Api(tags = "各区域VGI")
|
||||
@RestController
|
||||
@RequestMapping(value = "/business-service/api/orderMng", produces = "application/json;charset=UTF-8")
|
||||
public class RegionVGIController
|
||||
@ -28,12 +32,11 @@ public class RegionVGIController
|
||||
private IRegionVGIService regionVGIService;
|
||||
/**
|
||||
* 查询方法
|
||||
* @param response
|
||||
* @param request
|
||||
* @return
|
||||
* @return 参数类
|
||||
*/
|
||||
@RequestMapping(value = "/SelectRegion",method = {RequestMethod.POST})
|
||||
public AjaxResult SelectRegion(HttpServletResponse response, HttpServletRequest request)
|
||||
@RequestMapping(value = "/SelectRegion",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
public AjaxResult SelectRegion()
|
||||
{
|
||||
List<RegionVGIVO> vgivost= regionVGIService.selectRegion();
|
||||
return AjaxResult.success(vgivost);
|
||||
@ -41,10 +44,12 @@ public class RegionVGIController
|
||||
|
||||
/**
|
||||
* 删除方法
|
||||
* @param ID
|
||||
* @return
|
||||
* @param ID id
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/DelRegion",method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/DelRegion",method = {RequestMethod.DELETE})
|
||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
||||
public AjaxResult DelRegion(@Param("ID") String ID)
|
||||
{
|
||||
int NUM = regionVGIService.DelRegion(ID);
|
||||
@ -58,12 +63,14 @@ public class RegionVGIController
|
||||
|
||||
/**
|
||||
* 新增方法
|
||||
* @param vgivo
|
||||
* @return
|
||||
* @param vgivo 新增实体类
|
||||
* @return 状态码
|
||||
*/
|
||||
@ApiOperation(value = "新增方法",httpMethod = "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);
|
||||
if (NUM>0)
|
||||
{
|
||||
|
@ -6,22 +6,19 @@ import com.ruoyi.system.domain_yada.RegionVGIVO;
|
||||
import com.ruoyi.system.domain_yada.RegionalSystemVO;
|
||||
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
|
||||
import com.ruoyi.system.service_yada.IRegionalSystemService;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 区域生态系统
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 9:12
|
||||
*/
|
||||
@Api(tags = "区域生态系统")
|
||||
@RestController
|
||||
@RequestMapping(value = "/business-service/api/Regional", produces = "application/json;charset=UTF-8")
|
||||
public class RegionalSystemController {
|
||||
@ -30,24 +27,25 @@ public class RegionalSystemController {
|
||||
|
||||
/**
|
||||
* 查询方法
|
||||
* @param response
|
||||
* @param request
|
||||
* @return
|
||||
* @return 参数类
|
||||
*/
|
||||
@RequestMapping(value = "/selectRegional",method = {RequestMethod.POST})
|
||||
public AjaxResult selectRegional(HttpServletResponse response, HttpServletRequest request)
|
||||
@RequestMapping(value = "/selectRegional",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
public AjaxResult selectRegional(@RequestParam("region") String region)
|
||||
{
|
||||
List<RegionalSystemVO> eastVOSList= systemService.selectRegional();
|
||||
List<RegionalSystemVO> eastVOSList= systemService.selectRegional(region);
|
||||
return AjaxResult.success(eastVOSList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除方法
|
||||
* @param ID
|
||||
* @return
|
||||
* @param ID id
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/DelRegional",method = {RequestMethod.POST})
|
||||
public AjaxResult DelRegional(@Param("ID") String ID)
|
||||
@RequestMapping(value = "/DelRegional",method = {RequestMethod.DELETE})
|
||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "int", paramType = "path", dataTypeClass = Integer.class)
|
||||
public AjaxResult DelRegional(@RequestParam("ID") String ID)
|
||||
{
|
||||
int NUM = systemService.DelRegional(ID);
|
||||
if (NUM>0)
|
||||
@ -60,12 +58,14 @@ public class RegionalSystemController {
|
||||
|
||||
/**
|
||||
* 新增方法
|
||||
* @param eastVOS
|
||||
* @return
|
||||
* @param eastVOS 新增实体类
|
||||
* @return 状态码
|
||||
*/
|
||||
@ApiOperation(value = "新增方法",httpMethod = "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);
|
||||
if (NUM>0)
|
||||
{
|
||||
|
@ -0,0 +1,325 @@
|
||||
package com.ruoyi.web.controller.yada;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.file.WeatherUtils;
|
||||
import com.ruoyi.system.domain_yada.*;
|
||||
import com.ruoyi.system.service_yada.*;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import jdk.jfr.Frequency;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.xssf.usermodel.XSSFSheet;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
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 org.springframework.web.multipart.MultipartFile;
|
||||
import springfox.documentation.spring.web.json.Json;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.math.BigDecimal;
|
||||
import java.net.http.HttpRequest;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/Special")
|
||||
@Api(tags = "模板导入")
|
||||
public class SpecialController {
|
||||
|
||||
@Resource
|
||||
private IRegionVGIService regionVGIService;
|
||||
|
||||
@Resource
|
||||
private IAustraliaMiddleEastService australiaMiddleEastService;
|
||||
|
||||
@Resource
|
||||
private IAorestCoverageService service;
|
||||
|
||||
@Resource
|
||||
private IVegetationCoverageService coverageService;
|
||||
|
||||
@Resource
|
||||
private IRegionalSystemService systemService;
|
||||
|
||||
/**
|
||||
*/
|
||||
|
||||
@RequestMapping(value = "/helpSaveExcel")
|
||||
private AjaxResult helpSaveExcel(@RequestBody MultipartFile file) {
|
||||
List<RegionVGIVO> value = saveExcel(file);
|
||||
|
||||
return IntoRegion(value);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/helpWeatherClass",method = {RequestMethod.GET})
|
||||
public AjaxResult helpWeatherClass(String city,String type)
|
||||
{
|
||||
String url="https://restapi.amap.com/v3/weather/weatherInfo";
|
||||
Map<String,String> map=new HashMap<>();
|
||||
map.put("key","37087f0a3007dc67d37859553cd02d33");
|
||||
map.put("city",city);
|
||||
if (type!=null){ map.put("extensions",type);}
|
||||
map.put("output","json");
|
||||
String value= WeatherUtils.httpRequest(url,map);
|
||||
WeatherUtilsVO vo = JSON.parseObject(value,WeatherUtilsVO.class);
|
||||
|
||||
return AjaxResult.success(vo);
|
||||
} /**
|
||||
* 森林覆盖率模板导入
|
||||
*/
|
||||
@RequestMapping(value = "/helpExcelAorest")
|
||||
private AjaxResult helpExcelAorest(@RequestBody MultipartFile file) {
|
||||
List<AorestCoverageVO> value = saveExcelAorest(file);
|
||||
|
||||
return IntoAorestCoverage(value);
|
||||
}
|
||||
|
||||
/**
|
||||
*平均植被覆盖度和净初级生产力
|
||||
*/
|
||||
@RequestMapping(value = "/helpExcelnpp")
|
||||
private AjaxResult helpExcelnpp(@RequestBody MultipartFile file) {
|
||||
List<VegetationCoverageVO> value = saveExcelnpp(file);
|
||||
|
||||
return IntoVegetation(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 澳大利亚中部地区模板导入
|
||||
*/
|
||||
@RequestMapping(value = "/helpExcelAus")
|
||||
private AjaxResult helpExcelAus(@RequestBody MultipartFile file) {
|
||||
List<AustraliaMiddleEastVO> value = saveExcelAus(file);
|
||||
|
||||
return IntoAustralia(value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 区域生态系统类型转移
|
||||
*/
|
||||
@RequestMapping(value = "/helpExcelRegion")
|
||||
private AjaxResult helpExcelRegion(@RequestBody MultipartFile file) {
|
||||
List<RegionalSystemVO> value = saveExcelRegion(file);
|
||||
|
||||
return IntoRegional(value);
|
||||
}
|
||||
|
||||
public AjaxResult IntoRegional(List<RegionalSystemVO> eastVOS)
|
||||
{
|
||||
try {
|
||||
for (int i = 0; i < eastVOS.size(); i++) {
|
||||
eastVOS.get(i).setCreateTime(LocalDateTime.now());
|
||||
systemService.IntoRegional(eastVOS.get(i));
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
catch (Exception E){
|
||||
E.getMessage();
|
||||
return AjaxResult.error(E.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public AjaxResult IntoAustralia(List<AustraliaMiddleEastVO> eastVOS) {
|
||||
|
||||
for (int i = 0; i < eastVOS.size(); i++) {
|
||||
eastVOS.get(i).setCreateTime(LocalDateTime.now());
|
||||
australiaMiddleEastService.IntoAustralia(eastVOS.get(i));
|
||||
}
|
||||
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
public AjaxResult IntoRegion(List<RegionVGIVO> vgivo) {
|
||||
for (int i = 0; i < vgivo.size(); i++) {
|
||||
vgivo.get(i).setCreatedTime(LocalDateTime.now());
|
||||
|
||||
regionVGIService.IntoRegion(vgivo.get(i));
|
||||
}
|
||||
|
||||
return AjaxResult.success();
|
||||
|
||||
}
|
||||
|
||||
public AjaxResult IntoAorestCoverage(List<AorestCoverageVO> eastVOS)
|
||||
{
|
||||
try {
|
||||
for (int i = 0; i < eastVOS.size(); i++) {
|
||||
eastVOS.get(i).setCreateTime(LocalDateTime.now());
|
||||
service.IntoAorestCoverage(eastVOS.get(i));
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
catch (Exception E){
|
||||
E.getMessage();
|
||||
return AjaxResult.error(E.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public AjaxResult IntoVegetation(List<VegetationCoverageVO> eastVOS)
|
||||
{
|
||||
try {
|
||||
for (int i = 0; i < eastVOS.size(); i++) {
|
||||
eastVOS.get(i).setCreateTime(LocalDateTime.now());
|
||||
coverageService.IntoVegetation(eastVOS.get(i));
|
||||
}
|
||||
return AjaxResult.success();
|
||||
}
|
||||
catch (Exception E){
|
||||
E.getMessage();
|
||||
return AjaxResult.error(E.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private List<RegionVGIVO> saveExcel(MultipartFile file) {
|
||||
|
||||
try {
|
||||
List<RegionVGIVO> Value = new ArrayList<>();
|
||||
InputStream inputStream = file.getInputStream();
|
||||
Workbook book;
|
||||
Sheet sheet;
|
||||
book = new XSSFWorkbook(inputStream);
|
||||
sheet = book.getSheetAt(0);
|
||||
for (int i = 1; i < sheet.getLastRowNum() + 1; i++) {
|
||||
RegionVGIVO value = new RegionVGIVO();
|
||||
Row row = sheet.getRow(i);
|
||||
value.setCreatedTime(LocalDateTime.now());
|
||||
value.setRegion(row.getCell(0).toString());
|
||||
value.setRegionEn(row.getCell(1).toString());
|
||||
value.setForest(Double.parseDouble(row.getCell(2).toString()));
|
||||
value.setGrassland(Double.parseDouble(row.getCell(3).toString()));
|
||||
value.setParticularYear(row.getCell(4).toString());
|
||||
Value.add(value);
|
||||
}
|
||||
return Value;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private List<AustraliaMiddleEastVO> saveExcelAus(MultipartFile file) {
|
||||
|
||||
try {
|
||||
List<AustraliaMiddleEastVO> Value = new ArrayList<>();
|
||||
InputStream inputStream = file.getInputStream();
|
||||
Workbook book;
|
||||
Sheet sheet;
|
||||
book = new XSSFWorkbook(inputStream);
|
||||
sheet = book.getSheetAt(0);
|
||||
for (int i = 1; i < sheet.getLastRowNum() + 1; i++) {
|
||||
AustraliaMiddleEastVO value = new AustraliaMiddleEastVO();
|
||||
Row row = sheet.getRow(i);
|
||||
value.setYearMonth(row.getCell(0).toString());
|
||||
value.setMonth(row.getCell(1).toString());
|
||||
value.setSstAnomalyIndex(Double.parseDouble(row.getCell(2).toString()));
|
||||
value.setTemperatureAnomolies(Double.parseDouble(row.getCell(3).toString()));
|
||||
value.setPrecipitationAnomolies(Double.parseDouble(row.getCell(4).toString()));
|
||||
value.setVaiAnomolies(Double.parseDouble(row.getCell(5).toString()));
|
||||
Value.add(value);
|
||||
}
|
||||
return Value;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private List<AorestCoverageVO> saveExcelAorest(MultipartFile file) {
|
||||
|
||||
try {
|
||||
List<AorestCoverageVO> Value = new ArrayList<>();
|
||||
InputStream inputStream = file.getInputStream();
|
||||
Workbook book;
|
||||
Sheet sheet;
|
||||
book = new XSSFWorkbook(inputStream);
|
||||
sheet = book.getSheetAt(0);
|
||||
for (int i = 1; i < sheet.getLastRowNum() + 1; i++) {
|
||||
AorestCoverageVO value = new AorestCoverageVO();
|
||||
Row row = sheet.getRow(i);
|
||||
value.setRegion(row.getCell(0).toString());
|
||||
value.setRegionEn(row.getCell(1).toString());
|
||||
value.setProtectedLands(Double.parseDouble(row.getCell(2).toString()));
|
||||
value.setNonProtectedLands(Double.parseDouble(row.getCell(3).toString()));
|
||||
value.setMountain(Double.parseDouble(row.getCell(4).toString()));
|
||||
value.setNonMountain(Double.parseDouble(row.getCell(5).toString()));
|
||||
value.setCreateTime(LocalDateTime.now());
|
||||
Value.add(value);
|
||||
}
|
||||
return Value;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private List<VegetationCoverageVO> saveExcelnpp(MultipartFile file) {
|
||||
|
||||
try {
|
||||
List<VegetationCoverageVO> Value = new ArrayList<>();
|
||||
InputStream inputStream = file.getInputStream();
|
||||
Workbook book;
|
||||
Sheet sheet;
|
||||
book = new XSSFWorkbook(inputStream);
|
||||
sheet = book.getSheetAt(0);
|
||||
for (int i = 1; i < sheet.getLastRowNum() + 1; i++) {
|
||||
VegetationCoverageVO value = new VegetationCoverageVO();
|
||||
Row row = sheet.getRow(i);
|
||||
value.setRegion(row.getCell(0).toString());
|
||||
value.setRegionEn(row.getCell(1).toString());
|
||||
value.setProtectedLands(Double.parseDouble(row.getCell(4).toString()));
|
||||
value.setNonProtectedLands(Double.parseDouble(row.getCell(5).toString()));
|
||||
value.setMountain(Double.parseDouble(row.getCell(2).toString()));
|
||||
value.setNonMountain(Double.parseDouble(row.getCell(3).toString()));
|
||||
value.setCreateTime(LocalDateTime.now());
|
||||
Value.add(value);
|
||||
}
|
||||
return Value;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private List<RegionalSystemVO> saveExcelRegion(MultipartFile file) {
|
||||
|
||||
try {
|
||||
List<RegionalSystemVO> Value = new ArrayList<>();
|
||||
InputStream inputStream = file.getInputStream();
|
||||
Workbook book;
|
||||
Sheet sheet;
|
||||
book = new XSSFWorkbook(inputStream);
|
||||
sheet = book.getSheetAt(0);
|
||||
for (int i = 1; i < sheet.getLastRowNum() + 1; i++) {
|
||||
RegionalSystemVO value = new RegionalSystemVO();
|
||||
Row row = sheet.getRow(i);
|
||||
value.setRegion(row.getCell(0).toString());
|
||||
value.setRegionEn(row.getCell(1).toString());
|
||||
value.setTypeConversion(row.getCell(2).toString());
|
||||
value.setTypeconversionEn(row.getCell(3).toString());
|
||||
value.setProportionOfChangedAreas(Double.parseDouble(row.getCell(4).toString()));
|
||||
value.setCreateTime(LocalDateTime.now());
|
||||
Value.add(value);
|
||||
}
|
||||
return Value;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,9 +1,100 @@
|
||||
package com.ruoyi.web.controller.yada;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.domain_yada.SpecialVO;
|
||||
import com.ruoyi.system.domain_yada.UploadSpecialVO;
|
||||
import com.ruoyi.system.service_yada.ISpecialReportService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.aspectj.weaver.loadtime.Aj;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 专题报告
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 11:10
|
||||
*/
|
||||
public class SpecialReportController {
|
||||
@RestController
|
||||
@RequestMapping(value = "/business-service/api/Special", produces = "application/json;charset=UTF-8")
|
||||
@Api(tags = "专题报告")
|
||||
public class SpecialReportController
|
||||
{
|
||||
|
||||
@Resource
|
||||
private ISpecialReportService service;
|
||||
|
||||
@RequestMapping(value = "/getSpecial",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "返回专题数据",httpMethod = "GET")
|
||||
public AjaxResult getSpecial(String zone)
|
||||
{
|
||||
List<SpecialVO> value=service.selectSpecial(zone);
|
||||
|
||||
return AjaxResult.success(value);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/DelSpecial",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "删除专题数据",httpMethod = "GET")
|
||||
public AjaxResult DelSpecial(@RequestParam("id") Integer id)
|
||||
{
|
||||
Integer value=service.DelSpecial(id);
|
||||
if (value>0){
|
||||
return AjaxResult.success("成功!");
|
||||
}else {
|
||||
return AjaxResult.error();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/updateUploadSpecial",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "修改下载数量",httpMethod = "GET")
|
||||
public AjaxResult updateUploadSpecial(@RequestParam("id") Integer id)
|
||||
{
|
||||
Integer value=service.updateUploadSpecial(id);
|
||||
|
||||
if (value>0){return AjaxResult.success("成功!");}
|
||||
return AjaxResult.error();
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/getUploadSpecial")
|
||||
@ApiOperation(value = "返回专题通报")
|
||||
public AjaxResult getUploadSpecial(String fileName)
|
||||
{
|
||||
List<UploadSpecialVO> value=service.selectUploadSpecial(fileName);
|
||||
|
||||
return AjaxResult.success(value);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/getUploadStandard")
|
||||
@ApiOperation(value = "返回专题规范")
|
||||
public AjaxResult getUploadStandard(String fileName)
|
||||
{
|
||||
List<UploadSpecialVO> value=service.selectUploadSpecial1(fileName);
|
||||
|
||||
return AjaxResult.success(value);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/getWord",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "返回专题报告路径",httpMethod = "GET")
|
||||
public AjaxResult getWord(@RequestParam("path") String path,@RequestParam("name") String name)
|
||||
{
|
||||
String route="";
|
||||
switch (path)
|
||||
{
|
||||
case "ch":
|
||||
route="avatar/word/陆域中文1130.pdf";
|
||||
break;
|
||||
case "en":
|
||||
route="avatar/word/陆域中文1130.pdf";
|
||||
break;
|
||||
default:
|
||||
return AjaxResult.error("未找到对应路径");
|
||||
}
|
||||
return AjaxResult.success(route);
|
||||
}
|
||||
}
|
||||
|
@ -1,49 +1,89 @@
|
||||
package com.ruoyi.web.controller.yada;
|
||||
|
||||
import com.ruoyi.common.config.RuoYiConfig;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.file.FileUploadUtils;
|
||||
import com.ruoyi.common.utils.file.FileUtils;
|
||||
import com.ruoyi.system.domain_yada.MapServicesVO;
|
||||
import com.ruoyi.system.domain_yada.ThematicMapDomain;
|
||||
import com.ruoyi.system.service_yada.ThematicMapService;
|
||||
import io.swagger.annotations.*;
|
||||
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.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 中国城市监测
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 10:55
|
||||
* 专题图模块
|
||||
* @author taco chen
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value = "/thematic-map")
|
||||
@Api(tags = "专题图模块")
|
||||
public class ThematicMapController {
|
||||
|
||||
@Resource
|
||||
private ThematicMapService thematicMapService;
|
||||
|
||||
/**
|
||||
* 查询方法
|
||||
* @param response
|
||||
* @param request
|
||||
* @return
|
||||
* 查询专题图
|
||||
* @param response 响应头
|
||||
* @return 参数类
|
||||
*/
|
||||
@RequestMapping(value = "/get/all",method = {RequestMethod.GET})
|
||||
public AjaxResult selectAllThematicMap(HttpServletResponse response, HttpServletRequest request)
|
||||
@ApiOperation("获取所有专题图")
|
||||
@ApiImplicitParams({})
|
||||
@ApiResponses({
|
||||
@ApiResponse(code =200,message = "请求成功"),
|
||||
@ApiResponse(code =401,message = "没有认证"),
|
||||
@ApiResponse(code =403,message = "权限不足"),
|
||||
@ApiResponse(code =404,message = "未找到")
|
||||
})
|
||||
@RequestMapping(value = "/get/all",method = {RequestMethod.POST})
|
||||
public AjaxResult selectAllThematicMap(HttpServletResponse response,@RequestBody ThematicMapDomain thematicMapDomain)
|
||||
{
|
||||
List<ThematicMapDomain> res= thematicMapService.selectAll();
|
||||
List<ThematicMapDomain> res= thematicMapService.selectAll(thematicMapDomain.getPictureType(),
|
||||
thematicMapDomain.getPictureTypeOne(),thematicMapDomain.getPictureTypeTwo());
|
||||
return AjaxResult.success(res);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 查询地图服务
|
||||
* @param response 响应头
|
||||
* @return 参数类
|
||||
*/
|
||||
@ApiOperation("所有地图服务")
|
||||
@ApiImplicitParams({})
|
||||
@ApiResponses({
|
||||
@ApiResponse(code =200,message = "请求成功"),
|
||||
@ApiResponse(code =401,message = "没有认证"),
|
||||
@ApiResponse(code =403,message = "权限不足"),
|
||||
@ApiResponse(code =404,message = "未找到")
|
||||
})
|
||||
@RequestMapping(value = "/get/map",method = {RequestMethod.GET})
|
||||
public AjaxResult selectMap(HttpServletResponse response,
|
||||
String chartType,String chartName,String particularYear)
|
||||
{
|
||||
List<MapServicesVO> res= thematicMapService.selMapServers(chartName,chartType,particularYear);
|
||||
return AjaxResult.success(res);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除方法
|
||||
* @param id
|
||||
* @return
|
||||
* @param id id
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/delete",method = {RequestMethod.DELETE})
|
||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "long", paramType = "path", dataTypeClass = long.class)
|
||||
public AjaxResult deleteThematicMap(@Param("id") Long id)
|
||||
{
|
||||
int num = thematicMapService.deleteById(id);
|
||||
@ -55,16 +95,22 @@ public class ThematicMapController {
|
||||
|
||||
/**
|
||||
* 新增方法
|
||||
* @param thematicMapDomain
|
||||
* @return
|
||||
* @param thematicMapDomain 新增实体类
|
||||
* @return 状态码
|
||||
*/
|
||||
@ApiOperation(value = "新增方法",httpMethod = "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);
|
||||
if (num>0) {
|
||||
return AjaxResult.success();
|
||||
}
|
||||
return AjaxResult.error();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -5,8 +5,12 @@ import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
|
||||
import com.ruoyi.system.domain_yada.UrbanVO;
|
||||
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
|
||||
import com.ruoyi.system.service_yada.IUrbanService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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;
|
||||
@ -14,13 +18,13 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 中国城市监测
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 10:55
|
||||
*/
|
||||
@Api(tags = "中国城市监测")
|
||||
@RestController
|
||||
@RequestMapping(value = "/business-service/api/Urban", produces = "application/json;charset=UTF-8")
|
||||
public class UrbanController {
|
||||
@ -29,23 +33,25 @@ public class UrbanController {
|
||||
|
||||
/**
|
||||
* 查询方法
|
||||
* @param response
|
||||
* @param request
|
||||
* @return
|
||||
* @param response 响应头
|
||||
* @param request 客户端请求
|
||||
* @return 参数类
|
||||
*/
|
||||
@RequestMapping(value = "/selectUrban",method = {RequestMethod.POST})
|
||||
public AjaxResult selectUrban(HttpServletResponse response, HttpServletRequest request)
|
||||
@RequestMapping(value = "/selectUrban",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
public AjaxResult selectUrban(HttpServletResponse response, HttpServletRequest request,@RequestBody UrbanVO urbanVO)
|
||||
{
|
||||
List<UrbanVO> eastVOSList= urbanService.selectUrban();
|
||||
List<UrbanVO> eastVOSList= urbanService.selectUrban(urbanVO.getName(),urbanVO.getParticularYear());
|
||||
return AjaxResult.success(eastVOSList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除方法
|
||||
* @param ID
|
||||
* @return
|
||||
* @param ID id
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/DelUrban",method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/DelUrban",method = {RequestMethod.DELETE})
|
||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||
public AjaxResult DelUrban(@Param("ID") String ID)
|
||||
{
|
||||
int NUM = urbanService.DelUrban(ID);
|
||||
@ -59,12 +65,15 @@ public class UrbanController {
|
||||
|
||||
/**
|
||||
* 新增方法
|
||||
* @param eastVOS
|
||||
* @return
|
||||
* @param eastVOS 新增实体类
|
||||
* @return 状态码
|
||||
*/
|
||||
@ApiOperation(value = "新增方法",httpMethod = "POST")
|
||||
@RequestMapping(value = "/IntoUrban",method = {RequestMethod.POST})
|
||||
public AjaxResult IntoUrban(UrbanVO eastVOS)
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "long", paramType = "path", dataTypeClass = long.class)
|
||||
public AjaxResult IntoUrban(@RequestBody UrbanVO eastVOS)
|
||||
{
|
||||
eastVOS.setCreateTime(LocalDateTime.now());
|
||||
int NUM = urbanService.IntoUrban(eastVOS);
|
||||
if (NUM>0)
|
||||
{
|
||||
|
@ -5,8 +5,12 @@ import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
|
||||
import com.ruoyi.system.domain_yada.VegetationCoverageVO;
|
||||
import com.ruoyi.system.service_yada.IAustraliaMiddleEastService;
|
||||
import com.ruoyi.system.service_yada.IVegetationCoverageService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
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;
|
||||
@ -14,13 +18,13 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 平均植被覆盖度和净初级生产力
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 10:56
|
||||
*/
|
||||
@Api(tags = "平均植被覆盖度和净初级生产力")
|
||||
@RestController
|
||||
@RequestMapping(value = "/business-service/api/Vegetation", produces = "application/json;charset=UTF-8")
|
||||
public class VegetationCoverageController {
|
||||
@ -29,23 +33,24 @@ public class VegetationCoverageController {
|
||||
|
||||
/**
|
||||
* 查询方法
|
||||
* @param response
|
||||
* @param request
|
||||
* @return
|
||||
* @return 参数类
|
||||
*/
|
||||
@RequestMapping(value = "/selectVegetation",method = {RequestMethod.POST})
|
||||
public AjaxResult selectVegetation(HttpServletResponse response, HttpServletRequest request)
|
||||
@RequestMapping(value = "/selectVegetation",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "查询方法",httpMethod = "GET")
|
||||
public AjaxResult selectVegetation(String type)
|
||||
{
|
||||
List<VegetationCoverageVO> eastVOSList= coverageService.selectVegetation();
|
||||
List<VegetationCoverageVO> eastVOSList= coverageService.selectVegetation(type);
|
||||
return AjaxResult.success(eastVOSList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除方法
|
||||
* @param ID
|
||||
* @return
|
||||
* @param ID id
|
||||
* @return 状态码
|
||||
*/
|
||||
@RequestMapping(value = "/DelVegetation",method = {RequestMethod.POST})
|
||||
@RequestMapping(value = "/DelVegetation",method = {RequestMethod.DELETE})
|
||||
@ApiOperation(value = "删除方法",httpMethod = "DELETE")
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", required = true, dataType = "long", paramType = "path", dataTypeClass = long.class)
|
||||
public AjaxResult DelVegetation(@Param("ID") String ID)
|
||||
{
|
||||
int NUM = coverageService.DelVegetation(ID);
|
||||
@ -59,12 +64,14 @@ public class VegetationCoverageController {
|
||||
|
||||
/**
|
||||
* 新增方法
|
||||
* @param eastVOS
|
||||
* @return
|
||||
* @param eastVOS 新增实体类
|
||||
* @return 状态码
|
||||
*/
|
||||
@ApiOperation(value = "新增方法",httpMethod = "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);
|
||||
if (NUM>0)
|
||||
{
|
||||
|
@ -0,0 +1,33 @@
|
||||
package com.ruoyi.web.controller.yada;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.domain_yada.Dictionary;
|
||||
import com.ruoyi.system.service_yada.IAorestCoverageService;
|
||||
import io.swagger.annotations.Api;
|
||||
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 java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/14 11:56
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value = "/dictionary", produces = "application/json;charset=UTF-8")
|
||||
public class dictionaryController
|
||||
{
|
||||
|
||||
@Resource
|
||||
private IAorestCoverageService service;
|
||||
|
||||
@RequestMapping(value = "/select",method = {RequestMethod.GET})
|
||||
public AjaxResult Dictionary(String type)
|
||||
{
|
||||
List<Dictionary> diclist=service.selectDic(type);
|
||||
return AjaxResult.success(diclist);
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
com.ruoyi.framework.web.service.CaptchaRedisService
|
@ -2,13 +2,17 @@
|
||||
spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
# driverClassName: com.mysql.cj.jdbc.Driver
|
||||
driver-class-name: org.postgresql.Driver
|
||||
druid:
|
||||
# 主库数据源
|
||||
master:
|
||||
url: jdbc:mysql://192.168.2.9:3306/nuoyi?useUnicode=true&characterEncoding=UTF-8&useSSL=false&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: saas
|
||||
password: XKrs123.
|
||||
#url: jdbc:postgresql://121.36.229.60: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
|
||||
password: song5325
|
||||
# url: jdbc:mysql://192.168.2.9:3306/nuoyi?AllowPublicKeyRetrieval=True&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||
# username: saas
|
||||
# password: XKrs123.
|
||||
# 从库数据源
|
||||
slave:
|
||||
# 从数据源开关/默认关闭
|
||||
@ -30,8 +34,9 @@ spring:
|
||||
minEvictableIdleTimeMillis: 300000
|
||||
# 配置一个连接在池中最大生存的时间,单位是毫秒
|
||||
maxEvictableIdleTimeMillis: 900000
|
||||
# 配置检测连接是否有效
|
||||
validationQuery: SELECT 1 FROM DUAL
|
||||
# 配置检测连接是否有效select * from pg_stat_activity
|
||||
# validationQuery: SELECT 1 FROM DUAL
|
||||
validationQuery: SELECT version()
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
@ -54,4 +59,4 @@ spring:
|
||||
merge-sql: true
|
||||
wall:
|
||||
config:
|
||||
multi-statement-allow: true
|
||||
multi-statement-allow: true
|
||||
|
@ -3,13 +3,13 @@ ruoyi:
|
||||
# 名称
|
||||
name: RuoYi
|
||||
# 版本
|
||||
version: 3.8.2
|
||||
version: 3.4.0
|
||||
# 版权年份
|
||||
copyrightYear: 2022
|
||||
copyrightYear: 2021
|
||||
# 实例演示开关
|
||||
demoEnabled: true
|
||||
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
||||
profile: D:/ruoyi/uploadPath
|
||||
profile: D:/ruoyi/uploadPath #/home/sjs/ruoyi/uploadPath
|
||||
# 获取ip地址开关
|
||||
addressEnabled: false
|
||||
# 验证码类型 math 数组计算 char 字符验证
|
||||
@ -25,13 +25,10 @@ server:
|
||||
tomcat:
|
||||
# tomcat的URI编码
|
||||
uri-encoding: UTF-8
|
||||
# 连接数满后的排队数,默认为100
|
||||
accept-count: 1000
|
||||
threads:
|
||||
# tomcat最大线程数,默认为200
|
||||
max: 800
|
||||
# Tomcat启动初始化的线程数,默认值10
|
||||
min-spare: 100
|
||||
# tomcat最大线程数,默认为200
|
||||
max-threads: 800
|
||||
# Tomcat启动初始化的线程数,默认值25
|
||||
min-spare-threads: 30
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
@ -41,22 +38,19 @@ logging:
|
||||
|
||||
# Spring配置
|
||||
spring:
|
||||
# config:
|
||||
# activate:
|
||||
# on-profile: druid
|
||||
profiles:
|
||||
active: druid
|
||||
# 资源信息
|
||||
messages:
|
||||
# 国际化资源文件路径
|
||||
basename: i18n/messages
|
||||
profiles:
|
||||
active: druid
|
||||
# 文件上传
|
||||
servlet:
|
||||
multipart:
|
||||
# 单个文件大小
|
||||
max-file-size: 10MB
|
||||
# 设置总上传的文件大小
|
||||
max-request-size: 20MB
|
||||
multipart:
|
||||
# 单个文件大小
|
||||
max-file-size: 10MB
|
||||
# 设置总上传的文件大小
|
||||
max-request-size: 20MB
|
||||
# 服务模块
|
||||
devtools:
|
||||
restart:
|
||||
@ -69,7 +63,7 @@ spring:
|
||||
# 端口,默认为6379
|
||||
port: 6379
|
||||
# 数据库索引
|
||||
database: 3
|
||||
database: 0
|
||||
# 密码
|
||||
password: sdust2020
|
||||
# 连接超时时间
|
||||
@ -87,27 +81,28 @@ spring:
|
||||
|
||||
# token配置
|
||||
token:
|
||||
# 令牌自定义标识
|
||||
header: Authorization
|
||||
# 令牌密钥
|
||||
secret: abcdefghijklmnopqrstuvwxyz
|
||||
# 令牌有效期(默认30分钟)
|
||||
expireTime: 30
|
||||
|
||||
# 令牌自定义标识
|
||||
header: Authorization
|
||||
# 令牌密钥
|
||||
secret: abcdefghijklmnopqrstuvwxyz
|
||||
# 令牌有效期(默认30分钟)
|
||||
expireTime: 300
|
||||
|
||||
# MyBatis配置
|
||||
mybatis:
|
||||
# 搜索指定包别名
|
||||
typeAliasesPackage: com.ruoyi.**.domain,com.ruoyi.**.domain_yada
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath*:mapper/**/*Mapper.xml,classpath*:mapper_yada/*Mapper.xml
|
||||
# 加载全局的配置文件
|
||||
configLocation: classpath:mybatis/mybatis-config.xml
|
||||
# 搜索指定包别名
|
||||
typeAliasesPackage: com.ruoyi.**.domain
|
||||
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
||||
mapperLocations: classpath*:mapper/**/*Mapper.xml
|
||||
# 加载全局的配置文件
|
||||
configLocation: classpath:mybatis/mybatis-config.xml
|
||||
|
||||
# PageHelper分页插件
|
||||
pagehelper:
|
||||
pagehelper:
|
||||
helperDialect: mysql
|
||||
reasonable: true
|
||||
supportMethodsArguments: true
|
||||
params: count=countSql
|
||||
params: count=countSql
|
||||
|
||||
# Swagger配置
|
||||
swagger:
|
||||
@ -116,12 +111,27 @@ swagger:
|
||||
# 请求前缀
|
||||
pathMapping: /dev-api
|
||||
|
||||
# 滑块验证码
|
||||
aj:
|
||||
captcha:
|
||||
cache-type: redis
|
||||
# blockPuzzle 滑块 clickWord 文字点选 default默认两者都实例化
|
||||
type: blockPuzzle
|
||||
# 右下角显示字
|
||||
water-mark: ruoyi.vip
|
||||
# 校验滑动拼图允许误差偏移量(默认5像素)
|
||||
slip-offset: 5
|
||||
# aes加密坐标开启或者禁用(true|false)
|
||||
aes-status: true
|
||||
# 滑动干扰项(0/1/2)
|
||||
interference-options: 2
|
||||
|
||||
# 防止XSS攻击
|
||||
xss:
|
||||
# 过滤开关
|
||||
enabled: true
|
||||
# 排除链接(多个用逗号分隔)
|
||||
excludes: /system/notice
|
||||
excludes: /system/notice/*
|
||||
# 匹配链接
|
||||
urlPatterns: /system/*,/monitor/*,/tool/*
|
||||
|
||||
|
@ -1,24 +1,6 @@
|
||||
Application Version: ${ruoyi.version}
|
||||
Spring Boot Version: ${spring-boot.version}
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// _ooOoo_ //
|
||||
// o6666666o //
|
||||
// 88" . "88 //
|
||||
// (| ^_^ |) //
|
||||
// O\ = /O //
|
||||
// ____/`---'\____ //
|
||||
// .' \\| |// `. //
|
||||
// / \\||| : |||// \ //
|
||||
// / _||||| -:- |||||- \ //
|
||||
// | | \\\ - /// | | //
|
||||
// | \_| ''\---/'' | | //
|
||||
// \ .-\__ `-` ___/-. / //
|
||||
// ___`. .' /--.--\ `. . ___ //
|
||||
// ."" '< `.___\_<|>_/___.' >'"". //
|
||||
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
|
||||
// \ \ `-. \_ __\ /__ _/ .-` / / //
|
||||
// ========`-.____`-.___\_____/___.-`____.-'======== //
|
||||
// `=---=' //
|
||||
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
|
||||
// 佛祖保佑 永不宕机 永无BUG //
|
||||
////////////////////////////////////////////////////////////////////
|
||||
_
|
||||
( )
|
||||
| |/') _ __ ___
|
||||
(`\/')| , < ( '__)/',__)
|
||||
> < | |\`\ | | \__, \
|
||||
(_/\_)(_) (_)(_) (____/
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="/home/ruoyi/logs" />
|
||||
<property name="log.path" value="/home/sjs/ruoyi/logs/yada" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
|
@ -0,0 +1,65 @@
|
||||
package com.ruoyi.common.utils.file;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/10 9:17
|
||||
*/
|
||||
public class WeatherUtils
|
||||
{
|
||||
|
||||
|
||||
public static String httpRequest(String requestUrl,Map params) {
|
||||
//buffer用于接受返回的字符
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
try {
|
||||
//拼接url连接
|
||||
URL url = new URL(requestUrl+"?"+urlencode(params));
|
||||
//打开http连接
|
||||
HttpURLConnection httpUrlConn = (HttpURLConnection) url.openConnection();
|
||||
httpUrlConn.setDoInput(true);
|
||||
httpUrlConn.setRequestMethod("GET");
|
||||
httpUrlConn.connect();
|
||||
|
||||
//获得输入
|
||||
InputStream inputStream = httpUrlConn.getInputStream();
|
||||
InputStreamReader inputStreamReader = new InputStreamReader(inputStream, "utf-8");
|
||||
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
|
||||
|
||||
//将bufferReader的值给放到buffer里
|
||||
String str = null;
|
||||
while ((str = bufferedReader.readLine()) != null) {
|
||||
buffer.append(str);
|
||||
}
|
||||
//关闭bufferReader和输入流
|
||||
bufferedReader.close();
|
||||
inputStreamReader.close();
|
||||
inputStream.close();
|
||||
//断开连接
|
||||
httpUrlConn.disconnect();
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
//返回字符串
|
||||
return buffer.toString();
|
||||
}
|
||||
|
||||
public static String urlencode(Map<String,Object>data) {
|
||||
//将map里的参数变成像 showapi_appid=###&showapi_sign=###&的样子
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (Map.Entry i : data.entrySet()) {
|
||||
try {
|
||||
sb.append(i.getKey()).append("=").append(URLEncoder.encode(i.getValue()+"","UTF-8")).append("&");
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -35,18 +35,26 @@
|
||||
<artifactId>druid-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 验证码 -->
|
||||
|
||||
<!-- 滑块验证码-->
|
||||
<dependency>
|
||||
<groupId>com.github.penggle</groupId>
|
||||
<artifactId>kaptcha</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<groupId>javax.servlet</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
<groupId>com.github.anji-plus</groupId>
|
||||
<artifactId>captcha-spring-boot-starter</artifactId>
|
||||
<version>1.2.7</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 验证码 -->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.github.penggle</groupId>-->
|
||||
<!-- <artifactId>kaptcha</artifactId>-->
|
||||
<!-- <exclusions>-->
|
||||
<!-- <exclusion>-->
|
||||
<!-- <artifactId>javax.servlet-api</artifactId>-->
|
||||
<!-- <groupId>javax.servlet</groupId>-->
|
||||
<!-- </exclusion>-->
|
||||
<!-- </exclusions>-->
|
||||
<!-- </dependency>-->
|
||||
|
||||
<!-- 获取系统信息 -->
|
||||
<dependency>
|
||||
<groupId>com.github.oshi</groupId>
|
||||
|
@ -1,83 +0,0 @@
|
||||
package com.ruoyi.framework.config;
|
||||
|
||||
import java.util.Properties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import com.google.code.kaptcha.impl.DefaultKaptcha;
|
||||
import com.google.code.kaptcha.util.Config;
|
||||
import static com.google.code.kaptcha.Constants.*;
|
||||
|
||||
/**
|
||||
* 验证码配置
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Configuration
|
||||
public class CaptchaConfig
|
||||
{
|
||||
@Bean(name = "captchaProducer")
|
||||
public DefaultKaptcha getKaptchaBean()
|
||||
{
|
||||
DefaultKaptcha defaultKaptcha = new DefaultKaptcha();
|
||||
Properties properties = new Properties();
|
||||
// 是否有边框 默认为true 我们可以自己设置yes,no
|
||||
properties.setProperty(KAPTCHA_BORDER, "yes");
|
||||
// 验证码文本字符颜色 默认为Color.BLACK
|
||||
properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_COLOR, "black");
|
||||
// 验证码图片宽度 默认为200
|
||||
properties.setProperty(KAPTCHA_IMAGE_WIDTH, "160");
|
||||
// 验证码图片高度 默认为50
|
||||
properties.setProperty(KAPTCHA_IMAGE_HEIGHT, "60");
|
||||
// 验证码文本字符大小 默认为40
|
||||
properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_SIZE, "38");
|
||||
// KAPTCHA_SESSION_KEY
|
||||
properties.setProperty(KAPTCHA_SESSION_CONFIG_KEY, "kaptchaCode");
|
||||
// 验证码文本字符长度 默认为5
|
||||
properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_LENGTH, "4");
|
||||
// 验证码文本字体样式 默认为new Font("Arial", 1, fontSize), new Font("Courier", 1, fontSize)
|
||||
properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial,Courier");
|
||||
// 图片样式 水纹com.google.code.kaptcha.impl.WaterRipple 鱼眼com.google.code.kaptcha.impl.FishEyeGimpy 阴影com.google.code.kaptcha.impl.ShadowGimpy
|
||||
properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy");
|
||||
Config config = new Config(properties);
|
||||
defaultKaptcha.setConfig(config);
|
||||
return defaultKaptcha;
|
||||
}
|
||||
|
||||
@Bean(name = "captchaProducerMath")
|
||||
public DefaultKaptcha getKaptchaBeanMath()
|
||||
{
|
||||
DefaultKaptcha defaultKaptcha = new DefaultKaptcha();
|
||||
Properties properties = new Properties();
|
||||
// 是否有边框 默认为true 我们可以自己设置yes,no
|
||||
properties.setProperty(KAPTCHA_BORDER, "yes");
|
||||
// 边框颜色 默认为Color.BLACK
|
||||
properties.setProperty(KAPTCHA_BORDER_COLOR, "105,179,90");
|
||||
// 验证码文本字符颜色 默认为Color.BLACK
|
||||
properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_COLOR, "blue");
|
||||
// 验证码图片宽度 默认为200
|
||||
properties.setProperty(KAPTCHA_IMAGE_WIDTH, "160");
|
||||
// 验证码图片高度 默认为50
|
||||
properties.setProperty(KAPTCHA_IMAGE_HEIGHT, "60");
|
||||
// 验证码文本字符大小 默认为40
|
||||
properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_SIZE, "35");
|
||||
// KAPTCHA_SESSION_KEY
|
||||
properties.setProperty(KAPTCHA_SESSION_CONFIG_KEY, "kaptchaCodeMath");
|
||||
// 验证码文本生成器
|
||||
properties.setProperty(KAPTCHA_TEXTPRODUCER_IMPL, "com.ruoyi.framework.config.KaptchaTextCreator");
|
||||
// 验证码文本字符间距 默认为2
|
||||
properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_SPACE, "3");
|
||||
// 验证码文本字符长度 默认为5
|
||||
properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_LENGTH, "6");
|
||||
// 验证码文本字体样式 默认为new Font("Arial", 1, fontSize), new Font("Courier", 1, fontSize)
|
||||
properties.setProperty(KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial,Courier");
|
||||
// 验证码噪点颜色 默认为Color.BLACK
|
||||
properties.setProperty(KAPTCHA_NOISE_COLOR, "white");
|
||||
// 干扰实现类
|
||||
properties.setProperty(KAPTCHA_NOISE_IMPL, "com.google.code.kaptcha.impl.NoNoise");
|
||||
// 图片样式 水纹com.google.code.kaptcha.impl.WaterRipple 鱼眼com.google.code.kaptcha.impl.FishEyeGimpy 阴影com.google.code.kaptcha.impl.ShadowGimpy
|
||||
properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy");
|
||||
Config config = new Config(properties);
|
||||
defaultKaptcha.setConfig(config);
|
||||
return defaultKaptcha;
|
||||
}
|
||||
}
|
@ -1,75 +0,0 @@
|
||||
package com.ruoyi.framework.config;
|
||||
|
||||
import java.util.Random;
|
||||
import com.google.code.kaptcha.text.impl.DefaultTextCreator;
|
||||
|
||||
/**
|
||||
* 验证码文本生成器
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class KaptchaTextCreator extends DefaultTextCreator
|
||||
{
|
||||
private static final String[] CNUMBERS = "0,1,2,3,4,5,6,7,8,9,10".split(",");
|
||||
|
||||
@Override
|
||||
public String getText()
|
||||
{
|
||||
Integer result = 0;
|
||||
Random random = new Random();
|
||||
int x = random.nextInt(10);
|
||||
int y = random.nextInt(10);
|
||||
StringBuilder suChinese = new StringBuilder();
|
||||
int randomoperands = (int) Math.round(Math.random() * 2);
|
||||
if (randomoperands == 0)
|
||||
{
|
||||
result = x * y;
|
||||
suChinese.append(CNUMBERS[x]);
|
||||
suChinese.append("*");
|
||||
suChinese.append(CNUMBERS[y]);
|
||||
}
|
||||
else if (randomoperands == 1)
|
||||
{
|
||||
if (!(x == 0) && y % x == 0)
|
||||
{
|
||||
result = y / x;
|
||||
suChinese.append(CNUMBERS[y]);
|
||||
suChinese.append("/");
|
||||
suChinese.append(CNUMBERS[x]);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = x + y;
|
||||
suChinese.append(CNUMBERS[x]);
|
||||
suChinese.append("+");
|
||||
suChinese.append(CNUMBERS[y]);
|
||||
}
|
||||
}
|
||||
else if (randomoperands == 2)
|
||||
{
|
||||
if (x >= y)
|
||||
{
|
||||
result = x - y;
|
||||
suChinese.append(CNUMBERS[x]);
|
||||
suChinese.append("-");
|
||||
suChinese.append(CNUMBERS[y]);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = y - x;
|
||||
suChinese.append(CNUMBERS[y]);
|
||||
suChinese.append("-");
|
||||
suChinese.append(CNUMBERS[x]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result = x + y;
|
||||
suChinese.append(CNUMBERS[x]);
|
||||
suChinese.append("+");
|
||||
suChinese.append(CNUMBERS[y]);
|
||||
}
|
||||
suChinese.append("=?@" + result);
|
||||
return suChinese.toString();
|
||||
}
|
||||
}
|
@ -97,7 +97,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
||||
// 过滤请求
|
||||
.authorizeRequests()
|
||||
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
||||
.antMatchers("/login", "/register", "/captchaImage").anonymous()
|
||||
// .antMatchers("/login", "/register", "/captchaImage").anonymous()
|
||||
.antMatchers("/login", "/register", "/captcha/get", "/captcha/check").permitAll()
|
||||
.antMatchers(
|
||||
HttpMethod.GET,
|
||||
"/",
|
||||
@ -110,9 +111,10 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
|
||||
.antMatchers("/swagger-ui.html").anonymous()
|
||||
.antMatchers("/swagger-resources/**").anonymous()
|
||||
.antMatchers("/webjars/**").anonymous()
|
||||
.antMatchers("/login", "/captcha/get", "/captcha/check").permitAll()
|
||||
.antMatchers("/*/api-docs").anonymous()
|
||||
.antMatchers("/druid/**").anonymous()
|
||||
// 除上面外的所有请求全部需要鉴权认证
|
||||
// // 除上面外的所有请求全部需要鉴权认证
|
||||
.anyRequest().authenticated()
|
||||
.and()
|
||||
.headers().frameOptions().disable();
|
||||
|
@ -0,0 +1,53 @@
|
||||
package com.ruoyi.framework.web.service;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
import com.anji.captcha.service.CaptchaCacheService;
|
||||
|
||||
/**
|
||||
* 自定义redis验证码缓存实现类
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class CaptchaRedisService implements CaptchaCacheService
|
||||
{
|
||||
@Autowired
|
||||
private StringRedisTemplate stringRedisTemplate;
|
||||
|
||||
@Override
|
||||
public void set(String key, String value, long expiresInSeconds)
|
||||
{
|
||||
stringRedisTemplate.opsForValue().set(key, value, expiresInSeconds, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean exists(String key)
|
||||
{
|
||||
return stringRedisTemplate.hasKey(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void delete(String key)
|
||||
{
|
||||
stringRedisTemplate.delete(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String get(String key)
|
||||
{
|
||||
return stringRedisTemplate.opsForValue().get(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long increment(String key, long val)
|
||||
{
|
||||
return stringRedisTemplate.opsForValue().increment(key, val);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String type()
|
||||
{
|
||||
return "redis";
|
||||
}
|
||||
}
|
@ -2,32 +2,32 @@ package com.ruoyi.framework.web.service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.security.authentication.AuthenticationManager;
|
||||
import org.springframework.security.authentication.BadCredentialsException;
|
||||
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
|
||||
import org.springframework.security.core.Authentication;
|
||||
import org.springframework.stereotype.Component;
|
||||
import com.anji.captcha.model.common.ResponseModel;
|
||||
import com.anji.captcha.model.vo.CaptchaVO;
|
||||
import com.anji.captcha.service.CaptchaService;
|
||||
import com.ruoyi.common.constant.Constants;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||
import com.ruoyi.common.core.redis.RedisCache;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.common.exception.user.CaptchaException;
|
||||
import com.ruoyi.common.exception.user.CaptchaExpireException;
|
||||
import com.ruoyi.common.exception.user.UserPasswordNotMatchException;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.MessageUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.utils.ServletUtils;
|
||||
import com.ruoyi.common.utils.ip.IpUtils;
|
||||
import com.ruoyi.framework.manager.AsyncManager;
|
||||
import com.ruoyi.framework.manager.factory.AsyncFactory;
|
||||
import com.ruoyi.system.service.ISysConfigService;
|
||||
import com.ruoyi.system.service.ISysUserService;
|
||||
|
||||
/**
|
||||
* 登录校验方法
|
||||
*
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Component
|
||||
@ -39,31 +39,31 @@ public class SysLoginService
|
||||
@Resource
|
||||
private AuthenticationManager authenticationManager;
|
||||
|
||||
@Autowired
|
||||
private RedisCache redisCache;
|
||||
|
||||
@Autowired
|
||||
private ISysUserService userService;
|
||||
|
||||
@Autowired
|
||||
private ISysConfigService configService;
|
||||
@Lazy
|
||||
private CaptchaService captchaService;
|
||||
|
||||
/**
|
||||
* 登录验证
|
||||
*
|
||||
*
|
||||
* @param username 用户名
|
||||
* @param password 密码
|
||||
* @param code 验证码
|
||||
* @param uuid 唯一标识
|
||||
* @return 结果
|
||||
*/
|
||||
public String login(String username, String password, String code, String uuid)
|
||||
public String login(String username, String password, String code)
|
||||
{
|
||||
boolean captchaOnOff = configService.selectCaptchaOnOff();
|
||||
// 验证码开关
|
||||
if (captchaOnOff)
|
||||
CaptchaVO captchaVO = new CaptchaVO();
|
||||
captchaVO.setCaptchaVerification(code);
|
||||
ResponseModel response = captchaService.verification(captchaVO);
|
||||
if (!response.isSuccess())
|
||||
{
|
||||
validateCaptcha(username, code, uuid);
|
||||
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL,
|
||||
MessageUtils.message("user.jcaptcha.error")));
|
||||
throw new CaptchaException();
|
||||
}
|
||||
// 用户验证
|
||||
Authentication authentication = null;
|
||||
@ -88,36 +88,10 @@ public class SysLoginService
|
||||
}
|
||||
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success")));
|
||||
LoginUser loginUser = (LoginUser) authentication.getPrincipal();
|
||||
recordLoginInfo(loginUser.getUserId());
|
||||
// 生成token
|
||||
return tokenService.createToken(loginUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验验证码
|
||||
*
|
||||
* @param username 用户名
|
||||
* @param code 验证码
|
||||
* @param uuid 唯一标识
|
||||
* @return 结果
|
||||
*/
|
||||
public void validateCaptcha(String username, String code, String uuid)
|
||||
{
|
||||
String verifyKey = Constants.CAPTCHA_CODE_KEY + StringUtils.nvl(uuid, "");
|
||||
String captcha = redisCache.getCacheObject(verifyKey);
|
||||
redisCache.deleteObject(verifyKey);
|
||||
if (captcha == null)
|
||||
{
|
||||
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.expire")));
|
||||
throw new CaptchaExpireException();
|
||||
}
|
||||
if (!code.equalsIgnoreCase(captcha))
|
||||
{
|
||||
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.jcaptcha.error")));
|
||||
throw new CaptchaException();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 记录登录信息
|
||||
*
|
||||
@ -131,4 +105,4 @@ public class SysLoginService
|
||||
sysUser.setLoginDate(DateUtils.getNowDate());
|
||||
userService.updateUserProfile(sysUser);
|
||||
}
|
||||
}
|
||||
}
|
@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="dictType != null and dictType != ''">#{dictType},</if>
|
||||
<if test="sort != null">#{sort},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
sysdate()
|
||||
current_timestamp
|
||||
)
|
||||
</insert>
|
||||
|
||||
@ -105,7 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
dict_type = #{dictType},
|
||||
sort = #{sort},
|
||||
update_by = #{updateBy},
|
||||
update_time = sysdate()
|
||||
update_time = current_timestamp
|
||||
</set>
|
||||
where column_id = #{columnId}
|
||||
</update>
|
||||
|
@ -164,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="genPath != null and genPath != ''">#{genPath},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
sysdate()
|
||||
current_timestamp
|
||||
)
|
||||
</insert>
|
||||
|
||||
@ -187,7 +187,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="options != null and options != ''">options = #{options},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
update_time = sysdate()
|
||||
update_time = current_timestamp
|
||||
</set>
|
||||
where table_id = #{tableId}
|
||||
</update>
|
||||
|
@ -86,7 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="jobMessage != null and jobMessage != ''">#{jobMessage},</if>
|
||||
<if test="status != null and status != ''">#{status},</if>
|
||||
<if test="exceptionInfo != null and exceptionInfo != ''">#{exceptionInfo},</if>
|
||||
sysdate()
|
||||
current_timestamp
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
@ -75,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="status !=null">status = #{status},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
update_time = sysdate()
|
||||
update_time = current_timestamp
|
||||
</set>
|
||||
where job_id = #{jobId}
|
||||
</update>
|
||||
@ -104,7 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="status != null and status != ''">#{status},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
sysdate()
|
||||
current_timestamp
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
@ -10,7 +10,9 @@ public class AustraliaMiddleEastVO extends SysBaseEntity
|
||||
{
|
||||
private String id;
|
||||
|
||||
private LocalDate yearMonth;
|
||||
private String yearMonth;
|
||||
|
||||
private String month;
|
||||
|
||||
private Double sstAnomalyIndex;
|
||||
|
||||
@ -20,10 +22,6 @@ public class AustraliaMiddleEastVO extends SysBaseEntity
|
||||
|
||||
private Double vaiAnomolies;
|
||||
|
||||
private String createdBy;
|
||||
|
||||
private LocalDate createdTime;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
@ -32,11 +30,11 @@ public class AustraliaMiddleEastVO extends SysBaseEntity
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public LocalDate getYearMonth() {
|
||||
public String getYearMonth() {
|
||||
return yearMonth;
|
||||
}
|
||||
|
||||
public void setYearMonth(LocalDate yearMonth) {
|
||||
public void setYearMonth(String yearMonth) {
|
||||
this.yearMonth = yearMonth;
|
||||
}
|
||||
|
||||
@ -72,19 +70,11 @@ public class AustraliaMiddleEastVO extends SysBaseEntity
|
||||
this.vaiAnomolies = vaiAnomolies;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
public String getMonth() {
|
||||
return month;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public LocalDate getCreatedTime() {
|
||||
return createdTime;
|
||||
}
|
||||
|
||||
public void setCreatedTime(LocalDate createdTime) {
|
||||
this.createdTime = createdTime;
|
||||
public void setMonth(String month) {
|
||||
this.month = month;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,110 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/10 10:04
|
||||
*/
|
||||
public class CastsVo
|
||||
{
|
||||
private String date;
|
||||
|
||||
private String week;
|
||||
|
||||
private String dayweather;
|
||||
|
||||
private String nightweather;
|
||||
|
||||
private String daytemp;
|
||||
|
||||
private String nighttemp;
|
||||
|
||||
private String daywind;
|
||||
|
||||
private String nightwind;
|
||||
|
||||
private String daypower;
|
||||
|
||||
private String nightpower;
|
||||
|
||||
public String getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
public void setDate(String date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
public String getWeek() {
|
||||
return week;
|
||||
}
|
||||
|
||||
public void setWeek(String week) {
|
||||
this.week = week;
|
||||
}
|
||||
|
||||
public String getDayweather() {
|
||||
return dayweather;
|
||||
}
|
||||
|
||||
public void setDayweather(String dayweather) {
|
||||
this.dayweather = dayweather;
|
||||
}
|
||||
|
||||
public String getNightweather() {
|
||||
return nightweather;
|
||||
}
|
||||
|
||||
public void setNightweather(String nightweather) {
|
||||
this.nightweather = nightweather;
|
||||
}
|
||||
|
||||
public String getDaytemp() {
|
||||
return daytemp;
|
||||
}
|
||||
|
||||
public void setDaytemp(String daytemp) {
|
||||
this.daytemp = daytemp;
|
||||
}
|
||||
|
||||
public String getNighttemp() {
|
||||
return nighttemp;
|
||||
}
|
||||
|
||||
public void setNighttemp(String nighttemp) {
|
||||
this.nighttemp = nighttemp;
|
||||
}
|
||||
|
||||
public String getDaywind() {
|
||||
return daywind;
|
||||
}
|
||||
|
||||
public void setDaywind(String daywind) {
|
||||
this.daywind = daywind;
|
||||
}
|
||||
|
||||
public String getNightwind() {
|
||||
return nightwind;
|
||||
}
|
||||
|
||||
public void setNightwind(String nightwind) {
|
||||
this.nightwind = nightwind;
|
||||
}
|
||||
|
||||
public String getDaypower() {
|
||||
return daypower;
|
||||
}
|
||||
|
||||
public void setDaypower(String daypower) {
|
||||
this.daypower = daypower;
|
||||
}
|
||||
|
||||
public String getNightpower() {
|
||||
return nightpower;
|
||||
}
|
||||
|
||||
public void setNightpower(String nightpower) {
|
||||
this.nightpower = nightpower;
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/1 10:15
|
||||
*/
|
||||
public class CityFocusVO extends SysBaseEntity
|
||||
{
|
||||
private String id;
|
||||
|
||||
private String xAxis;
|
||||
|
||||
private String yAxis;
|
||||
|
||||
private String city;
|
||||
|
||||
private String year;
|
||||
|
||||
private String xAxisPy;
|
||||
|
||||
private String yAxisPy;
|
||||
|
||||
private String cityEn;
|
||||
|
||||
private String country;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getxAxis() {
|
||||
return xAxis;
|
||||
}
|
||||
|
||||
public void setxAxis(String xAxis) {
|
||||
this.xAxis = xAxis;
|
||||
}
|
||||
|
||||
public String getyAxis() {
|
||||
return yAxis;
|
||||
}
|
||||
|
||||
public void setyAxis(String yAxis) {
|
||||
this.yAxis = yAxis;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getYear() {
|
||||
return year;
|
||||
}
|
||||
|
||||
public void setYear(String year) {
|
||||
this.year = year;
|
||||
}
|
||||
|
||||
public String getxAxisPy() {
|
||||
return xAxisPy;
|
||||
}
|
||||
|
||||
public void setxAxisPy(String xAxisPy) {
|
||||
this.xAxisPy = xAxisPy;
|
||||
}
|
||||
|
||||
public String getyAxisPy() {
|
||||
return yAxisPy;
|
||||
}
|
||||
|
||||
public void setyAxisPy(String yAxisPy) {
|
||||
this.yAxisPy = yAxisPy;
|
||||
}
|
||||
|
||||
public String getCityEn() {
|
||||
return cityEn;
|
||||
}
|
||||
|
||||
public void setCityEn(String cityEn) {
|
||||
this.cityEn = cityEn;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
}
|
@ -0,0 +1,137 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/1 13:55
|
||||
*/
|
||||
public class CityInformation
|
||||
{
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
private String city;
|
||||
/**
|
||||
* 面积
|
||||
*/
|
||||
private String area;
|
||||
/**
|
||||
* 年份
|
||||
*/
|
||||
private String year;
|
||||
/**
|
||||
* 不透水面面积km
|
||||
*/
|
||||
private String imperviousSurfaceArea;
|
||||
/**
|
||||
* 不透水面覆盖率%
|
||||
*/
|
||||
private String imperviousSurfaceCoverage;
|
||||
/**
|
||||
* 不透水面扩张速度km/y
|
||||
*/
|
||||
private String speed;
|
||||
/**
|
||||
* 不透水面扩张强度%
|
||||
*/
|
||||
private String strength;
|
||||
/**
|
||||
* 不透水面扩张贡献度%
|
||||
*/
|
||||
private String contribution;
|
||||
/**
|
||||
* 所属国家
|
||||
*/
|
||||
private String superior;
|
||||
|
||||
private String country;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getArea() {
|
||||
return area;
|
||||
}
|
||||
|
||||
public void setArea(String area) {
|
||||
this.area = area;
|
||||
}
|
||||
|
||||
public String getYear() {
|
||||
return year;
|
||||
}
|
||||
|
||||
public void setYear(String year) {
|
||||
this.year = year;
|
||||
}
|
||||
|
||||
public String getImperviousSurfaceArea() {
|
||||
return imperviousSurfaceArea;
|
||||
}
|
||||
|
||||
public void setImperviousSurfaceArea(String imperviousSurfaceArea) {
|
||||
this.imperviousSurfaceArea = imperviousSurfaceArea;
|
||||
}
|
||||
|
||||
public String getImperviousSurfaceCoverage() {
|
||||
return imperviousSurfaceCoverage;
|
||||
}
|
||||
|
||||
public void setImperviousSurfaceCoverage(String imperviousSurfaceCoverage) {
|
||||
this.imperviousSurfaceCoverage = imperviousSurfaceCoverage;
|
||||
}
|
||||
|
||||
public String getSpeed() {
|
||||
return speed;
|
||||
}
|
||||
|
||||
public void setSpeed(String speed) {
|
||||
this.speed = speed;
|
||||
}
|
||||
|
||||
public String getStrength() {
|
||||
return strength;
|
||||
}
|
||||
|
||||
public void setStrength(String strength) {
|
||||
this.strength = strength;
|
||||
}
|
||||
|
||||
public String getContribution() {
|
||||
return contribution;
|
||||
}
|
||||
|
||||
public void setContribution(String contribution) {
|
||||
this.contribution = contribution;
|
||||
}
|
||||
|
||||
public String getSuperior() {
|
||||
return superior;
|
||||
}
|
||||
|
||||
public void setSuperior(String superior) {
|
||||
this.superior = superior;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/24 9:51
|
||||
*/
|
||||
public class CityVo extends SysBaseEntity
|
||||
{
|
||||
private String id;
|
||||
|
||||
private String city;
|
||||
|
||||
private String area;
|
||||
|
||||
private String year;
|
||||
|
||||
private Double imperviousSurfaceArea;
|
||||
|
||||
private Double imperviousSurfaceCoverage;
|
||||
|
||||
public Double getImperviousSurfaceExpansionSpeed() {
|
||||
return imperviousSurfaceExpansionSpeed;
|
||||
}
|
||||
|
||||
public void setImperviousSurfaceExpansionSpeed(Double imperviousSurfaceExpansionSpeed) {
|
||||
this.imperviousSurfaceExpansionSpeed = imperviousSurfaceExpansionSpeed;
|
||||
}
|
||||
|
||||
private Double imperviousSurfaceExpansionSpeed;
|
||||
|
||||
private Double imperviousSurfaceExpansionStrength;
|
||||
|
||||
private Double imperviousSurfaceExpansionCntribution ;
|
||||
|
||||
private String superior;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
|
||||
public String getYear() {
|
||||
return year;
|
||||
}
|
||||
|
||||
public void setYear(String year) {
|
||||
this.year = year;
|
||||
}
|
||||
|
||||
|
||||
public String getArea() {
|
||||
return area;
|
||||
}
|
||||
|
||||
public void setArea(String area) {
|
||||
this.area = area;
|
||||
}
|
||||
|
||||
public Double getImperviousSurfaceArea() {
|
||||
return imperviousSurfaceArea;
|
||||
}
|
||||
|
||||
public void setImperviousSurfaceArea(Double imperviousSurfaceArea) {
|
||||
this.imperviousSurfaceArea = imperviousSurfaceArea;
|
||||
}
|
||||
|
||||
public Double getImperviousSurfaceCoverage() {
|
||||
return imperviousSurfaceCoverage;
|
||||
}
|
||||
|
||||
public void setImperviousSurfaceCoverage(Double imperviousSurfaceCoverage) {
|
||||
this.imperviousSurfaceCoverage = imperviousSurfaceCoverage;
|
||||
}
|
||||
|
||||
public Double getImperviousSurfaceExpansionStrength() {
|
||||
return imperviousSurfaceExpansionStrength;
|
||||
}
|
||||
|
||||
public void setImperviousSurfaceExpansionStrength(Double imperviousSurfaceExpansionStrength) {
|
||||
this.imperviousSurfaceExpansionStrength = imperviousSurfaceExpansionStrength;
|
||||
}
|
||||
|
||||
public Double getImperviousSurfaceExpansionCntribution() {
|
||||
return imperviousSurfaceExpansionCntribution;
|
||||
}
|
||||
|
||||
public void setImperviousSurfaceExpansionCntribution(Double imperviousSurfaceExpansionCntribution) {
|
||||
this.imperviousSurfaceExpansionCntribution = imperviousSurfaceExpansionCntribution;
|
||||
}
|
||||
|
||||
public String getSuperior() {
|
||||
return superior;
|
||||
}
|
||||
|
||||
public void setSuperior(String superior) {
|
||||
this.superior = superior;
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/30 8:50
|
||||
*/
|
||||
//字典表
|
||||
public class Dictionary extends SysBaseEntity
|
||||
{
|
||||
private String codingType;
|
||||
|
||||
private String codingType1;
|
||||
|
||||
private String codingType2;
|
||||
|
||||
private String dictionary;
|
||||
|
||||
private String name;
|
||||
|
||||
private String nameEn;
|
||||
|
||||
public String getCodingType1() {
|
||||
return codingType1;
|
||||
}
|
||||
|
||||
public void setCodingType1(String codingType1) {
|
||||
this.codingType1 = codingType1;
|
||||
}
|
||||
|
||||
public String getCodingType2() {
|
||||
return codingType2;
|
||||
}
|
||||
|
||||
public void setCodingType2(String codingType2) {
|
||||
this.codingType2 = codingType2;
|
||||
}
|
||||
|
||||
public String getCodingType() {
|
||||
return codingType;
|
||||
}
|
||||
|
||||
public void setCodingType(String codingType) {
|
||||
this.codingType = codingType;
|
||||
}
|
||||
|
||||
public String getDictionary() {
|
||||
return dictionary;
|
||||
}
|
||||
|
||||
public void setDictionary(String dictionary) {
|
||||
this.dictionary = dictionary;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNameEn() {
|
||||
return nameEn;
|
||||
}
|
||||
|
||||
public void setNameEn(String nameEn) {
|
||||
this.nameEn = nameEn;
|
||||
}
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/10 10:02
|
||||
*/
|
||||
public class ForecastVo {
|
||||
|
||||
private String city;
|
||||
|
||||
private String adcode;
|
||||
|
||||
private String province;
|
||||
|
||||
private String reporttime;
|
||||
|
||||
private List<CastsVo> casts;
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getAdcode() {
|
||||
return adcode;
|
||||
}
|
||||
|
||||
public void setAdcode(String adcode) {
|
||||
this.adcode = adcode;
|
||||
}
|
||||
|
||||
public String getProvince() {
|
||||
return province;
|
||||
}
|
||||
|
||||
public void setProvince(String province) {
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
public String getReporttime() {
|
||||
return reporttime;
|
||||
}
|
||||
|
||||
public void setReporttime(String reporttime) {
|
||||
this.reporttime = reporttime;
|
||||
}
|
||||
|
||||
public List<CastsVo> getCasts() {
|
||||
return casts;
|
||||
}
|
||||
|
||||
public void setCasts(List<CastsVo> casts) {
|
||||
this.casts = casts;
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,9 @@ public class GlobalTypeVO extends SysBaseEntity {
|
||||
|
||||
private Double areaProportion;
|
||||
|
||||
private String area;
|
||||
private Double area;
|
||||
|
||||
private Double areaChange;
|
||||
|
||||
private int particularYear;
|
||||
|
||||
@ -51,11 +53,11 @@ public class GlobalTypeVO extends SysBaseEntity {
|
||||
this.areaProportion = areaProportion;
|
||||
}
|
||||
|
||||
public String getArea() {
|
||||
public Double getArea() {
|
||||
return area;
|
||||
}
|
||||
|
||||
public void setArea(String area) {
|
||||
public void setArea(Double area) {
|
||||
this.area = area;
|
||||
}
|
||||
|
||||
@ -66,4 +68,12 @@ public class GlobalTypeVO extends SysBaseEntity {
|
||||
public void setParticularYear(int particularYear) {
|
||||
this.particularYear = particularYear;
|
||||
}
|
||||
|
||||
public Double getAreaChange() {
|
||||
return areaChange;
|
||||
}
|
||||
|
||||
public void setAreaChange(Double areaChange) {
|
||||
this.areaChange = areaChange;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,110 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/10 9:57
|
||||
*/
|
||||
public class LivesVo
|
||||
{
|
||||
/**
|
||||
* 省份名
|
||||
*/
|
||||
private String province;
|
||||
/**
|
||||
* 城市名
|
||||
*/
|
||||
private String city;
|
||||
/**
|
||||
* 区域编码
|
||||
*/
|
||||
private String adcode;
|
||||
/**
|
||||
*天气现象
|
||||
*/
|
||||
private String weather;
|
||||
|
||||
private String temperature;
|
||||
|
||||
private String winddirection;
|
||||
|
||||
private String windpower;
|
||||
|
||||
private String humidity;
|
||||
|
||||
private LocalDateTime reporttime;
|
||||
|
||||
public String getProvince() {
|
||||
return province;
|
||||
}
|
||||
|
||||
public void setProvince(String province) {
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getAdcode() {
|
||||
return adcode;
|
||||
}
|
||||
|
||||
public void setAdcode(String adcode) {
|
||||
this.adcode = adcode;
|
||||
}
|
||||
|
||||
public String getWeather() {
|
||||
return weather;
|
||||
}
|
||||
|
||||
public void setWeather(String weather) {
|
||||
this.weather = weather;
|
||||
}
|
||||
|
||||
public String getTemperature() {
|
||||
return temperature;
|
||||
}
|
||||
|
||||
public void setTemperature(String temperature) {
|
||||
this.temperature = temperature;
|
||||
}
|
||||
|
||||
public String getWinddirection() {
|
||||
return winddirection;
|
||||
}
|
||||
|
||||
public void setWinddirection(String winddirection) {
|
||||
this.winddirection = winddirection;
|
||||
}
|
||||
|
||||
public String getWindpower() {
|
||||
return windpower;
|
||||
}
|
||||
|
||||
public void setWindpower(String windpower) {
|
||||
this.windpower = windpower;
|
||||
}
|
||||
|
||||
public String getHumidity() {
|
||||
return humidity;
|
||||
}
|
||||
|
||||
public void setHumidity(String humidity) {
|
||||
this.humidity = humidity;
|
||||
}
|
||||
|
||||
public LocalDateTime getReporttime() {
|
||||
return reporttime;
|
||||
}
|
||||
|
||||
public void setReporttime(LocalDateTime reporttime) {
|
||||
this.reporttime = reporttime;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
/**
|
||||
* 地图服务类
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/30 15:48
|
||||
*/
|
||||
public class MapServicesVO extends SysBaseEntity
|
||||
{
|
||||
private String id;
|
||||
/**
|
||||
* 地图类型
|
||||
*/
|
||||
private String chartType;
|
||||
/**
|
||||
* 地图名称
|
||||
*/
|
||||
private String chartName;
|
||||
/**
|
||||
* 图层
|
||||
*/
|
||||
private String layer;
|
||||
/**
|
||||
* 年份
|
||||
*/
|
||||
private String particularYear;
|
||||
/**
|
||||
* 分辨率
|
||||
*/
|
||||
private String resolvingPower;
|
||||
|
||||
private String serviceType;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getChartType() {
|
||||
return chartType;
|
||||
}
|
||||
|
||||
public void setChartType(String chartType) {
|
||||
this.chartType = chartType;
|
||||
}
|
||||
|
||||
public String getChartName() {
|
||||
return chartName;
|
||||
}
|
||||
|
||||
public void setChartName(String chartName) {
|
||||
this.chartName = chartName;
|
||||
}
|
||||
|
||||
public String getLayer() {
|
||||
return layer;
|
||||
}
|
||||
|
||||
public void setLayer(String layer) {
|
||||
this.layer = layer;
|
||||
}
|
||||
|
||||
public String getParticularYear() {
|
||||
return particularYear;
|
||||
}
|
||||
|
||||
public void setParticularYear(String particularYear) {
|
||||
this.particularYear = particularYear;
|
||||
}
|
||||
|
||||
public String getResolvingPower() {
|
||||
return resolvingPower;
|
||||
}
|
||||
|
||||
public void setResolvingPower(String resolvingPower) {
|
||||
this.resolvingPower = resolvingPower;
|
||||
}
|
||||
|
||||
public String getServiceType() {
|
||||
return serviceType;
|
||||
}
|
||||
|
||||
public void setServiceType(String serviceType) {
|
||||
this.serviceType = serviceType;
|
||||
}
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/1 11:08
|
||||
*/
|
||||
public class Orientation extends SysBaseEntity{
|
||||
|
||||
private String id;
|
||||
|
||||
private String city;
|
||||
/**
|
||||
* 扩张方位
|
||||
*/
|
||||
private String position;
|
||||
|
||||
private String areaValue;
|
||||
|
||||
private String superior;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void setPosition(String position) {
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
public String getAreaValue() {
|
||||
return areaValue;
|
||||
}
|
||||
|
||||
public void setAreaValue(String areaValue) {
|
||||
this.areaValue = areaValue;
|
||||
}
|
||||
|
||||
public String getSuperior() {
|
||||
return superior;
|
||||
}
|
||||
|
||||
public void setSuperior(String superior) {
|
||||
this.superior = superior;
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/24 15:04
|
||||
*/
|
||||
public class OrientationVO extends SysBaseEntity
|
||||
{
|
||||
private String id;
|
||||
|
||||
private String city;
|
||||
|
||||
private String position;
|
||||
|
||||
private Double areaValue;
|
||||
|
||||
private String superior;
|
||||
|
||||
|
||||
private String country;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void setPosition(String position) {
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
public Double getAreaValue() {
|
||||
return areaValue;
|
||||
}
|
||||
|
||||
public void setAreaValue(Double areaValue) {
|
||||
this.areaValue = areaValue;
|
||||
}
|
||||
|
||||
public String getSuperior() {
|
||||
return superior;
|
||||
}
|
||||
|
||||
public void setSuperior(String superior) {
|
||||
this.superior = superior;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@ package com.ruoyi.system.domain_yada;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
@ -22,11 +23,11 @@ public class RegionVGIVO implements Serializable {
|
||||
|
||||
private Double grassland;
|
||||
|
||||
private Integer particularYear;
|
||||
private String particularYear;
|
||||
|
||||
private String createdBy;
|
||||
|
||||
private LocalDate createdTime;
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
@ -84,11 +85,11 @@ public class RegionVGIVO implements Serializable {
|
||||
this.grassland = grassland;
|
||||
}
|
||||
|
||||
public Integer getParticularYear() {
|
||||
public String getParticularYear() {
|
||||
return particularYear;
|
||||
}
|
||||
|
||||
public void setParticularYear(Integer particularYear) {
|
||||
public void setParticularYear(String particularYear) {
|
||||
this.particularYear = particularYear;
|
||||
}
|
||||
|
||||
@ -100,11 +101,11 @@ public class RegionVGIVO implements Serializable {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public LocalDate getCreatedTime() {
|
||||
public LocalDateTime getCreatedTime() {
|
||||
return createdTime;
|
||||
}
|
||||
|
||||
public void setCreatedTime(LocalDate createdTime) {
|
||||
public void setCreatedTime(LocalDateTime createdTime) {
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,78 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/20 11:48
|
||||
*/
|
||||
public class SpecialVO extends SysBaseEntity
|
||||
{
|
||||
private String id;
|
||||
|
||||
private String fileName;
|
||||
|
||||
private String dateTime;
|
||||
|
||||
private String spaceDistinguish;
|
||||
|
||||
private String timeDistinguish;
|
||||
|
||||
private String zone;
|
||||
|
||||
private String filePath;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
|
||||
public void setDateTime(String dateTime) {
|
||||
this.dateTime = dateTime;
|
||||
}
|
||||
|
||||
public String getSpaceDistinguish() {
|
||||
return spaceDistinguish;
|
||||
}
|
||||
|
||||
public void setSpaceDistinguish(String spaceDistinguish) {
|
||||
this.spaceDistinguish = spaceDistinguish;
|
||||
}
|
||||
|
||||
public String getTimeDistinguish() {
|
||||
return timeDistinguish;
|
||||
}
|
||||
|
||||
public void setTimeDistinguish(String timeDistinguish) {
|
||||
this.timeDistinguish = timeDistinguish;
|
||||
}
|
||||
|
||||
public String getZone() {
|
||||
return zone;
|
||||
}
|
||||
|
||||
public void setZone(String zone) {
|
||||
this.zone = zone;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
}
|
@ -11,6 +11,12 @@ public class ThematicMapDomain extends SysBaseEntity {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String pictureCode;
|
||||
|
||||
private String pictureTypeOne;
|
||||
|
||||
private String pictureTypeTwo;
|
||||
|
||||
private String pictureZh;
|
||||
|
||||
private String pictureEn;
|
||||
@ -27,8 +33,35 @@ public class ThematicMapDomain extends SysBaseEntity {
|
||||
|
||||
private String createdBy;
|
||||
|
||||
private String year;
|
||||
|
||||
private LocalDateTime createdTime;
|
||||
|
||||
public String getPictureCode() {
|
||||
return pictureCode;
|
||||
}
|
||||
|
||||
public void setPictureCode(String pictureCode) {
|
||||
this.pictureCode = pictureCode;
|
||||
}
|
||||
|
||||
public String getPictureTypeOne() {
|
||||
return pictureTypeOne;
|
||||
}
|
||||
|
||||
public void setPictureTypeOne(String pictureTypeOne) {
|
||||
this.pictureTypeOne = pictureTypeOne;
|
||||
}
|
||||
|
||||
public String getPictureTypeTwo() {
|
||||
return pictureTypeTwo;
|
||||
}
|
||||
|
||||
public void setPictureTypeTwo(String pictureTypeTwo) {
|
||||
this.pictureTypeTwo = pictureTypeTwo;
|
||||
}
|
||||
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@ -85,32 +118,26 @@ public class ThematicMapDomain extends SysBaseEntity {
|
||||
this.picturePath = picturePath;
|
||||
}
|
||||
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
|
||||
public LocalDateTime getCreatedTime() {
|
||||
return createdTime;
|
||||
}
|
||||
|
||||
|
||||
public void setCreatedTime(LocalDateTime createdTime) {
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
@ -130,4 +157,12 @@ public class ThematicMapDomain extends SysBaseEntity {
|
||||
", createdTime=" + createdTime +
|
||||
'}';
|
||||
}
|
||||
|
||||
public String getYear() {
|
||||
return year;
|
||||
}
|
||||
|
||||
public void setYear(String year) {
|
||||
this.year = year;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,60 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/24 14:24
|
||||
*/
|
||||
public class UploadFile extends SysBaseEntity
|
||||
{
|
||||
private String id;
|
||||
|
||||
private String fileId;
|
||||
|
||||
private String fileName;
|
||||
|
||||
private String filePath;
|
||||
|
||||
private String fileSize;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getFileId() {
|
||||
return fileId;
|
||||
}
|
||||
|
||||
public void setFileId(String fileId) {
|
||||
this.fileId = fileId;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getFileSize() {
|
||||
return fileSize;
|
||||
}
|
||||
|
||||
public void setFileSize(String fileSize) {
|
||||
this.fileSize = fileSize;
|
||||
}
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
import javax.xml.stream.events.DTD;
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/20 16:47
|
||||
*/
|
||||
public class UploadSpecialVO extends SysBaseEntity
|
||||
{
|
||||
|
||||
private String id;
|
||||
|
||||
private String fileName;
|
||||
|
||||
private String uploadNum;
|
||||
|
||||
private String filePath;
|
||||
|
||||
private String type;
|
||||
|
||||
private String remarks1;
|
||||
|
||||
private String remarks2;
|
||||
|
||||
private String sign;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getUploadNum() {
|
||||
return uploadNum;
|
||||
}
|
||||
|
||||
public void setUploadNum(String uploadNum) {
|
||||
this.uploadNum = uploadNum;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getRemarks1() {
|
||||
return remarks1;
|
||||
}
|
||||
|
||||
public void setRemarks1(String remarks1) {
|
||||
this.remarks1 = remarks1;
|
||||
}
|
||||
|
||||
public String getRemarks2() {
|
||||
return remarks2;
|
||||
}
|
||||
|
||||
public void setRemarks2(String remarks2) {
|
||||
this.remarks2 = remarks2;
|
||||
}
|
||||
|
||||
public String getSign() {
|
||||
return sign;
|
||||
}
|
||||
|
||||
public void setSign(String sign) {
|
||||
this.sign = sign;
|
||||
}
|
||||
}
|
@ -0,0 +1,85 @@
|
||||
package com.ruoyi.system.domain_yada;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/10 9:53
|
||||
*/
|
||||
public class WeatherUtilsVO {
|
||||
/**
|
||||
* 接口返回状态
|
||||
*/
|
||||
private String status;
|
||||
/**
|
||||
* 返回结果数量
|
||||
*/
|
||||
private String count;
|
||||
|
||||
private String info;
|
||||
|
||||
private String infocode;
|
||||
/**
|
||||
* 实时天气预报
|
||||
*/
|
||||
private List<LivesVo> lives;
|
||||
/**
|
||||
* 预报天气
|
||||
*/
|
||||
private List<ForecastVo> forecasts;
|
||||
|
||||
// /**
|
||||
// * 预报天气
|
||||
// */
|
||||
// private String forecasts;
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(String count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public String getInfo() {
|
||||
return info;
|
||||
}
|
||||
|
||||
public void setInfo(String info) {
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
public String getInfocode() {
|
||||
return infocode;
|
||||
}
|
||||
|
||||
public void setInfocode(String infocode) {
|
||||
this.infocode = infocode;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public List<ForecastVo> getForecasts() {
|
||||
return forecasts;
|
||||
}
|
||||
|
||||
public void setForecasts(List<ForecastVo> forecasts) {
|
||||
this.forecasts = forecasts;
|
||||
}
|
||||
|
||||
public List<LivesVo> getLives() {
|
||||
return lives;
|
||||
}
|
||||
|
||||
public void setLives(List<LivesVo> lives) {
|
||||
this.lives = lives;
|
||||
}
|
||||
}
|
@ -1,6 +1,8 @@
|
||||
package com.ruoyi.system.mapper_yada;
|
||||
|
||||
import com.ruoyi.system.domain_yada.AorestCoverageVO;
|
||||
import com.ruoyi.system.domain_yada.Dictionary;
|
||||
import com.ruoyi.system.domain_yada.UploadFile;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
@ -11,9 +13,18 @@ import java.util.List;
|
||||
*/
|
||||
public interface AorestCoverageMapper {
|
||||
|
||||
List<AorestCoverageVO> selectAorestCoverage();
|
||||
List<AorestCoverageVO> selectAorestCoverage(/*@Param("region") String region,
|
||||
@Param("particularYear") String particularYear*/);
|
||||
|
||||
Integer DelAorestCoverage(@Param("id") String id);
|
||||
|
||||
Integer IntoAorestCoverage(AorestCoverageVO eastVO);
|
||||
|
||||
Integer IntoUpload(UploadFile file);
|
||||
|
||||
List<UploadFile> selectUpload(@Param("fileId") String fileId,@Param("fileName") String fileName);
|
||||
|
||||
List<Dictionary> selectDic(@Param("codingType") String codingType);
|
||||
|
||||
List<Dictionary> selectNow(@Param("codingType2") String codingType2);
|
||||
}
|
||||
|
@ -13,7 +13,8 @@ import java.util.List;
|
||||
*/
|
||||
public interface AustraliaMiddleEastMapper {
|
||||
|
||||
List<AustraliaMiddleEastVO> selectAustralia();
|
||||
List<AustraliaMiddleEastVO> selectAustralia(@Param("yearMonth") String yearMonth,
|
||||
@Param("month") String month);
|
||||
|
||||
Integer DelAustralia(@Param("id") String id);
|
||||
|
||||
|
@ -0,0 +1,28 @@
|
||||
package com.ruoyi.system.mapper_yada;
|
||||
|
||||
import com.ruoyi.system.domain_yada.CityFocusVO;
|
||||
import com.ruoyi.system.domain_yada.CityInformation;
|
||||
import com.ruoyi.system.domain_yada.OrientationVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/1 10:12
|
||||
*/
|
||||
public interface CityExpandMapper {
|
||||
|
||||
List<CityFocusVO> selectExpand(@Param("city") String city,
|
||||
@Param("country") String country,
|
||||
@Param("year") String year);
|
||||
|
||||
List<OrientationVO> selectOrientation( @Param("city") String city,
|
||||
@Param("superior") String superior,
|
||||
@Param("country") String country);
|
||||
|
||||
List<CityInformation> selectInfrom(@Param("city") String city,
|
||||
@Param("country") String country,
|
||||
@Param("year") String year);
|
||||
List<CityInformation> selectMain( @Param("year") String year);
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.system.mapper_yada;
|
||||
|
||||
|
||||
import com.ruoyi.system.domain_yada.CityVo;
|
||||
import com.ruoyi.system.domain_yada.OrientationVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/24 10:06
|
||||
*/
|
||||
public interface CityMapper {
|
||||
|
||||
List<CityVo> selectCity(@Param("city") String city, @Param("gj") String gj);
|
||||
|
||||
List<OrientationVO> selectOrientation(@Param("city") String city, @Param("gj") String gj);
|
||||
}
|
@ -11,7 +11,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface GlobalTypeMapper {
|
||||
|
||||
List<GlobalTypeVO> selectGlobalType();
|
||||
List<GlobalTypeVO> selectGlobalType(/*@Param("typeName") String typeName, @Param("particularYear") Integer particularYear*/);
|
||||
|
||||
Integer DelGlobalType(@Param("id") String id);
|
||||
|
||||
|
@ -4,6 +4,7 @@ import com.ruoyi.system.domain_yada.OceanTemperatureVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -13,7 +14,7 @@ import java.util.List;
|
||||
@Repository
|
||||
public interface OceanTemperatureMapper {
|
||||
|
||||
List<OceanTemperatureVO> selectOcean();
|
||||
List<OceanTemperatureVO> selectOcean(@Param("startDate") LocalDate startDate);
|
||||
|
||||
Integer DelOcean(@Param("id") String id);
|
||||
|
||||
|
@ -11,7 +11,8 @@ import java.util.List;
|
||||
*/
|
||||
public interface RegionVGIMapper {
|
||||
|
||||
List<RegionVGIVO> selectRegion();
|
||||
List<RegionVGIVO> selectRegion(/*@Param("typeName") String typeName,
|
||||
@Param("particularYear") String particularYear*/);
|
||||
|
||||
Integer DelRegion(@Param("id") String id);
|
||||
|
||||
|
@ -3,6 +3,7 @@ package com.ruoyi.system.mapper_yada;
|
||||
import com.ruoyi.system.domain_yada.RegionalSystemVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -11,7 +12,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface RegionalSystemMapper {
|
||||
|
||||
List<RegionalSystemVO> selectRegional();
|
||||
List<RegionalSystemVO> selectRegional(@Param("region") String region);
|
||||
|
||||
Integer DelRegional(@Param("id") String id);
|
||||
|
||||
|
@ -0,0 +1,28 @@
|
||||
package com.ruoyi.system.mapper_yada;
|
||||
|
||||
import com.ruoyi.system.domain_yada.SpecialVO;
|
||||
import com.ruoyi.system.domain_yada.UploadSpecialVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/20 11:54
|
||||
*/
|
||||
public interface SpecialReportMapper {
|
||||
|
||||
List<SpecialVO> selectSpecial(@Param("zone") String zone);
|
||||
|
||||
List<UploadSpecialVO> selectUploadSpecial(@Param("fileName") String fileName);
|
||||
|
||||
List<UploadSpecialVO> selectUploadSpecial1(@Param("fileName") String fileName);
|
||||
|
||||
Integer updateUploadSpecial(@Param("id") Integer id);
|
||||
|
||||
Integer IntoUploadSpecial(UploadSpecialVO specialVO);
|
||||
|
||||
Integer DelSpecial(@Param("id") Integer id);
|
||||
|
||||
Integer IntoSpecial(SpecialVO specialVO);
|
||||
}
|
@ -1,9 +1,13 @@
|
||||
package com.ruoyi.system.mapper_yada;
|
||||
|
||||
import com.ruoyi.system.domain_yada.MapServicesVO;
|
||||
import com.ruoyi.system.domain_yada.ThematicMapDomain;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.hibernate.validator.constraints.NotEmpty;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -15,7 +19,19 @@ public interface ThematicMapMapper {
|
||||
* 获取所有专题图
|
||||
* @return
|
||||
*/
|
||||
List<ThematicMapDomain> selectAllThematicMap();
|
||||
List<ThematicMapDomain> selectAllThematicMap(@Param("pictureType") String pictureType,
|
||||
@Param("pictureTypeOne") String pictureTypeOne,
|
||||
@Param("pictureTypeTwo") String pictureTypeTwo);
|
||||
|
||||
/**
|
||||
* 查看地图服务
|
||||
* @param chartName 服务名称
|
||||
* @param chartType 服务类型
|
||||
* @return
|
||||
*/
|
||||
List<MapServicesVO> selMapServers(@Param("chartName") String chartName,
|
||||
@Param("chartType") String chartType,
|
||||
@Param("particularYear") String particularYear);
|
||||
|
||||
/**
|
||||
* 删除专题图根据编号
|
||||
|
@ -12,7 +12,8 @@ import java.util.List;
|
||||
*/
|
||||
public interface UrbanMapper {
|
||||
|
||||
List<UrbanVO> selectUrban();
|
||||
List<UrbanVO> selectUrban(@Param("name") String name,
|
||||
@Param("particularYear") String particularYear);
|
||||
|
||||
Integer DelUrban(@Param("id") String id);
|
||||
|
||||
|
@ -11,7 +11,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface VegetationCoverageMapper {
|
||||
|
||||
List<VegetationCoverageVO> selectVegetation();
|
||||
List<VegetationCoverageVO> selectVegetation(@Param("type") String type);
|
||||
|
||||
Integer DelVegetation(@Param("id") String id);
|
||||
|
||||
|
@ -1,7 +1,10 @@
|
||||
package com.ruoyi.system.service_yada;
|
||||
|
||||
import com.ruoyi.common.utils.PageUtils;
|
||||
import com.ruoyi.system.domain_yada.AorestCoverageVO;
|
||||
import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
|
||||
import com.ruoyi.system.domain_yada.Dictionary;
|
||||
import com.ruoyi.system.domain_yada.UploadFile;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
@ -13,9 +16,16 @@ import java.util.List;
|
||||
*/
|
||||
public interface IAorestCoverageService {
|
||||
|
||||
public List<AorestCoverageVO> selectAorestCoverage();
|
||||
public List<AorestCoverageVO> selectAorestCoverage(/*String region,String particularYear*/);
|
||||
|
||||
public Integer DelAorestCoverage(@Param("id") String id);
|
||||
public Integer DelAorestCoverage(String id);
|
||||
|
||||
public Integer IntoAorestCoverage(AorestCoverageVO eastVO);
|
||||
|
||||
public Integer IntoUpload(UploadFile file);
|
||||
|
||||
public List<UploadFile> selectUpload(String fileId,String fileName);
|
||||
|
||||
List<Dictionary> selectDic(String codingType);
|
||||
List<Dictionary> selectNow(String codingType2);
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface IAustraliaMiddleEastService
|
||||
{
|
||||
public List<AustraliaMiddleEastVO> selectAustralia();
|
||||
public List<AustraliaMiddleEastVO> selectAustralia(String yearMonth,String month);
|
||||
|
||||
public Integer DelAustralia(@Param("id") String id);
|
||||
|
||||
|
@ -0,0 +1,23 @@
|
||||
package com.ruoyi.system.service_yada;
|
||||
|
||||
import com.ruoyi.system.domain_yada.CityFocusVO;
|
||||
import com.ruoyi.system.domain_yada.CityInformation;
|
||||
import com.ruoyi.system.domain_yada.OrientationVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/1 10:11
|
||||
*/
|
||||
public interface ICityExpandService {
|
||||
|
||||
List<CityFocusVO> selectExpand(String city,String country,String year);
|
||||
|
||||
List<OrientationVO> selectOrientation(String city, String superior,String country);
|
||||
|
||||
List<CityInformation> selectInfrom(String city, String country,String year);
|
||||
|
||||
List<CityInformation> selectMain(String year);
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.ruoyi.system.service_yada;
|
||||
|
||||
import com.ruoyi.system.domain_yada.CityVo;
|
||||
import com.ruoyi.system.domain_yada.OrientationVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/24 10:11
|
||||
*/
|
||||
public interface ICityService {
|
||||
|
||||
List<CityVo> selectCity(String city, String gj);
|
||||
|
||||
|
||||
List<OrientationVO> selectOrientation(String city, String gj);
|
||||
}
|
@ -13,7 +13,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface IGlobalTypeService {
|
||||
|
||||
public List<GlobalTypeVO> selectGlobalType();
|
||||
public List<GlobalTypeVO> selectGlobalType(/*String typeName, Integer particularYear*/);
|
||||
|
||||
public Integer DelGlobalType(String id);
|
||||
|
||||
|
@ -4,6 +4,7 @@ import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
|
||||
import com.ruoyi.system.domain_yada.OceanTemperatureVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -13,7 +14,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface IOceanTemperatureService {
|
||||
|
||||
public List<OceanTemperatureVO> selectOcean();
|
||||
public List<OceanTemperatureVO> selectOcean(LocalDate startDate);
|
||||
|
||||
public Integer DelOcean(@Param("id") String id);
|
||||
|
||||
|
@ -15,7 +15,7 @@ public interface IRegionVGIService {
|
||||
* 查询
|
||||
* @return
|
||||
*/
|
||||
public List<RegionVGIVO> selectRegion();
|
||||
public List<RegionVGIVO> selectRegion(/*String typeName,String particularYear*/);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
|
@ -13,7 +13,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface IRegionalSystemService {
|
||||
|
||||
public List<RegionalSystemVO> selectRegional();
|
||||
public List<RegionalSystemVO> selectRegional(String region);
|
||||
|
||||
public Integer DelRegional(@Param("id") String id);
|
||||
|
||||
|
@ -1,9 +1,29 @@
|
||||
package com.ruoyi.system.service_yada;
|
||||
|
||||
import com.ruoyi.system.domain_yada.SpecialVO;
|
||||
import com.ruoyi.system.domain_yada.UploadSpecialVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 专题报告
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 11:39
|
||||
*/
|
||||
public interface ISpecialReportService {
|
||||
|
||||
List<SpecialVO> selectSpecial(String zone);
|
||||
|
||||
List<UploadSpecialVO> selectUploadSpecial(String fileName);
|
||||
|
||||
List<UploadSpecialVO> selectUploadSpecial1(String fileName);
|
||||
|
||||
Integer updateUploadSpecial( Integer id);
|
||||
|
||||
Integer IntoUploadSpecial(UploadSpecialVO specialVO);
|
||||
|
||||
Integer DelSpecial( Integer id);
|
||||
|
||||
Integer IntoSpecial(SpecialVO specialVO);
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface IUrbanService {
|
||||
|
||||
public List<UrbanVO> selectUrban();
|
||||
public List<UrbanVO> selectUrban(String name, String particularYear);
|
||||
|
||||
public Integer DelUrban(@Param("id") String id);
|
||||
|
||||
|
@ -13,7 +13,7 @@ import java.util.List;
|
||||
*/
|
||||
public interface IVegetationCoverageService {
|
||||
|
||||
public List<VegetationCoverageVO> selectVegetation();
|
||||
public List<VegetationCoverageVO> selectVegetation(String type);
|
||||
|
||||
public Integer DelVegetation(String id);
|
||||
|
||||
|
@ -1,7 +1,10 @@
|
||||
package com.ruoyi.system.service_yada;
|
||||
|
||||
import com.ruoyi.system.domain_yada.MapServicesVO;
|
||||
import com.ruoyi.system.domain_yada.ThematicMapDomain;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -16,7 +19,15 @@ public interface ThematicMapService {
|
||||
* 获取全部专题图
|
||||
* @return
|
||||
*/
|
||||
List<ThematicMapDomain> selectAll();
|
||||
List<ThematicMapDomain> selectAll(String pictureType,String pictureTypeOne, String pictureTypeTwo);
|
||||
|
||||
/**
|
||||
* 获取地图服务
|
||||
* @param chartName
|
||||
* @param chartType
|
||||
* @return
|
||||
*/
|
||||
List<MapServicesVO> selMapServers(String chartName, String chartType,String particularYear);
|
||||
|
||||
/**
|
||||
* 删除专题图根据编号
|
||||
|
@ -2,9 +2,12 @@ package com.ruoyi.system.service_yada.impl;
|
||||
|
||||
import com.ruoyi.system.domain_yada.AorestCoverageVO;
|
||||
import com.ruoyi.system.domain_yada.AustraliaMiddleEastVO;
|
||||
import com.ruoyi.system.domain_yada.Dictionary;
|
||||
import com.ruoyi.system.domain_yada.UploadFile;
|
||||
import com.ruoyi.system.mapper_yada.AorestCoverageMapper;
|
||||
import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
|
||||
import com.ruoyi.system.service_yada.IAorestCoverageService;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -23,8 +26,8 @@ public class AorestCoverageServiceimpl implements IAorestCoverageService {
|
||||
|
||||
|
||||
@Override
|
||||
public List<AorestCoverageVO> selectAorestCoverage() {
|
||||
return coverageMapper.selectAorestCoverage();
|
||||
public List<AorestCoverageVO> selectAorestCoverage(/*String region,String particularYear*/) {
|
||||
return coverageMapper.selectAorestCoverage(/*region,particularYear*/);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -34,6 +37,26 @@ public class AorestCoverageServiceimpl implements IAorestCoverageService {
|
||||
|
||||
@Override
|
||||
public Integer IntoAorestCoverage(AorestCoverageVO eastVO) {
|
||||
return IntoAorestCoverage(eastVO);
|
||||
return coverageMapper.IntoAorestCoverage(eastVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer IntoUpload(UploadFile file) {
|
||||
return coverageMapper.IntoUpload(file);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UploadFile> selectUpload(String fileId, String fileName) {
|
||||
return coverageMapper.selectUpload(fileId,fileName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Dictionary> selectDic(String codingType) {
|
||||
return coverageMapper.selectDic(codingType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Dictionary> selectNow(String codingType2) {
|
||||
return coverageMapper.selectNow(codingType2);
|
||||
}
|
||||
}
|
||||
|
@ -21,9 +21,9 @@ public class AustraliaMiddleEastServiceimpl implements IAustraliaMiddleEastServi
|
||||
private AustraliaMiddleEastMapper australiaMiddleEastMapper;
|
||||
|
||||
@Override
|
||||
public List<AustraliaMiddleEastVO> selectAustralia()
|
||||
public List<AustraliaMiddleEastVO> selectAustralia(String yearMonth,String month)
|
||||
{
|
||||
return australiaMiddleEastMapper.selectAustralia();
|
||||
return australiaMiddleEastMapper.selectAustralia(yearMonth,month);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -0,0 +1,46 @@
|
||||
package com.ruoyi.system.service_yada.impl;
|
||||
|
||||
import com.ruoyi.system.domain_yada.CityFocusVO;
|
||||
import com.ruoyi.system.domain_yada.CityInformation;
|
||||
import com.ruoyi.system.domain_yada.OrientationVO;
|
||||
import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
|
||||
import com.ruoyi.system.mapper_yada.CityExpandMapper;
|
||||
import com.ruoyi.system.service_yada.ICityExpandService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.Year;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/7/1 10:12
|
||||
*/
|
||||
@Service
|
||||
public class CityExpandServiceimpl implements ICityExpandService {
|
||||
|
||||
|
||||
@Resource
|
||||
private CityExpandMapper mapper;
|
||||
|
||||
@Override
|
||||
public List<CityFocusVO> selectExpand(String city, String country, String year) {
|
||||
return mapper.selectExpand(city,country,year);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OrientationVO> selectOrientation(String city, String superior,String country) {
|
||||
return mapper.selectOrientation(city,superior,country);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CityInformation> selectInfrom(String city, String country,String year) {
|
||||
return mapper.selectInfrom(city,country,year);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CityInformation> selectMain(String year) {
|
||||
return mapper.selectMain(year);
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.ruoyi.system.service_yada.impl;
|
||||
|
||||
import com.ruoyi.system.domain_yada.CityVo;
|
||||
import com.ruoyi.system.domain_yada.OrientationVO;
|
||||
import com.ruoyi.system.mapper_yada.AorestCoverageMapper;
|
||||
import com.ruoyi.system.mapper_yada.CityMapper;
|
||||
import com.ruoyi.system.service_yada.ICityService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/6/24 10:12
|
||||
*/
|
||||
@Service
|
||||
public class CityServiceimpl implements ICityService {
|
||||
|
||||
@Resource
|
||||
private CityMapper cityMapper;
|
||||
@Override
|
||||
public List<CityVo> selectCity(String city, String gj) {
|
||||
return cityMapper.selectCity(city,gj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OrientationVO> selectOrientation(String city, String gj) {
|
||||
return cityMapper.selectOrientation(city,gj);
|
||||
}
|
||||
}
|
@ -5,6 +5,8 @@ import com.ruoyi.system.domain_yada.GlobalTypeVO;
|
||||
import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
|
||||
import com.ruoyi.system.mapper_yada.GlobalTypeMapper;
|
||||
import com.ruoyi.system.service_yada.IGlobalTypeService;
|
||||
import org.apache.commons.compress.archivers.dump.DumpArchiveEntry;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -24,8 +26,8 @@ public class GlobalTypeServiceimpl implements IGlobalTypeService {
|
||||
|
||||
|
||||
@Override
|
||||
public List<GlobalTypeVO> selectGlobalType() {
|
||||
return typeMapper.selectGlobalType();
|
||||
public List<GlobalTypeVO> selectGlobalType(/*String typeName, Integer particularYear*/) {
|
||||
return typeMapper.selectGlobalType(/*typeName, particularYear*/);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -24,8 +25,8 @@ public class OceanTemperatureServiceimpl implements IOceanTemperatureService {
|
||||
|
||||
|
||||
@Override
|
||||
public List<OceanTemperatureVO> selectOcean() {
|
||||
return oceanMapper.selectOcean();
|
||||
public List<OceanTemperatureVO> selectOcean(LocalDate startDate) {
|
||||
return oceanMapper.selectOcean(startDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -3,6 +3,7 @@ package com.ruoyi.system.service_yada.impl;
|
||||
import com.ruoyi.system.mapper_yada.RegionVGIMapper;
|
||||
import com.ruoyi.system.service_yada.IRegionVGIService;
|
||||
import com.ruoyi.system.domain_yada.RegionVGIVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -21,8 +22,8 @@ public class RegionVGIServiceimpl implements IRegionVGIService {
|
||||
private RegionVGIMapper vgiMapper;
|
||||
|
||||
@Override
|
||||
public List<RegionVGIVO> selectRegion() {
|
||||
return vgiMapper.selectRegion();
|
||||
public List<RegionVGIVO> selectRegion(/*String typeName,String particularYear*/) {
|
||||
return vgiMapper.selectRegion(/*typeName,particularYear*/);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -5,6 +5,7 @@ import com.ruoyi.system.domain_yada.RegionalSystemVO;
|
||||
import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
|
||||
import com.ruoyi.system.mapper_yada.RegionalSystemMapper;
|
||||
import com.ruoyi.system.service_yada.IRegionalSystemService;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -24,8 +25,8 @@ public class RegionalSystemServiceimpl implements IRegionalSystemService {
|
||||
|
||||
|
||||
@Override
|
||||
public List<RegionalSystemVO> selectRegional() {
|
||||
return Regional.selectRegional();
|
||||
public List<RegionalSystemVO> selectRegional(String region) {
|
||||
return Regional.selectRegional(region);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1,12 +1,57 @@
|
||||
package com.ruoyi.system.service_yada.impl;
|
||||
|
||||
import com.ruoyi.system.domain_yada.SpecialVO;
|
||||
import com.ruoyi.system.domain_yada.UploadSpecialVO;
|
||||
import com.ruoyi.system.mapper_yada.SpecialReportMapper;
|
||||
import com.ruoyi.system.service_yada.ISpecialReportService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 专题报告
|
||||
* @Author: JinSheng Song
|
||||
* @Date: 2022/5/11 11:48
|
||||
*/
|
||||
@Service
|
||||
public class SpecialReportServiceimpl implements ISpecialReportService {
|
||||
|
||||
@Resource
|
||||
private SpecialReportMapper mapper;
|
||||
|
||||
@Override
|
||||
public List<SpecialVO> selectSpecial(String zone) {
|
||||
return mapper.selectSpecial(zone);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UploadSpecialVO> selectUploadSpecial(String fileName) {
|
||||
return mapper.selectUploadSpecial(fileName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UploadSpecialVO> selectUploadSpecial1(String fileName) {
|
||||
return mapper.selectUploadSpecial1(fileName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer updateUploadSpecial(Integer id) {
|
||||
return mapper.updateUploadSpecial(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer IntoUploadSpecial(UploadSpecialVO specialVO) {
|
||||
return mapper.IntoUploadSpecial(specialVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer DelSpecial(Integer id) {
|
||||
return mapper.DelSpecial(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer IntoSpecial(SpecialVO specialVO) {
|
||||
return mapper.IntoSpecial(specialVO);
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,14 @@
|
||||
package com.ruoyi.system.service_yada.impl;
|
||||
|
||||
import com.ruoyi.system.domain_yada.MapServicesVO;
|
||||
import com.ruoyi.system.domain_yada.ThematicMapDomain;
|
||||
import com.ruoyi.system.mapper_yada.ThematicMapMapper;
|
||||
import com.ruoyi.system.service_yada.ThematicMapService;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -23,8 +26,13 @@ public class ThematicMapServiceImpl implements ThematicMapService {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<ThematicMapDomain> selectAll(){
|
||||
return thematicMapMapper.selectAllThematicMap();
|
||||
public List<ThematicMapDomain> selectAll(String pictureType,String pictureTypeOne, String pictureTypeTwo){
|
||||
return thematicMapMapper.selectAllThematicMap(pictureType,pictureTypeOne,pictureTypeTwo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MapServicesVO> selMapServers(String chartName, String chartType,String particularYear) {
|
||||
return thematicMapMapper.selMapServers(chartName,chartType,particularYear);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -4,6 +4,7 @@ import com.ruoyi.system.domain_yada.UrbanVO;
|
||||
import com.ruoyi.system.mapper_yada.AorestCoverageMapper;
|
||||
import com.ruoyi.system.mapper_yada.UrbanMapper;
|
||||
import com.ruoyi.system.service_yada.IUrbanService;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -23,8 +24,8 @@ public class UrbanServiceimpl implements IUrbanService {
|
||||
|
||||
@Override
|
||||
|
||||
public List<UrbanVO> selectUrban() {
|
||||
return urbanMapper.selectUrban();
|
||||
public List<UrbanVO> selectUrban(String name, String particularYear) {
|
||||
return urbanMapper.selectUrban(name,particularYear);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -5,6 +5,7 @@ import com.ruoyi.system.domain_yada.VegetationCoverageVO;
|
||||
import com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper;
|
||||
import com.ruoyi.system.mapper_yada.VegetationCoverageMapper;
|
||||
import com.ruoyi.system.service_yada.IVegetationCoverageService;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@ -25,8 +26,8 @@ public class VegetationCoverageServiceimpl implements IVegetationCoverageService
|
||||
|
||||
|
||||
@Override
|
||||
public List<VegetationCoverageVO> selectVegetation() {
|
||||
return coverageMapper.selectVegetation();
|
||||
public List<VegetationCoverageVO> selectVegetation(String type) {
|
||||
return coverageMapper.selectVegetation(type);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -5,7 +5,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<mapper namespace="com.ruoyi.system.mapper_yada.AorestCoverageMapper">
|
||||
|
||||
<resultMap id="RM_AorestCoverage" type="com.ruoyi.system.domain_yada.AorestCoverageVO">
|
||||
|
||||
<result property="id" column="id"/>
|
||||
<result property="particularYear" column="particular_year"/>
|
||||
<result property="region" column="region"/>
|
||||
@ -25,7 +24,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</sql>
|
||||
|
||||
<select id="selectAorestCoverage" resultMap="RM_AorestCoverage">
|
||||
SELECT <include refid="columns"/> FROM forest_coverage;
|
||||
SELECT <include refid="columns"/> FROM forest_coverage
|
||||
<!-- WHERE 1=1-->
|
||||
<!-- <if test="particularYear!= null and particularYear !=''">-->
|
||||
<!-- AND particular_year = #{particularYear}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="region!= null and region !=''">-->
|
||||
<!-- AND region = #{typeName}-->
|
||||
<!-- </if>-->
|
||||
</select>
|
||||
|
||||
<delete id="DelAorestCoverage">
|
||||
@ -36,7 +42,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<insert id="IntoAorestCoverage">
|
||||
<![CDATA[
|
||||
INSERT INTO forest_coverage (
|
||||
id ,
|
||||
particular_year ,
|
||||
region ,
|
||||
region_en ,
|
||||
@ -44,21 +49,114 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
non_protected_lands ,
|
||||
mountain,
|
||||
non_mountain,
|
||||
created_by ,
|
||||
created_by,
|
||||
created_time
|
||||
) VALUES (
|
||||
#{id,jdbcType=VARCHAR},
|
||||
#{particularYear,jdbcType=VARCHAR},
|
||||
#{region,jdbcType=VARCHAR},
|
||||
#{regionEn,jdbcType=VARCHAR},
|
||||
#{protectedLands,jdbcType=DOUBLE},
|
||||
#{nonProtectedLand,jdbcType=DOUBLE},
|
||||
#{nonProtectedLands,jdbcType=DOUBLE},
|
||||
#{mountain,jdbcType=DOUBLE},
|
||||
#{nonMountain,jdbcType=DOUBLE},
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=DATE}
|
||||
#{createTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
<resultMap id="RM_Upload" type="com.ruoyi.system.domain_yada.UploadFile">
|
||||
<result property="id" column="id"/>
|
||||
<result property="fileId" column="file_id"/>
|
||||
<result property="fileName" column="file_name"/>
|
||||
<result property="fileSize" column="file_size"/>
|
||||
<result property="filePath" column="file_path"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
</resultMap>
|
||||
|
||||
<insert id="IntoUpload">
|
||||
<![CDATA[
|
||||
INSERT INTO sys_file_info (
|
||||
id ,
|
||||
file_id ,
|
||||
file_name ,
|
||||
file_size ,
|
||||
file_path ,
|
||||
created_by,
|
||||
created_time
|
||||
) VALUES (
|
||||
#{id,jdbcType=VARCHAR},
|
||||
#{fileId,jdbcType=VARCHAR},
|
||||
#{fileName,jdbcType=VARCHAR},
|
||||
#{fileSize,jdbcType=VARCHAR},
|
||||
#{filePath,jdbcType=VARCHAR},
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
<select id="selectUpload" resultMap="RM_Upload">
|
||||
SELECT file_id,file_name,file_size,file_path,created_by,created_time FROM sys_file_info
|
||||
WHERE 1=1
|
||||
<if test="fileId!= null and fileId !=''">
|
||||
AND fileId = #{fileId}
|
||||
</if>
|
||||
<if test="fileName!= null and fileName !=''">
|
||||
AND file_name = #{fileName}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<resultMap id="RM_Dictionary" type="com.ruoyi.system.domain_yada.Dictionary">
|
||||
<result property="codingType" column="coding_type"/>
|
||||
<result property="codingType1" column="codingType1"/>
|
||||
<result property="codingType2" column="codingType2"/>
|
||||
<result property="dictionary" column="dictionary"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="nameEn" column="name_en"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="columnsdic">
|
||||
<![CDATA[
|
||||
coding_type,dictionary,name,name_En,created_by,created_time
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="selectDic" resultMap="RM_Dictionary">
|
||||
select <include refid="columnsdic"/> from dictionary
|
||||
where 1=1
|
||||
<if test="codingType!= null and codingType !=''">
|
||||
AND coding_type = #{codingType}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<!-- <select id="selectDic" resultMap="RM_Dictionary">-->
|
||||
<!-- select <include refid="columnsdic"/> from dictionary-->
|
||||
<!-- where dictionary in-->
|
||||
<!-- (SELECT A.dictionary FROM dictionary a-->
|
||||
<!-- join (select dictionary from dictionary-->
|
||||
<!-- where 1=1-->
|
||||
<!-- <if test="codingType!= null and codingType !=''">-->
|
||||
<!-- AND coding_type = #{codingType}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="codingType1!= null and codingType1 !=''">-->
|
||||
<!-- AND dictionary = #{codingType1}-->
|
||||
<!-- </if>-->
|
||||
<!-- ) b on a.coding_type=b.dictionary-->
|
||||
<!-- <if test="codingType2!= null and codingType2 !=''">-->
|
||||
<!-- AND a.dictionary = #{codingType2}-->
|
||||
<!-- </if>-->
|
||||
<!-- )-->
|
||||
<!-- </select>-->
|
||||
|
||||
|
||||
<select id="selectNow" resultMap="RM_Dictionary">
|
||||
select <include refid="columnsdic"/> from dictionary
|
||||
where coding_type =#{codingType2};
|
||||
</select>
|
||||
</mapper>
|
@ -5,25 +5,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<mapper namespace="com.ruoyi.system.mapper_yada.AustraliaMiddleEastMapper">
|
||||
<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="month" column="month"/>
|
||||
<result property="id" column="ID"/>
|
||||
<result property="sstAnomalyIndex" column="sst_anomaly_index"/>
|
||||
<result property="temperatureAnomolies" column="temperature_anomolies"/>
|
||||
<result property="precipitationAnomolies" column="precipitation_anomolies"/>
|
||||
<result property="vaiAnomolies" column="vai_anomolies"/>
|
||||
<result property="createdBy" column="created_by"/>
|
||||
<result property="createdTime" column="created_time"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns">
|
||||
<![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,month
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectAustralia" resultMap="RM_AustraliaMiddleEast">
|
||||
SELECT <include refid="columns"/> FROM central_and_eastern_australia;
|
||||
SELECT <include refid="columns"/> FROM central_and_eastern_australia
|
||||
WHERE 1=1
|
||||
<if test="yearMonth!= null and yearMonth !=''">
|
||||
AND particular_month = #{yearMonth}
|
||||
</if>
|
||||
<if test="month!= null and month !=''">
|
||||
AND month = #{month}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="DelAustralia">
|
||||
@ -34,8 +42,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<insert id="IntoAustralia">
|
||||
<![CDATA[
|
||||
INSERT INTO central_and_eastern_australia (
|
||||
ID ,
|
||||
year_month ,
|
||||
particular_month ,
|
||||
month,
|
||||
sst_anomaly_index ,
|
||||
temperature_anomolies ,
|
||||
precipitation_anomolies ,
|
||||
@ -43,14 +51,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
created_by ,
|
||||
created_time
|
||||
) VALUES (
|
||||
#{id,jdbcType=VARCHAR},
|
||||
#{yearMonth,jdbcType=DATE},
|
||||
#{yearMonth,jdbcType=VARCHAR},
|
||||
#{month,jdbcType=VARCHAR},
|
||||
#{sstAnomalyIndex,jdbcType=DOUBLE},
|
||||
#{temperatureAnomolies,jdbcType=DOUBLE},
|
||||
#{precipitationAnomolies,jdbcType=DOUBLE},
|
||||
#{vaiAnomolies,jdbcType=DOUBLE},
|
||||
#{createdBy,jdbcType=VARCHAR},
|
||||
#{createdTime,jdbcType=DATE}
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
|
@ -0,0 +1,115 @@
|
||||
<?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_yada.CityExpandMapper">
|
||||
|
||||
<resultMap id="RM_Orientation" type="com.ruoyi.system.domain_yada.OrientationVO">
|
||||
<result property="id" column="id"/>
|
||||
<result property="position" column="position"/>
|
||||
<result property="city" column="city"/>
|
||||
<result property="areaValue" column="area_value"/>
|
||||
<result property="superior" column="superior"/>
|
||||
<result property="country" column="country"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns_ore">
|
||||
<![CDATA[
|
||||
id,position,city,area_value,superior,created_by,created_time,country
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectOrientation" resultMap="RM_Orientation">
|
||||
SELECT <include refid="columns_ore"/> FROM extension_orientation
|
||||
where 1=1
|
||||
<if test="city!= null and city !=''">
|
||||
AND city = #{city}
|
||||
</if>
|
||||
<if test="superior!= null and superior !=''">
|
||||
AND superior = #{superior}
|
||||
</if>
|
||||
<if test="country!= null and country !=''">
|
||||
AND country = #{country}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<resultMap id="RM_Expand" type="com.ruoyi.system.domain_yada.CityFocusVO">
|
||||
<result property="id" column="id"/>
|
||||
<result property="year" column="year"/>
|
||||
<result property="city" column="city"/>
|
||||
<result property="xAxis" column="x_axis"/>
|
||||
<result property="yAxis" column="y_axis"/>
|
||||
<result property="xAxisPy" column="x_axis_py"/>
|
||||
<result property="yAxisPy" column="y_axis_py"/>
|
||||
<result property="cityEn" column="city_en"/>
|
||||
<result property="country" column="country"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
id,year,city,x_axis,y_axis,x_axis_py,y_axis_py,city_en,country
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectExpand" resultMap="RM_Expand">
|
||||
SELECT <include refid="columns"/> FROM urban_center_of_gravity
|
||||
where 1=1
|
||||
<if test="city!= null and city !=''">
|
||||
AND city = #{city}
|
||||
</if>
|
||||
<if test="country!= null and country !=''">
|
||||
AND country = #{country}
|
||||
</if>
|
||||
<if test="year!= null and year !=''">
|
||||
AND year = #{year}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<resultMap id="RM_Inform" type="com.ruoyi.system.domain_yada.CityInformation">
|
||||
<result property="id" column="id"/>
|
||||
<result property="year" column="year"/>
|
||||
<result property="city" column="city"/>
|
||||
<result property="area" column="area"/>
|
||||
<result property="imperviousSurfaceArea" column="impervious_surface_area"/>
|
||||
<result property="imperviousSurfaceCoverage" column="impervious_surface_coverage"/>
|
||||
<result property="speed" column="speed"/>
|
||||
<result property="strength" column="strength"/>
|
||||
<result property="contribution" column="contribution"/>
|
||||
<result property="superior" column="superior"/>
|
||||
<result property="country" column="country"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns_Infrom">
|
||||
<![CDATA[
|
||||
id,year,city,area,impervious_surface_area,impervious_surface_coverage,speed,strength,contribution,superior,country
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectInfrom" resultMap="RM_Inform">
|
||||
SELECT <include refid="columns_Infrom"/> FROM urban_impervious_surface
|
||||
where 1=1
|
||||
<if test="city!= null and city !=''">
|
||||
AND city = #{city}
|
||||
</if>
|
||||
<if test="country!= null and country !=''">
|
||||
AND country = #{country}
|
||||
</if>
|
||||
<if test="year!= null and year !=''">
|
||||
AND year = #{year}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
<select id="selectMain" resultMap="RM_Inform">
|
||||
SELECT <include refid="columns_Infrom"/> FROM urban_impervious_surface
|
||||
where country='澜湄流域'
|
||||
<if test="year!= null and year !=''">
|
||||
AND year = #{year}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
66
ruoyi-system/src/main/resources/mapper/system/CityMapper.xml
Normal file
66
ruoyi-system/src/main/resources/mapper/system/CityMapper.xml
Normal file
@ -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_yada.CityMapper">
|
||||
|
||||
<resultMap id="RM_City" type="com.ruoyi.system.domain_yada.CityVo">
|
||||
<result property="id" column="id"/>
|
||||
<result property="year" column="year"/>
|
||||
<result property="city" column="city"/>
|
||||
<result property="area" column="area"/>
|
||||
<result property="imperviousSurfaceArea" column="Impervious_surface_area"/>
|
||||
<result property="imperviousSurfaceCoverage" column="Impervious_surface_coverage"/>
|
||||
<result property="imperviousSurfaceExpansionSpeed" column="speed"/>
|
||||
<result property="imperviousSurfaceExpansionStrength" column="strength"/>
|
||||
<result property="imperviousSurfaceExpansionCntribution" column="contribution"/>
|
||||
<result property="superior" column="superior"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
id,year,city,area,Impervious_surface_area,Impervious_surface_coverage,speed,strength,contribution,superior
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectCity" resultMap="RM_City">
|
||||
SELECT <include refid="columns"/> FROM urban_impervious_surface
|
||||
where 1=1
|
||||
<if test="city!= null and city !=''">
|
||||
AND city = #{city}
|
||||
</if>
|
||||
<if test="gj!= null and gj !=''">
|
||||
AND superior = #{gj}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<resultMap id="RM_Orientation" type="com.ruoyi.system.domain_yada.OrientationVO">
|
||||
<result property="id" column="id"/>
|
||||
<result property="city" column="city"/>
|
||||
<result property="position" column="position"/>
|
||||
<result property="areaValue" column="area_Value"/>
|
||||
<result property="superior" column="superior"/>
|
||||
<result property="country" column="country"/>
|
||||
<result property="createTime" column="created_Time"/>
|
||||
<result property="createBy" column="created_By"/>
|
||||
</resultMap>
|
||||
<sql id="columns1">
|
||||
<![CDATA[
|
||||
id,city,superior,area_Value,position,created_Time,created_By,country
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="selectOrientation" resultMap="RM_Orientation">
|
||||
SELECT <include refid="columns1"/> FROM extension_orientation
|
||||
where 1=1
|
||||
<if test="city!= null and city !=''">
|
||||
AND city = #{city}
|
||||
</if>
|
||||
<if test="gj!= null and gj !=''">
|
||||
AND country = #{gj}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
@ -12,18 +12,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="typeNameEn" column="type_name_en"/>
|
||||
<result property="areaProportion" column="area_proportion"/>
|
||||
<result property="area" column="area"/>
|
||||
<result property="areaChange" column="area_change"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
id,particular_year,type_name,type_name_en,area_proportion,area,created_by,created_time
|
||||
id,particular_year,type_name,type_name_en,area_proportion,area,created_by,created_time,area_change
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectGlobalType" resultMap="RM_GlobalType">
|
||||
SELECT <include refid="columns"/> FROM proportion_of_global_types;
|
||||
SELECT <include refid="columns"/> FROM proportion_of_global_types
|
||||
WHERE 1=1
|
||||
<if test="particularYear!= null and particularYear !=''">
|
||||
AND particular_year = #{particularYear}
|
||||
</if>
|
||||
<if test="typeName!= null and typeName !=''">
|
||||
AND type_name = #{typeName}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="DelGlobalType">
|
||||
|
@ -23,6 +23,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectOcean" resultMap="RM_Ocean">
|
||||
SELECT <include refid="columns"/> FROM sea_surface_temperature_anomaly
|
||||
WHERE 1=1
|
||||
<if test="startDate!= null and startDate !=''">
|
||||
AND startDate > #{startDate}
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<delete id="DelOcean">
|
||||
|
@ -25,7 +25,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</sql>
|
||||
|
||||
<select id="selectRegion" resultMap="RM_RegionVGI">
|
||||
SELECT <include refid="columns"/> FROM region_vgi;
|
||||
SELECT <include refid="columns"/> FROM region_vgi
|
||||
-- where particular_year='2020'
|
||||
|
||||
<!-- WHERE 1=1-->
|
||||
<!-- <if test="particularYear!= null and particularYear !=''">-->
|
||||
<!-- AND particular_year = #{particularYear}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="typeName!= null and typeName !=''">-->
|
||||
<!-- AND type_name = #{typeName}-->
|
||||
<!-- </if>-->
|
||||
</select>
|
||||
|
||||
<delete id="DelRegion">
|
||||
@ -50,9 +59,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
) VALUES (
|
||||
#{id,jdbcType=VARCHAR},
|
||||
#{region,jdbcType=VARCHAR},
|
||||
#{region_en,jdbcType=VARCHAR},
|
||||
#{type_name,jdbcType=VARCHAR},
|
||||
#{type_name_en,jdbcType=TIMESTAMP},
|
||||
#{regionEn,jdbcType=VARCHAR},
|
||||
#{typeName,jdbcType=VARCHAR},
|
||||
#{typeNameEn,jdbcType=TIMESTAMP},
|
||||
#{forest,jdbcType=DOUBLE},
|
||||
#{createdBy,jdbcType=VARCHAR},
|
||||
#{createdTime,jdbcType=DATE},
|
||||
|
@ -19,12 +19,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
id,region,region_en,type_conversion,type_conversion_en,proportion_of_changed_areas,particular_year,createBy,createTime
|
||||
id,region,region_en,type_conversion,type_conversion_en,proportion_of_changed_areas,particular_year,created_by,created_time
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectRegional" resultMap="RM_Regional">
|
||||
SELECT <include refid="columns"/> FROM proportion_of_ecosystem_type_transfer
|
||||
WHERE 1=1
|
||||
<if test="region!= null and region !=''">
|
||||
AND region = #{region}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="DelRegional">
|
||||
@ -35,7 +39,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<insert id="IntoRegional">
|
||||
<![CDATA[
|
||||
INSERT INTO proportion_of_ecosystem_type_transfer (
|
||||
id ,
|
||||
region ,
|
||||
region_en ,
|
||||
type_conversion ,
|
||||
@ -45,7 +48,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
created_by ,
|
||||
created_time
|
||||
) VALUES (
|
||||
#{id,jdbcType=VARCHAR},
|
||||
#{region,jdbcType=VARCHAR},
|
||||
#{regionEn,jdbcType=VARCHAR},
|
||||
#{typeConversion,jdbcType=VARCHAR},
|
||||
@ -53,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{proportionOfChangedAreas,jdbcType=DOUBLE},
|
||||
#{particularYear,jdbcType=VARCHAR},
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=DATE}
|
||||
#{createTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
|
@ -0,0 +1,127 @@
|
||||
<?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_yada.SpecialReportMapper">
|
||||
|
||||
<resultMap id="RM_Special" type="com.ruoyi.system.domain_yada.SpecialVO">
|
||||
<result property="id" column="id"/>
|
||||
<result property="fileName" column="file_name"/>
|
||||
<result property="dateTime" column="date_time"/>
|
||||
<result property="spaceDistinguish" column="space_distinguish"/>
|
||||
<result property="timeDistinguish" column="time_distinguish"/>
|
||||
<result property="zone" column="zone"/>
|
||||
<result property="filePath" column="file_path"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="RM_Upload" type="com.ruoyi.system.domain_yada.UploadSpecialVO">
|
||||
<result property="id" column="id"/>
|
||||
<result property="fileName" column="file_name"/>
|
||||
<result property="uploadNum" column="upload_num"/>
|
||||
<result property="filePath" column="file_path"/>
|
||||
<result property="remarks1" column="remarks1"/>
|
||||
<result property="sign" column="sign"/>
|
||||
<result property="remarks2" column="remarks2"/>
|
||||
<result property="type" column="type"/>
|
||||
<result property="createBy" column="created_by"/>
|
||||
<result property="createTime" column="created_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="columns">
|
||||
<![CDATA[
|
||||
id,file_name,file_path,date_time,space_distinguish,time_distinguish,zone,created_by,created_time
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<sql id="Upload">
|
||||
<![CDATA[
|
||||
id,file_name,upload_num,file_path,remarks1,remarks2,type,created_by,created_time,sign
|
||||
]]>
|
||||
</sql>
|
||||
|
||||
<select id="selectSpecial" resultMap="RM_Special">
|
||||
SELECT <include refid="columns"/> FROM special_table
|
||||
WHERE 1=1
|
||||
<if test="zone!= null and zone !=''">
|
||||
AND zone = #{zone}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectUploadSpecial" resultMap="RM_Upload">
|
||||
SELECT <include refid="Upload"/> FROM upload_special
|
||||
WHERE type='1'
|
||||
<if test="fileName!= null and fileName !=''">
|
||||
AND file_name = #{fileName}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectUploadSpecial1" resultMap="RM_Upload">
|
||||
SELECT <include refid="Upload"/> FROM upload_special
|
||||
WHERE type='2'
|
||||
<if test="fileName!= null and fileName !=''">
|
||||
AND file_name = #{fileName}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="DelSpecial">
|
||||
DELETE FROM special_table
|
||||
WHERE ID=#{id}
|
||||
</delete>
|
||||
|
||||
<insert id="IntoSpecial">
|
||||
<![CDATA[
|
||||
INSERT INTO special_table (
|
||||
file_name ,
|
||||
date_time ,
|
||||
space_distinguish ,
|
||||
time_distinguish ,
|
||||
zone ,
|
||||
created_by,
|
||||
created_time
|
||||
) VALUES (
|
||||
#{fileName,jdbcType=VARCHAR},
|
||||
#{dateTime,jdbcType=VARCHAR},
|
||||
#{spaceDistinguish,jdbcType=VARCHAR},
|
||||
#{timeDistinguish,jdbcType=DOUBLE},
|
||||
#{zone,jdbcType=DOUBLE},
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<update id="updateUploadSpecial">
|
||||
update upload_special set upload_num=upload_num+1
|
||||
where id=#{id}
|
||||
</update>
|
||||
|
||||
<insert id="IntoUploadSpecial">
|
||||
<![CDATA[
|
||||
INSERT INTO upload_special (
|
||||
file_name ,
|
||||
upload_num ,
|
||||
file_path ,
|
||||
remarks1 ,
|
||||
remarks2 ,
|
||||
type,
|
||||
created_by,
|
||||
created_time
|
||||
) VALUES (
|
||||
#{fileName,jdbcType=VARCHAR},
|
||||
#{uploadNum,jdbcType=INTEGER},
|
||||
#{filePath,jdbcType=VARCHAR},
|
||||
#{remarks1,jdbcType=VARCHAR},
|
||||
#{remarks2,jdbcType=VARCHAR},
|
||||
#{type,jdbcType=VARCHAR},
|
||||
#{createBy,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
]]>
|
||||
</insert>
|
||||
</mapper>
|
@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="configType != null and configType != ''">#{configType},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
sysdate()
|
||||
current_timestamp
|
||||
)
|
||||
</insert>
|
||||
|
||||
@ -93,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="configType != null and configType != ''">config_type = #{configType},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
update_time = sysdate()
|
||||
update_time = current_timestamp
|
||||
</set>
|
||||
where config_id = #{configId}
|
||||
</update>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user