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
710c52f5
Commit
710c52f5
authored
May 13, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
62d4f26b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
InstrumentPanelConfigServiceImpl.java
.../slmbi/service/impl/InstrumentPanelConfigServiceImpl.java
+13
-14
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelConfigServiceImpl.java
View file @
710c52f5
...
@@ -322,8 +322,8 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
...
@@ -322,8 +322,8 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
where
.
eq
(
InstrumentPanelConfig:
:
getPanelId
,
instrumentPanelId
);
where
.
eq
(
InstrumentPanelConfig:
:
getPanelId
,
instrumentPanelId
);
where
.
eq
(
InstrumentPanelConfig:
:
getPublished
,
published
.
value
);
where
.
eq
(
InstrumentPanelConfig:
:
getPublished
,
published
.
value
);
InstrumentPanelConfig
config
=
baseMapper
.
selectOne
(
where
);
InstrumentPanelConfig
config
=
baseMapper
.
selectOne
(
where
);
InstrumentPanelConfigVo
vo
=
new
InstrumentPanelConfigVo
();
if
(
ObjectUtils
.
isNotEmpty
(
config
))
{
if
(
ObjectUtils
.
isNotEmpty
(
config
))
{
InstrumentPanelConfigVo
vo
=
new
InstrumentPanelConfigVo
();
BeanUtils
.
copyProperties
(
config
,
vo
);
BeanUtils
.
copyProperties
(
config
,
vo
);
if
(
ObjectUtils
.
isNotEmpty
(
vo
))
{
if
(
ObjectUtils
.
isNotEmpty
(
vo
))
{
try
{
try
{
...
@@ -332,21 +332,20 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
...
@@ -332,21 +332,20 @@ public class InstrumentPanelConfigServiceImpl extends ServiceImpl<InstrumentPane
e
.
printStackTrace
();
e
.
printStackTrace
();
throw
new
SysException
(
"仪表板配置详情解密异常"
);
throw
new
SysException
(
"仪表板配置详情解密异常"
);
}
}
vo
.
setPermissions
(
permissionService
.
getPublishPermissionByPanelId
(
instrumentPanelId
,
published
.
value
));
InstrumentPanelVo
panelVo
=
new
InstrumentPanelVo
();
if
(
PublishedStatus
.
PUBLISHED
.
value
.
equals
(
published
.
value
))
{
InstrumentPanelDraft
panel
=
draftService
.
getByPanelId
(
instrumentPanelId
);
BeanUtils
.
copyProperties
(
panel
,
panelVo
);
}
else
{
InstrumentPanel
panel
=
panelService
.
getById
(
instrumentPanelId
);
BeanUtils
.
copyProperties
(
panel
,
panelVo
);
}
vo
.
setPanel
(
panelVo
);
return
vo
;
}
}
}
}
return
null
;
vo
.
setPermissions
(
permissionService
.
getPublishPermissionByPanelId
(
instrumentPanelId
,
published
.
value
));
InstrumentPanelVo
panelVo
=
new
InstrumentPanelVo
();
if
(
PublishedStatus
.
PUBLISHED
.
value
.
equals
(
published
.
value
))
{
InstrumentPanelDraft
panel
=
draftService
.
getByPanelId
(
instrumentPanelId
);
BeanUtils
.
copyProperties
(
panel
,
panelVo
);
}
else
{
InstrumentPanel
panel
=
panelService
.
getById
(
instrumentPanelId
);
BeanUtils
.
copyProperties
(
panel
,
panelVo
);
vo
.
setPanelId
(
instrumentPanelId
);
}
vo
.
setPanel
(
panelVo
);
return
vo
;
}
}
private
void
fillPanelProp
(
InstrumentPanelPermissionDTO
permission
,
InstrumentPanel
panel
,
String
publishStatus
)
{
private
void
fillPanelProp
(
InstrumentPanelPermissionDTO
permission
,
InstrumentPanel
panel
,
String
publishStatus
)
{
...
...
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