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
c88087cc
Commit
c88087cc
authored
Jun 04, 2021
by
梁光意
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改初始化参数1
parent
f6a04d4c
Pipeline
#9540
passed with stages
in 1 minute 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
InstrumentPanelInitServiceImpl.java
...lm/slmbi/service/impl/InstrumentPanelInitServiceImpl.java
+6
-6
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelInitServiceImpl.java
View file @
c88087cc
...
...
@@ -112,7 +112,7 @@ public class InstrumentPanelInitServiceImpl extends ServiceImpl<InstrumentPanelM
return
null
;
}
private
void
init
(
String
a
ppId
,
InstrumentPanelGroup
one
,
String
initConfig
,
String
initPanelName
)
{
private
void
init
(
String
queryA
ppId
,
InstrumentPanelGroup
one
,
String
initConfig
,
String
initPanelName
)
{
InstrumentPanelConfig
panelConfig
=
configService
.
getById
(
initConfig
);
String
config
;
try
{
...
...
@@ -127,20 +127,20 @@ public class InstrumentPanelInitServiceImpl extends ServiceImpl<InstrumentPanelM
where
.
likeRight
(
InstrumentPanelTree:
:
getFullId
,
tree
.
getFullId
()
+
"."
);
where
.
orderByAsc
(
InstrumentPanelTree:
:
getAssemblyKey
);
List
<
InstrumentPanelTree
>
panelTrees
=
treeService
.
list
(
where
);
configService
.
publish
(
appId
,
setConfig
(
one
,
a
ppId
,
initPanelName
,
config
,
panelTrees
));
configService
.
publish
(
queryAppId
,
setConfig
(
one
,
queryA
ppId
,
initPanelName
,
config
,
panelTrees
));
}
private
InstrumentPanelConfigDTO
setConfig
(
InstrumentPanelGroup
one
,
String
a
ppId
,
String
panelName
,
String
panelConfig
,
List
<
InstrumentPanelTree
>
panelTrees
){
private
InstrumentPanelConfigDTO
setConfig
(
InstrumentPanelGroup
one
,
String
queryA
ppId
,
String
panelName
,
String
panelConfig
,
List
<
InstrumentPanelTree
>
panelTrees
){
LambdaQueryWrapper
<
InstrumentPanel
>
where1
=
new
LambdaQueryWrapper
<>();
where1
.
eq
(
BaseEntity:
:
getAppId
,
a
ppId
);
where1
.
eq
(
InstrumentPanel:
:
getName
,
initPanelName1
);
where1
.
eq
(
BaseEntity:
:
getAppId
,
queryA
ppId
);
where1
.
eq
(
InstrumentPanel:
:
getName
,
panelName
);
where1
.
eq
(
BaseEntity:
:
getRecordStatus
,
SlmConstants
.
DATA_VALID
);
InstrumentPanel
instrumentPanel
=
baseMapper
.
selectOne
(
where1
);
if
(
ObjectUtils
.
isEmpty
(
instrumentPanel
))
{
SaveInstrumentPanelDTO
panelDto
=
new
SaveInstrumentPanelDTO
();
panelDto
.
setName
(
panelName
);
panelDto
.
setGroupId
(
one
.
getId
());
String
panelId
=
panelService
.
savePanel
(
a
ppId
,
panelDto
);
String
panelId
=
panelService
.
savePanel
(
queryA
ppId
,
panelDto
);
instrumentPanel
=
baseMapper
.
selectById
(
panelId
);
}
...
...
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