Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
self-service
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
廖旭伟
self-service
Commits
0ca93c8c
Commit
0ca93c8c
authored
Jan 08, 2025
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
站点经纬度参数配置
parent
fd0d4aa8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
sst-manager/db/add_db.sql
sst-manager/db/add_db.sql
+0
-6
sst-manager/src/main/java/com/mortals/xhx/module/sst/web/SstBasicController.java
...va/com/mortals/xhx/module/sst/web/SstBasicController.java
+6
-3
No files found.
sst-manager/db/add_db.sql
View file @
0ca93c8c
...
@@ -344,9 +344,3 @@ MODIFY `url` varchar(512) DEFAULT NULL COMMENT '应用访问地址';
...
@@ -344,9 +344,3 @@ MODIFY `url` varchar(512) DEFAULT NULL COMMENT '应用访问地址';
ALTER
TABLE
`mortals_xhx_sst_apps`
MODIFY
`describe`
varchar
(
2048
)
DEFAULT
NULL
COMMENT
'应用描述'
,
ALTER
TABLE
`mortals_xhx_sst_apps`
MODIFY
`describe`
varchar
(
2048
)
DEFAULT
NULL
COMMENT
'应用描述'
,
MODIFY
`url`
varchar
(
512
)
DEFAULT
NULL
COMMENT
'应用访问地址'
;
MODIFY
`url`
varchar
(
512
)
DEFAULT
NULL
COMMENT
'应用访问地址'
;
-- ----------------------------
-- 字段长度修改 (2025-01-08)
-- ----------------------------
INSERT
INTO
`mortals_xhx_param`
(
`name`
,
`firstOrganize`
,
`secondOrganize`
,
`paramKey`
,
`paramValue`
,
`validStatus`
,
`modStatus`
,
`displayType`
,
`remark`
,
`createTime`
,
`createUserId`
,
`createUserName`
)
VALUES
(
'站点经度'
,
NULL
,
NULL
,
'SITE_LONGITUDE'
,
'104.082823'
,
'1'
,
'4'
,
'0'
,
NULL
,
NULL
,
NULL
,
NULL
);
INSERT
INTO
`mortals_xhx_param`
(
`name`
,
`firstOrganize`
,
`secondOrganize`
,
`paramKey`
,
`paramValue`
,
`validStatus`
,
`modStatus`
,
`displayType`
,
`remark`
,
`createTime`
,
`createUserId`
,
`createUserName`
)
VALUES
(
'站点维度'
,
NULL
,
NULL
,
'SITE_LATITUDE'
,
'30.657042'
,
'1'
,
'4'
,
'0'
,
NULL
,
NULL
,
NULL
,
NULL
);
sst-manager/src/main/java/com/mortals/xhx/module/sst/web/SstBasicController.java
View file @
0ca93c8c
...
@@ -253,9 +253,12 @@ public class SstBasicController extends BaseCRUDJsonBodyMappingController<SstBas
...
@@ -253,9 +253,12 @@ public class SstBasicController extends BaseCRUDJsonBodyMappingController<SstBas
rootNode
.
setType
(
"area"
);
rootNode
.
setType
(
"area"
);
rootNode
.
setIcon
(
"el-icon-folder"
);
rootNode
.
setIcon
(
"el-icon-folder"
);
rootNode
.
setIsLeaf
(
false
);
rootNode
.
setIsLeaf
(
false
);
String
longitude
=
GlobalSysInfo
.
getParamValue
(
"SITE_LONGITUDE"
,
"104.082823"
);
//经度104.082823,
String
longitude
=
"104.082823"
;
String
latitude
=
GlobalSysInfo
.
getParamValue
(
"SITE_LATITUDE"
,
"30.657042"
);
//维度30.657042
String
latitude
=
"30.657042"
;
if
(
org
.
apache
.
commons
.
collections4
.
CollectionUtils
.
isNotEmpty
(
resultList
))
{
longitude
=
resultList
.
get
(
0
).
getLongitude
();
latitude
=
resultList
.
get
(
0
).
getLatitude
();
}
rootNode
.
setLatitude
(
latitude
);
rootNode
.
setLatitude
(
latitude
);
rootNode
.
setLongitude
(
longitude
);
rootNode
.
setLongitude
(
longitude
);
rootNode
.
setSiteCount
(
getChildrenCount
(
resultList
,
2
,
siteMap
,
siteDeviceMap
)-
1
);
rootNode
.
setSiteCount
(
getChildrenCount
(
resultList
,
2
,
siteMap
,
siteDeviceMap
)-
1
);
...
...
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