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
882786cc
Commit
882786cc
authored
Jul 13, 2021
by
Jbb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纬度必传 其他字段随意
parent
cc2f3402
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
service/view/src/main/java/com/founder/view/controller/TbStLayerDataController.java
+7
-1
No files found.
service/view/src/main/java/com/founder/view/controller/TbStLayerDataController.java
View file @
882786cc
...
...
@@ -123,7 +123,7 @@ public class TbStLayerDataController {
dateStr = row.getCell(3).getStringCellValue();
System.out.println(jd + "====" + wd + "====" + titleStr + "====" + dateStr);
}*/
if
(
row
.
getCell
(
0
)
!=
null
&&
row
.
getCell
(
1
)
!=
null
&&
row
.
getCell
(
2
)
!=
null
&&
row
.
getCell
(
0
)
!=
null
)
{
if
(
row
.
getCell
(
0
)
!=
null
&&
row
.
getCell
(
1
)
!=
null
)
{
row
.
getCell
(
0
).
setCellType
(
Cell
.
CELL_TYPE_STRING
);
row
.
getCell
(
1
).
setCellType
(
Cell
.
CELL_TYPE_STRING
);
row
.
getCell
(
2
).
setCellType
(
Cell
.
CELL_TYPE_STRING
);
...
...
@@ -147,9 +147,12 @@ public class TbStLayerDataController {
}
if
(
j
==
3
)
{
String
dateTimeStr
=
row
.
getCell
(
3
).
getStringCellValue
();
if
(
dateTimeStr
!=
""
){
Date
dateTime
=
df
.
parse
(
dateTimeStr
);
point
.
setTime
(
dateTime
);
}
point
.
setTime
(
new
Date
());
}
}
accidentPointService
.
save
(
point
);
}
else
{
...
...
@@ -183,9 +186,12 @@ public class TbStLayerDataController {
}
if
(
j
==
3
)
{
String
dateTimeStr
=
row
.
getCell
(
3
).
getStringCellValue
();
if
(
dateTimeStr
!=
""
){
Date
dateTime
=
df
.
parse
(
dateTimeStr
);
point
.
setTime
(
dateTime
);
}
point
.
setTime
(
new
Date
());
}
}
accidentPointService
.
save
(
point
);
}
...
...
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