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
199f3dbc
Commit
199f3dbc
authored
Jun 04, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
20337d30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
TenantController.java
...n/java/com/syc/slm/slmbi/controller/TenantController.java
+8
-2
No files found.
src/main/java/com/syc/slm/slmbi/controller/TenantController.java
View file @
199f3dbc
...
...
@@ -9,6 +9,7 @@ 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.InstrumentPanelGroupService
;
import
com.syc.slm.slmbi.service.InstrumentPanelInitService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -32,18 +33,23 @@ public class TenantController extends BaseRestController{
@Autowired
private
InstrumentPanelGroupService
groupService
;
@Autowired
private
InstrumentPanelInitService
panelInitService
;
@PostMapping
@ApiOperation
(
"新增租户初始化分组"
)
@ApiImplicitParam
(
name
=
"appId"
,
value
=
"租户id"
,
required
=
true
,
dataTypeClass
=
String
.
class
)
public
R
<
String
>
initGroup
(
@PathVariable
String
appId
)
{
public
R
<
Object
>
initGroup
(
@PathVariable
String
appId
,
HttpServletRequest
request
)
{
return
call
(()
->
{
log
.
info
(
"盛云平台创建租户初始化分组"
);
log
.
info
(
"appId:"
+
appId
);
log
.
info
(
"盛云平台创建租户初始化分组"
);
CurrentUser
currentUser
=
getCurrentUser
(
request
);
InstrumentPanelGroupDTO
groupDTO
=
new
InstrumentPanelGroupDTO
();
groupDTO
.
setParentId
(
null
);
groupDTO
.
setName
(
"全部分组"
);
return
groupService
.
saveGroup
(
groupDTO
,
appId
);
groupService
.
saveGroup
(
groupDTO
,
appId
);
panelInitService
.
initOnePanel
(
appId
,
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