Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-bi
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
林锐标
slm-bi
Commits
4b45662d
Commit
4b45662d
authored
Apr 28, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
3c103baf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
InstrumentPanelConfigServiceImpl.java
.../slmbi/service/impl/InstrumentPanelConfigServiceImpl.java
+6
-2
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelConfigServiceImpl.java
View file @
4b45662d
...
...
@@ -278,6 +278,8 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
where
.
eq
(
BaseEntity:
:
getRecordStatus
,
SlmConstants
.
DATA_VALID
);
where
.
eq
(
InstrumentPanelConfig:
:
getPanelId
,
panelId
);
List
<
InstrumentPanelConfig
>
configs
=
baseMapper
.
selectList
(
where
);
String
waitPublished
=
null
;
String
published
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
configs
)){
InstrumentPanelConfig
waitConfig
=
configs
.
stream
()
.
filter
(
x
->
PublishedStatus
.
WAIT_PUBLISHED
.
value
.
equals
(
x
.
getPublished
()))
...
...
@@ -285,7 +287,7 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
.
orElse
(
null
);
if
(
ObjectUtils
.
isNotEmpty
(
waitConfig
)){
try
{
maps
.
put
(
PublishedStatus
.
WAIT_PUBLISHED
.
value
,
URLDecoder
.
decode
(
waitConfig
.
getConfigDetails
(),
StandardCharsets
.
UTF_8
.
name
()
));
waitPublished
=
URLDecoder
.
decode
(
waitConfig
.
getConfigDetails
(),
StandardCharsets
.
UTF_8
.
name
(
));
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
...
...
@@ -296,12 +298,14 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
.
orElse
(
null
);
if
(
ObjectUtils
.
isNotEmpty
(
publishConfig
)){
try
{
maps
.
put
(
PublishedStatus
.
PUBLISHED
.
value
,
URLDecoder
.
decode
(
publishConfig
.
getConfigDetails
(),
StandardCharsets
.
UTF_8
.
name
()
));
published
=
URLDecoder
.
decode
(
publishConfig
.
getConfigDetails
(),
StandardCharsets
.
UTF_8
.
name
(
));
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
}
}
maps
.
put
(
PublishedStatus
.
WAIT_PUBLISHED
.
value
,
waitPublished
);
maps
.
put
(
PublishedStatus
.
PUBLISHED
.
value
,
published
);
return
maps
;
}
...
...
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