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
863c94e7
You need to sign in or sign up before continuing.
Commit
863c94e7
authored
May 14, 2021
by
梁光意
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复获取不到仪表盘配置接口,获取不到分组名称的问题
parent
c5234716
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
InstrumentPanelConfigServiceImpl.java
.../slmbi/service/impl/InstrumentPanelConfigServiceImpl.java
+5
-0
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelConfigServiceImpl.java
View file @
863c94e7
...
@@ -57,6 +57,9 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
...
@@ -57,6 +57,9 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
@Autowired
@Autowired
private
InstrumentPanelDraftService
draftService
;
private
InstrumentPanelDraftService
draftService
;
@Autowired
private
InstrumentPanelGroupService
panelGroupService
;
@Override
@Override
@Transactional
(
readOnly
=
true
)
@Transactional
(
readOnly
=
true
)
public
InstrumentPanelConfigVo
getPublishConfigByPanelId
(
@NotNull
String
instrumentPanelId
)
{
public
InstrumentPanelConfigVo
getPublishConfigByPanelId
(
@NotNull
String
instrumentPanelId
)
{
...
@@ -339,10 +342,12 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
...
@@ -339,10 +342,12 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
if
(
PublishedStatus
.
PUBLISHED
.
value
.
equals
(
published
.
value
))
{
if
(
PublishedStatus
.
PUBLISHED
.
value
.
equals
(
published
.
value
))
{
InstrumentPanelDraft
panel
=
draftService
.
getByPanelId
(
instrumentPanelId
);
InstrumentPanelDraft
panel
=
draftService
.
getByPanelId
(
instrumentPanelId
);
BeanUtils
.
copyProperties
(
panel
,
panelVo
);
BeanUtils
.
copyProperties
(
panel
,
panelVo
);
panelVo
.
setGroupName
(
panelGroupService
.
getById
(
panel
.
getGroupId
()).
getName
());
}
else
{
}
else
{
InstrumentPanel
panel
=
panelService
.
getById
(
instrumentPanelId
);
InstrumentPanel
panel
=
panelService
.
getById
(
instrumentPanelId
);
BeanUtils
.
copyProperties
(
panel
,
panelVo
);
BeanUtils
.
copyProperties
(
panel
,
panelVo
);
vo
.
setPanelId
(
instrumentPanelId
);
vo
.
setPanelId
(
instrumentPanelId
);
panelVo
.
setGroupName
(
panelGroupService
.
getById
(
panel
.
getGroupId
()).
getName
());
}
}
vo
.
setPanel
(
panelVo
);
vo
.
setPanel
(
panelVo
);
return
vo
;
return
vo
;
...
...
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