no message
This commit is contained in:
@ -73,6 +73,13 @@ public class DateUploadController {
|
||||
private String MapExePath;
|
||||
|
||||
|
||||
@RequestMapping(value = "/queryZone" ,method = {RequestMethod.GET})
|
||||
public AjaxResult queryZone()
|
||||
{
|
||||
List<String> zone= service.queryZone();
|
||||
return AjaxResult.success(zone);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/SelectUpload", method = {RequestMethod.POST})
|
||||
public AjaxResult SelectUpload(@RequestBody paging paging) {
|
||||
// LocalDate tomorrow = LocalDate.of(2022,10,2);
|
||||
@ -151,14 +158,11 @@ public class DateUploadController {
|
||||
public AjaxResult InitUpload(@RequestBody UplodFile uplodFile) {
|
||||
|
||||
readXml();
|
||||
|
||||
List<DateUpload> dateUploads = infr(uplodFile.getDateUploads());
|
||||
|
||||
for (int i = 0; i < dateUploads.size(); i++) {
|
||||
Integer Seeding = service.IntoUpload(dateUploads.get(i));
|
||||
|
||||
}
|
||||
|
||||
return AjaxResult.success("成功");
|
||||
}
|
||||
|
||||
@ -209,12 +213,19 @@ public class DateUploadController {
|
||||
dateUpload.get(i).setExtent1(dateUpload.get(i).getExtent().toString());
|
||||
|
||||
DateUpload uploadValue = service.selectShp(name1, type, "");
|
||||
MyThread1 demo = new MyThread1(name.replace(".tif", ""),
|
||||
FilePaths + dateUpload.get(i).getData_id(),
|
||||
ShpPaths + uploadValue.getData_id());
|
||||
demo.run();
|
||||
|
||||
} else if (type1.equals("BOUNDARIES"))//Boundaries
|
||||
// callExe1(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id());
|
||||
// callExe(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id(),
|
||||
// ShpPaths + uploadValue.getData_id());
|
||||
//
|
||||
// MyThread1 demo = new MyThread1(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id(),
|
||||
// ShpPaths + uploadValue.getData_id());
|
||||
// demo.run();
|
||||
|
||||
} else if (type1.equals("BOUNDARIES") || type1.equals("RSIMAGES"))//Boundaries
|
||||
{
|
||||
String[] strs = dateUpload.get(i).getFileName().split("\\.");
|
||||
|
||||
@ -267,11 +278,17 @@ public class DateUploadController {
|
||||
|
||||
dateUpload.get(i).setExtent1(dateUpload.get(i).getExtent().toString());
|
||||
|
||||
DateUpload uploadValue = service.selectShp(name1, type, "");
|
||||
MyThread1 demo = new MyThread1(name.replace(".tif", ""),
|
||||
FilePaths + dateUpload.get(i).getData_id(),
|
||||
ShpPaths + uploadValue.getData_id());
|
||||
demo.run();
|
||||
// DateUpload uploadValue = service.selectShp(name1, type, "");
|
||||
|
||||
// callExe1(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id());
|
||||
// callExe(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id(),
|
||||
// ShpPaths + uploadValue.getData_id());
|
||||
// MyThread1 demo = new MyThread1(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id(),
|
||||
// ShpPaths + uploadValue.getData_id());
|
||||
// demo.run();
|
||||
|
||||
} else if (type1.equals("SUITABILITY")) {
|
||||
String[] strs = dateUpload.get(i).getFileName().split("\\.");
|
||||
@ -306,10 +323,15 @@ public class DateUploadController {
|
||||
|
||||
DateUpload uploadValue = service.selectShp(name1, type, "");
|
||||
|
||||
MyThread1 demo = new MyThread1(name.replace(".tif", ""),
|
||||
FilePaths + dateUpload.get(i).getData_id(),
|
||||
ShpPaths + uploadValue.getData_id());
|
||||
demo.run();
|
||||
// callExe1(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id());
|
||||
// callExe(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id(),
|
||||
// ShpPaths + uploadValue.getData_id());
|
||||
// MyThread1 demo = new MyThread1(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id(),
|
||||
// ShpPaths + uploadValue.getData_id());
|
||||
// demo.run();
|
||||
} else {
|
||||
String[] strs = dateUpload.get(i).getFileName().split("\\.");
|
||||
|
||||
@ -341,11 +363,15 @@ public class DateUploadController {
|
||||
|
||||
|
||||
DateUpload uploadValue = service.selectShp(name1, type, "");
|
||||
MyThread1 demo = new MyThread1(name.replace(".tif", ""),
|
||||
FilePaths + dateUpload.get(i).getData_id(),
|
||||
ShpPaths + uploadValue.getData_id());
|
||||
demo.run();
|
||||
|
||||
// callExe1(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id());
|
||||
// callExe(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id(),
|
||||
// ShpPaths + uploadValue.getData_id());
|
||||
// MyThread1 demo = new MyThread1(name.replace(".tif", ""),
|
||||
// FilePaths + dateUpload.get(i).getData_id(),
|
||||
// ShpPaths + uploadValue.getData_id());
|
||||
// demo.run();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -6,14 +6,14 @@ spring:
|
||||
driver-class-name: org.postgresql.Driver
|
||||
druid:
|
||||
master:
|
||||
url: jdbc:postgresql://rs-middleware-postgres:5432/itba?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai
|
||||
username: gis
|
||||
password: AQBSdU5bT27AKxAAvKoWQdGpSuNRCHjC4B8DVA
|
||||
# url: jdbc:postgresql://rs-middleware-postgres:5432/itba?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai
|
||||
# username: gis
|
||||
# password: AQBSdU5bT27AKxAAvKoWQdGpSuNRCHjC4B8DVA
|
||||
|
||||
#url: jdbc:postgresql://192.168.2.9:5432/saudiArabia?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai
|
||||
# url: jdbc:postgresql://121.36.229.60:5432/saudiArabia?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai
|
||||
# username: sjs
|
||||
# password: song5325
|
||||
url: jdbc:postgresql://121.36.229.60:5432/saudiArabia?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=Asia/Shanghai
|
||||
username: sjs
|
||||
password: song5325
|
||||
# 从库数据源
|
||||
slave:
|
||||
# 从数据源开关/默认关闭
|
||||
|
@ -60,16 +60,16 @@ spring:
|
||||
# redis 配置
|
||||
redis:
|
||||
# 地址
|
||||
host: rs-middleware-redis
|
||||
#host: localhost
|
||||
#host: rs-middleware-redis
|
||||
host: localhost
|
||||
# 端口,默认为6379
|
||||
#port: 14096
|
||||
port: 6379
|
||||
# 数据库索引
|
||||
database: 0
|
||||
# 密码
|
||||
password: SenseTime@2019
|
||||
# password: sdust2020
|
||||
#password: SenseTime@2019
|
||||
password: sdust2020
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
lettuce:
|
||||
|
Reference in New Issue
Block a user