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
9712fb9c
Commit
9712fb9c
authored
Jun 04, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
5a18eab2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
InitController.java
...ain/java/com/syc/slm/slmbi/controller/InitController.java
+3
-1
No files found.
src/main/java/com/syc/slm/slmbi/controller/InitController.java
View file @
9712fb9c
...
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.syc.slm.common.core.constant.SlmConstants
;
import
com.syc.slm.common.core.util.R
;
import
com.syc.slm.slmbi.entity.BaseEntity
;
import
com.syc.slm.slmbi.entity.CurrentUser
;
import
com.syc.slm.slmbi.entity.InstrumentPanelGroup
;
import
com.syc.slm.slmbi.service.CompanyService
;
import
com.syc.slm.slmbi.service.InstrumentPanelGroupService
;
...
...
@@ -55,11 +56,12 @@ public class InitController extends BaseRestController{
@ApiImplicitParam
(
name
=
"appId"
,
value
=
"租户id"
,
required
=
true
,
dataTypeClass
=
String
.
class
)
public
R
<
Object
>
initPanel
(
HttpServletRequest
request
,
@PathVariable
String
appId
)
{
return
call
(()->{
CurrentUser
currentUser
=
getCurrentUser
(
request
);
LambdaQueryWrapper
<
InstrumentPanelGroup
>
where
=
new
LambdaQueryWrapper
<>();
where
.
eq
(
BaseEntity:
:
getRecordStatus
,
SlmConstants
.
DATA_VALID
);
where
.
eq
(
InstrumentPanelGroup:
:
getName
,
"全部分组"
);
List
<
InstrumentPanelGroup
>
list
=
groupService
.
list
(
where
);
list
.
forEach
(
x
->
panelInitService
.
initOnePanel
(
x
.
getAppId
(),
request
));
list
.
forEach
(
x
->
panelInitService
.
initOnePanel
(
x
.
getAppId
(),
currentUser
.
getToken
(),
request
));
});
}
}
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