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
f3774e21
Commit
f3774e21
authored
May 07, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
bfa7df25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
InstrumentPanelServiceImpl.java
...yc/slm/slmbi/service/impl/InstrumentPanelServiceImpl.java
+10
-5
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelServiceImpl.java
View file @
f3774e21
...
...
@@ -12,10 +12,7 @@ import com.syc.slm.common.core.constant.SlmConstants;
import
com.syc.slm.slmbi.dao.InstrumentPanelMapper
;
import
com.syc.slm.slmbi.dto.QueryInstrumentPanelDTO
;
import
com.syc.slm.slmbi.dto.SaveInstrumentPanelDTO
;
import
com.syc.slm.slmbi.entity.BaseEntity
;
import
com.syc.slm.slmbi.entity.InstrumentPanel
;
import
com.syc.slm.slmbi.entity.InstrumentPanelDraft
;
import
com.syc.slm.slmbi.entity.InstrumentPanelTree
;
import
com.syc.slm.slmbi.entity.*
;
import
com.syc.slm.slmbi.enums.AccessType
;
import
com.syc.slm.slmbi.enums.NodeType
;
import
com.syc.slm.slmbi.enums.PublishedStatus
;
...
...
@@ -58,6 +55,9 @@ public class InstrumentPanelServiceImpl extends ServiceImpl<InstrumentPanelMappe
@Autowired
private
InstrumentPanelDraftService
draftService
;
@Autowired
private
InstrumentPanelGroupService
panelGroupService
;
@Override
@Transactional
(
readOnly
=
true
)
public
IPage
<
InstrumentPanelVo
>
selectInstrumentPanelList
(
String
appId
,
QueryInstrumentPanelDTO
query
)
{
...
...
@@ -70,7 +70,12 @@ public class InstrumentPanelServiceImpl extends ServiceImpl<InstrumentPanelMappe
if
(
StringUtils
.
isEmpty
(
query
.
getGroupId
())){
throw
new
SysException
(
"必须选择需要查询的仪表板分组"
);
}
where
.
eq
(
"p.group_id"
,
query
.
getGroupId
());
InstrumentPanelGroup
group
=
panelGroupService
.
getById
(
query
.
getGroupId
());
if
(
StringUtils
.
isNotEmpty
(
group
.
getParentId
())){
where
.
eq
(
"p.group_id"
,
query
.
getGroupId
());
}
where
.
eq
(
"p.record_status"
,
SlmConstants
.
DATA_VALID
);
if
(
StringUtils
.
isNotEmpty
(
query
.
getName
()))
{
where
.
and
(
x
->
x
.
like
(
"p.name"
,
query
.
getName
()).
or
().
like
(
"p.creator_name"
,
query
.
getName
()).
or
().
like
(
"p.updater_name"
,
query
.
getName
()));
...
...
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