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
4d640237
Commit
4d640237
authored
May 16, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
5504a6a0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
18 deletions
+25
-18
InstrumentPanelConfigServiceImpl.java
.../slmbi/service/impl/InstrumentPanelConfigServiceImpl.java
+12
-8
InstrumentPanelGroupServiceImpl.java
...m/slmbi/service/impl/InstrumentPanelGroupServiceImpl.java
+2
-1
InstrumentPanelTreeServiceImpl.java
...lm/slmbi/service/impl/InstrumentPanelTreeServiceImpl.java
+11
-9
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelConfigServiceImpl.java
View file @
4d640237
...
...
@@ -333,10 +333,12 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
.
findFirst
()
.
orElse
(
null
);
if
(
ObjectUtils
.
isNotEmpty
(
waitConfig
)){
try
{
waitPublished
=
URLDecoder
.
decode
(
waitConfig
.
getConfigDetails
(),
StandardCharsets
.
UTF_8
.
name
());
}
catch
(
Exception
e
){
e
.
printStackTrace
();
if
(
StringUtils
.
isNotEmpty
(
waitConfig
.
getConfigDetails
()))
{
try
{
waitPublished
=
URLDecoder
.
decode
(
waitConfig
.
getConfigDetails
(),
StandardCharsets
.
UTF_8
.
name
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
InstrumentPanelConfig
publishConfig
=
configs
.
stream
()
...
...
@@ -344,10 +346,12 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
.
findFirst
()
.
orElse
(
null
);
if
(
ObjectUtils
.
isNotEmpty
(
publishConfig
)){
try
{
published
=
URLDecoder
.
decode
(
publishConfig
.
getConfigDetails
(),
StandardCharsets
.
UTF_8
.
name
());
}
catch
(
Exception
e
){
e
.
printStackTrace
();
if
(
StringUtils
.
isNotEmpty
(
publishConfig
.
getConfigDetails
()))
{
try
{
published
=
URLDecoder
.
decode
(
publishConfig
.
getConfigDetails
(),
StandardCharsets
.
UTF_8
.
name
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
}
...
...
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelGroupServiceImpl.java
View file @
4d640237
...
...
@@ -78,7 +78,8 @@ public class InstrumentPanelGroupServiceImpl extends ServiceImpl<InstrumentPanel
stack
.
add
(
pGroup
);
}
}
return
Lists
.
newArrayList
(
filteredMap
.
values
());
return
Lists
.
newArrayList
(
filteredMap
.
values
()).
stream
().
sorted
(
Comparator
.
comparing
(
InstrumentPanelGroupVo:
:
getCreateTime
)).
collect
(
Collectors
.
toList
());
}
@Override
...
...
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelTreeServiceImpl.java
View file @
4d640237
...
...
@@ -15,15 +15,14 @@ import com.syc.slm.common.core.util.R;
import
com.syc.slm.common.core.util.RestTemplateUtils
;
import
com.syc.slm.slmbi.dao.InstrumentPanelTreeMapper
;
import
com.syc.slm.slmbi.dto.InstrumentPanelAssemblyDTO
;
import
com.syc.slm.slmbi.entity.*
;
import
com.syc.slm.slmbi.entity.BaseEntity
;
import
com.syc.slm.slmbi.entity.CurrentUser
;
import
com.syc.slm.slmbi.entity.InstrumentPanelDraft
;
import
com.syc.slm.slmbi.entity.InstrumentPanelTree
;
import
com.syc.slm.slmbi.enums.NodeType
;
import
com.syc.slm.slmbi.enums.PublishedStatus
;
import
com.syc.slm.slmbi.exception.SysException
;
import
com.syc.slm.slmbi.service.*
;
import
com.syc.slm.slmbi.vo.*
;
import
lombok.NonNull
;
import
com.syc.slm.slmbi.vo.PanelTreeNodeVo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.io.filefilter.FalseFileFilter
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -190,7 +189,8 @@ public class InstrumentPanelTreeServiceImpl extends ServiceImpl<InstrumentPanelT
}
}
}
return
lists
;
return
lists
.
stream
().
sorted
(
Comparator
.
comparing
(
PanelTreeNodeVo:
:
getCreateTime
)).
collect
(
Collectors
.
toList
());
}
...
...
@@ -271,7 +271,8 @@ public class InstrumentPanelTreeServiceImpl extends ServiceImpl<InstrumentPanelT
}
}
}
return
lists
;
return
lists
.
stream
().
sorted
(
Comparator
.
comparing
(
PanelTreeNodeVo:
:
getCreateTime
)).
collect
(
Collectors
.
toList
());
}
@Override
...
...
@@ -327,7 +328,8 @@ public class InstrumentPanelTreeServiceImpl extends ServiceImpl<InstrumentPanelT
}
}
}
return
lists
;
return
lists
.
stream
().
sorted
(
Comparator
.
comparing
(
PanelTreeNodeVo:
:
getCreateTime
)).
collect
(
Collectors
.
toList
());
}
@Override
...
...
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