Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
Project
Project
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
station
YeeAmosFireAutoSysRoot
Commits
ff9d0ebf
Commit
ff9d0ebf
authored
Mar 10, 2020
by
单奇雲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改topo key编码
parent
a26ffd3b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletion
+11
-1
TopographyController.java
...in/amos/fas/business/controller/TopographyController.java
+1
-1
ITopographyNodeDao.java
.../amos/fas/business/dao/repository/ITopographyNodeDao.java
+3
-0
ITopographyNodeServiceImpl.java
...fas/business/service/impl/ITopographyNodeServiceImpl.java
+5
-0
ITopographyNodeService.java
...os/fas/business/service/intfc/ITopographyNodeService.java
+2
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/TopographyController.java
View file @
ff9d0ebf
...
...
@@ -66,7 +66,7 @@ public class TopographyController {
JSONArray
nodes
=
topographyParam
.
getJSONArray
(
"nodeData"
);
List
<
TopographyNode
>
nodeData
=
JSON
.
parseArray
(
JSON
.
toJSONString
(
nodes
),
TopographyNode
.
class
);
HashMap
<
String
,
String
>
convertKeyMap
=
new
HashMap
<>();
int
curSize
=
node
Data
.
stream
().
filter
(
e
->
Integer
.
parseInt
(
e
.
getKey
())
>
0
).
collect
(
Collectors
.
toList
()).
size
(
);
int
curSize
=
node
Service
.
queryMaxKeyByAppId
(
appId
);
for
(
TopographyNode
e:
nodeData
){
if
(
Integer
.
valueOf
(
e
.
getKey
())
<
0
)
{
curSize
=
curSize
+
1
;
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/repository/ITopographyNodeDao.java
View file @
ff9d0ebf
...
...
@@ -20,4 +20,7 @@ public interface ITopographyNodeDao extends BaseDao<TopographyNode, Long> {
TopographyNode
findByKeyAndAppId
(
String
nodekey
,
String
appId
);
@Query
(
value
=
"select max(`key`) from f_topography_node where app_id = (?1)"
,
nativeQuery
=
true
)
Integer
queryMaxKeyByAppId
(
String
appId
);
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ITopographyNodeServiceImpl.java
View file @
ff9d0ebf
...
...
@@ -78,5 +78,10 @@ public class ITopographyNodeServiceImpl implements ITopographyNodeService{
return
nodeDao
.
findByKeyAndAppId
(
nodekey
,
appId
);
}
@Override
public
int
queryMaxKeyByAppId
(
String
appId
)
{
return
nodeDao
.
queryMaxKeyByAppId
(
appId
);
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/ITopographyNodeService.java
View file @
ff9d0ebf
...
...
@@ -20,4 +20,6 @@ public interface ITopographyNodeService {
public
TopographyNode
queryByKeyAndAppId
(
String
nodekey
,
String
appId
);
public
int
queryMaxKeyByAppId
(
String
appId
);
}
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