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
5a18eab2
Commit
5a18eab2
authored
Jun 04, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
8da001c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
InstrumentPanelInitService.java
...com/syc/slm/slmbi/service/InstrumentPanelInitService.java
+1
-1
InstrumentPanelInitServiceImpl.java
...lm/slmbi/service/impl/InstrumentPanelInitServiceImpl.java
+2
-3
No files found.
src/main/java/com/syc/slm/slmbi/service/InstrumentPanelInitService.java
View file @
5a18eab2
...
...
@@ -14,5 +14,5 @@ import javax.servlet.http.HttpServletRequest;
**/
public
interface
InstrumentPanelInitService
extends
IService
<
InstrumentPanel
>
{
String
initOnePanel
(
String
appId
,
HttpServletRequest
request
);
String
initOnePanel
(
String
appId
,
String
token
,
HttpServletRequest
request
);
}
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelInitServiceImpl.java
View file @
5a18eab2
package
com
.
syc
.
slm
.
slmbi
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
import
com.baomidou.mybatisplus.core.toolkit.ObjectUtils
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.google.common.collect.Lists
;
...
...
@@ -65,10 +64,10 @@ public class InstrumentPanelInitServiceImpl extends ServiceImpl<InstrumentPanelM
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
initOnePanel
(
String
appId
,
HttpServletRequest
request
)
{
public
String
initOnePanel
(
String
appId
,
String
token
,
HttpServletRequest
request
)
{
CurrentUser
currentUser
=
new
CurrentUser
();
request
.
setAttribute
(
IdWorker
.
get32UUID
()
,
SlmConstants
.
gson
.
toJson
(
currentUser
));
request
.
setAttribute
(
token
,
SlmConstants
.
gson
.
toJson
(
currentUser
));
LambdaQueryWrapper
<
InstrumentPanelGroup
>
groupWhere
=
new
LambdaQueryWrapper
<>();
groupWhere
.
eq
(
InstrumentPanelGroup:
:
getName
,
initGroupName
);
groupWhere
.
eq
(
BaseEntity:
:
getRecordStatus
,
SlmConstants
.
DATA_VALID
);
...
...
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