Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
99509d94
Commit
99509d94
authored
Mar 23, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
914aa506
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
StoreImportController.java
...a/com/gic/store/web/controller/StoreImportController.java
+8
-4
No files found.
gic-store-web/src/main/java/com/gic/store/web/controller/StoreImportController.java
View file @
99509d94
...
...
@@ -470,14 +470,20 @@ public class StoreImportController {
// 经纬度校验
if
(
StringUtils
.
isNotBlank
(
bean
.
getLongitude
()))
{
try
{
Float
.
valueOf
(
bean
.
getLongitude
());
Float
longitude
=
Float
.
valueOf
(
bean
.
getLongitude
());
if
(
longitude
<
0
||
longitude
>
180
)
{
errorMessage
.
append
(
"经度错误,"
);
}
}
catch
(
NumberFormatException
e
)
{
errorMessage
.
append
(
"经度错误,"
);
}
}
if
(
StringUtils
.
isNotBlank
(
bean
.
getLatitude
()))
{
try
{
Float
.
valueOf
(
bean
.
getLatitude
());
Float
latitude
=
Float
.
valueOf
(
bean
.
getLatitude
());
if
(
latitude
<
0
||
latitude
>
90
)
{
errorMessage
.
append
(
"维度错误,"
);
}
}
catch
(
NumberFormatException
e
)
{
errorMessage
.
append
(
"维度错误,"
);
}
...
...
@@ -567,12 +573,10 @@ public class StoreImportController {
return
serviceResponse
.
isSuccess
()
?
serviceResponse
.
getResult
()
:
null
;
}
// @RequestMapping("/test")
// public Object re() {
// List<StoreTmpDTO> storeTmpDTOS = storeImportApiService.listStoreTmp(1111, null, true);
// System.out.println(storeTmpDTOS);
// return null;
// }
}
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