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
9ed069eb
Commit
9ed069eb
authored
Jun 09, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
7145d3f1
4a762af8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
InstrumentPanelInitServiceImpl.java
...lm/slmbi/service/impl/InstrumentPanelInitServiceImpl.java
+10
-10
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelInitServiceImpl.java
View file @
9ed069eb
...
@@ -49,10 +49,10 @@ public class InstrumentPanelInitServiceImpl extends ServiceImpl<InstrumentPanelM
...
@@ -49,10 +49,10 @@ public class InstrumentPanelInitServiceImpl extends ServiceImpl<InstrumentPanelM
@Value
(
"${initPanelName2:售后服务综合看板}"
)
@Value
(
"${initPanelName2:售后服务综合看板}"
)
private
String
initPanelName2
;
private
String
initPanelName2
;
@Value
(
"${initConfigId1:
82752b5ba8b2bd379c771a72c83f4b3a
}"
)
@Value
(
"${initConfigId1:
e5138f8a54415a3bac86e2be638e09c8
}"
)
private
String
initConfig1
;
private
String
initConfig1
;
@Value
(
"${initConfigId2:
29727c771a6fcb492d206a9e811e585
d}"
)
@Value
(
"${initConfigId2:
1fffa826bc6ed38031288e2ef7a2173
d}"
)
private
String
initConfig2
;
private
String
initConfig2
;
@Autowired
@Autowired
...
@@ -107,12 +107,12 @@ public class InstrumentPanelInitServiceImpl extends ServiceImpl<InstrumentPanelM
...
@@ -107,12 +107,12 @@ public class InstrumentPanelInitServiceImpl extends ServiceImpl<InstrumentPanelM
one
=
panelGroupService
.
getById
(
groupId
);
one
=
panelGroupService
.
getById
(
groupId
);
}
}
init
(
a
ppId
,
one
,
initConfig1
,
initPanelName1
);
init
(
queryA
ppId
,
one
,
initConfig1
,
initPanelName1
);
init
(
a
ppId
,
one
,
initConfig2
,
initPanelName2
);
init
(
queryA
ppId
,
one
,
initConfig2
,
initPanelName2
);
return
null
;
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
);
InstrumentPanelConfig
panelConfig
=
configService
.
getById
(
initConfig
);
String
config
;
String
config
;
try
{
try
{
...
@@ -127,20 +127,20 @@ public class InstrumentPanelInitServiceImpl extends ServiceImpl<InstrumentPanelM
...
@@ -127,20 +127,20 @@ public class InstrumentPanelInitServiceImpl extends ServiceImpl<InstrumentPanelM
where
.
likeRight
(
InstrumentPanelTree:
:
getFullId
,
tree
.
getFullId
()
+
"."
);
where
.
likeRight
(
InstrumentPanelTree:
:
getFullId
,
tree
.
getFullId
()
+
"."
);
where
.
orderByAsc
(
InstrumentPanelTree:
:
getAssemblyKey
);
where
.
orderByAsc
(
InstrumentPanelTree:
:
getAssemblyKey
);
List
<
InstrumentPanelTree
>
panelTrees
=
treeService
.
list
(
where
);
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
<>();
LambdaQueryWrapper
<
InstrumentPanel
>
where1
=
new
LambdaQueryWrapper
<>();
where1
.
eq
(
BaseEntity:
:
getAppId
,
a
ppId
);
where1
.
eq
(
BaseEntity:
:
getAppId
,
queryA
ppId
);
where1
.
eq
(
InstrumentPanel:
:
getName
,
initPanelName1
);
where1
.
eq
(
InstrumentPanel:
:
getName
,
panelName
);
where1
.
eq
(
BaseEntity:
:
getRecordStatus
,
SlmConstants
.
DATA_VALID
);
where1
.
eq
(
BaseEntity:
:
getRecordStatus
,
SlmConstants
.
DATA_VALID
);
InstrumentPanel
instrumentPanel
=
baseMapper
.
selectOne
(
where1
);
InstrumentPanel
instrumentPanel
=
baseMapper
.
selectOne
(
where1
);
if
(
ObjectUtils
.
isEmpty
(
instrumentPanel
))
{
if
(
ObjectUtils
.
isEmpty
(
instrumentPanel
))
{
SaveInstrumentPanelDTO
panelDto
=
new
SaveInstrumentPanelDTO
();
SaveInstrumentPanelDTO
panelDto
=
new
SaveInstrumentPanelDTO
();
panelDto
.
setName
(
panelName
);
panelDto
.
setName
(
panelName
);
panelDto
.
setGroupId
(
one
.
getId
());
panelDto
.
setGroupId
(
one
.
getId
());
String
panelId
=
panelService
.
savePanel
(
a
ppId
,
panelDto
);
String
panelId
=
panelService
.
savePanel
(
queryA
ppId
,
panelDto
);
instrumentPanel
=
baseMapper
.
selectById
(
panelId
);
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