Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
map-parent
Commits
d0cffb90
Commit
d0cffb90
authored
Jul 10, 2021
by
Jbb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除了一些多余的依赖 修改一下配置
parent
e1d15369
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
10 deletions
+22
-10
common/common_utils/src/main/java/com/founder/commonutils/viewEntity/TbStLayerData.java
+0
-1
service/pom.xml
+0
-5
service/view/pom.xml
+17
-0
service/view/src/main/java/com/founder/view/controller/TbStLayerDataController.java
+5
-4
No files found.
common/common_utils/src/main/java/com/founder/commonutils/viewEntity/TbStLayerData.java
View file @
d0cffb90
...
...
@@ -2,7 +2,6 @@ package com.founder.commonutils.viewEntity;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
...
...
service/pom.xml
View file @
d0cffb90
...
...
@@ -178,11 +178,6 @@
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-openfeign
</artifactId>
<version>
2.2.0.RELEASE
</version>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-zuul
</artifactId>
</dependency>
</dependencies>
...
...
service/view/pom.xml
View file @
d0cffb90
...
...
@@ -12,6 +12,23 @@
<artifactId>
view
</artifactId>
<build>
<finalName>
view
</finalName>
<!-- 项目打包时默认将.java的文件进行打包 不会将java目录中的*.xml文件也进行打包 -->
<resources>
<resource>
<directory>
src/main/java
</directory>
<includes>
<include>
**/*.xml
</include>
</includes>
<filtering>
false
</filtering>
</resource>
<resource>
<directory>
src/main/resources
</directory>
<includes>
<include>
**/*
</include>
</includes>
<filtering>
true
</filtering>
</resource>
</resources>
</build>
...
...
service/view/src/main/java/com/founder/view/controller/TbStLayerDataController.java
View file @
d0cffb90
...
...
@@ -43,6 +43,7 @@ public class TbStLayerDataController {
//获取excel有多少行
int
lastRowNum
=
sheetAt
.
getLastRowNum
();
List
<
TbStLayerData
>
pointList
=
new
ArrayList
<>();
DateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
for
(
int
i
=
1
;
i
<=
lastRowNum
;
i
++)
{
TbStLayerData
point
=
new
TbStLayerData
();
String
id
=
KeyUtil
.
getUUIDKey
(
"xy"
);
...
...
@@ -53,7 +54,7 @@ public class TbStLayerDataController {
short
lastCellNum
=
row
.
getLastCellNum
();
//判断经纬度是否符合要求
//检车一下数据是否能正常读取.....
double
jd
=
0.0
;
/*
double jd = 0.0;
double wd = 0.0;
String titleStr = "";
String dateStr = "";
...
...
@@ -63,8 +64,7 @@ public class TbStLayerDataController {
titleStr = row.getCell(2).getStringCellValue();
dateStr = row.getCell(3).getStringCellValue();
System.out.println(jd + "==========" + wd + "=========" + titleStr + "=========" + dateStr);
}
DateFormat
df
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
}*/
try
{
//验证经纬度是否是八位小数以内
boolean
isTrue
=
LngLonUtil
.
verifyLongAndLat
(
row
.
getCell
(
0
).
getNumericCellValue
(),
row
.
getCell
(
1
).
getNumericCellValue
());
...
...
@@ -143,11 +143,12 @@ public class TbStLayerDataController {
double
lat
=
accidentPoint
.
getY
();
String
title
=
accidentPoint
.
getTitle
();
Date
time
=
accidentPoint
.
getTime
();
String
timeFormat
=
df
.
format
(
time
);
HSSFRow
rowData
=
sheet
.
createRow
(
i
+
1
);
rowData
.
createCell
(
0
).
setCellValue
(
lon
);
rowData
.
createCell
(
1
).
setCellValue
(
lat
);
rowData
.
createCell
(
2
).
setCellValue
(
title
);
rowData
.
createCell
(
3
).
setCellValue
(
time
);
rowData
.
createCell
(
3
).
setCellValue
(
time
Format
);
}
//通过输出流下载
ServletOutputStream
outputStream
=
response
.
getOutputStream
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment