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
13f17930
Commit
13f17930
authored
May 07, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
678eb28c
c249e9f1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
CustomPermissionDTO.java
src/main/java/com/syc/slm/slmbi/dto/CustomPermissionDTO.java
+1
-1
InstrumentPanelPermissionImpl.java
...slm/slmbi/service/impl/InstrumentPanelPermissionImpl.java
+1
-1
VariableServiceImpl.java
...a/com/syc/slm/slmbi/service/impl/VariableServiceImpl.java
+3
-4
application.yml
src/main/resources/application.yml
+2
-2
No files found.
src/main/java/com/syc/slm/slmbi/dto/CustomPermissionDTO.java
View file @
13f17930
...
@@ -13,7 +13,7 @@ import lombok.Data;
...
@@ -13,7 +13,7 @@ import lombok.Data;
public
class
CustomPermissionDTO
{
public
class
CustomPermissionDTO
{
@ApiModelProperty
(
value
=
"自定义权限类型"
,
required
=
true
)
@ApiModelProperty
(
value
=
"自定义权限类型"
,
required
=
true
)
private
String
t
ype
;
private
String
bizT
ype
;
@ApiModelProperty
(
value
=
"代表岗位、部门或个体用户id"
,
required
=
true
)
@ApiModelProperty
(
value
=
"代表岗位、部门或个体用户id"
,
required
=
true
)
private
String
bizId
;
private
String
bizId
;
...
...
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelPermissionImpl.java
View file @
13f17930
...
@@ -162,7 +162,7 @@ public class InstrumentPanelPermissionImpl
...
@@ -162,7 +162,7 @@ public class InstrumentPanelPermissionImpl
p
.
setId
(
IdWorker
.
get32UUID
());
p
.
setId
(
IdWorker
.
get32UUID
());
p
.
setBizId
(
x
.
getBizId
());
p
.
setBizId
(
x
.
getBizId
());
p
.
setBizName
(
x
.
getBizName
());
p
.
setBizName
(
x
.
getBizName
());
p
.
setBizType
(
x
.
getType
());
p
.
setBizType
(
x
.
get
Biz
Type
());
p
.
setPanelId
(
panelId
);
p
.
setPanelId
(
panelId
);
p
.
setPublished
(
publishStatus
);
p
.
setPublished
(
publishStatus
);
baseMapper
.
insert
(
p
);
baseMapper
.
insert
(
p
);
...
...
src/main/java/com/syc/slm/slmbi/service/impl/VariableServiceImpl.java
View file @
13f17930
...
@@ -43,10 +43,10 @@ public class VariableServiceImpl implements VariableService {
...
@@ -43,10 +43,10 @@ public class VariableServiceImpl implements VariableService {
Map
<
String
,
String
>
p
=
Maps
.
newHashMap
();
Map
<
String
,
String
>
p
=
Maps
.
newHashMap
();
p
.
put
(
"appId"
,
appId
);
p
.
put
(
"appId"
,
appId
);
p
.
put
(
"token"
,
token
);
p
.
put
(
"token"
,
token
);
p
.
put
(
"from"
,
null
);
p
.
put
(
"from"
,
variableDTO
.
getSourceId
()
);
p
.
put
(
"varType"
,
null
);
p
.
put
(
"varType"
,
null
);
p
.
put
(
"type"
,
null
);
p
.
put
(
"type"
,
null
);
p
.
put
(
"equipmentId"
,
null
);
p
.
put
(
"equipmentId"
,
variableDTO
.
getDeviceId
()
);
p
.
put
(
"customerId"
,
null
);
p
.
put
(
"customerId"
,
null
);
p
.
put
(
"name"
,
variableDTO
.
getVariableName
());
p
.
put
(
"name"
,
variableDTO
.
getVariableName
());
p
.
put
(
"desc"
,
variableDTO
.
getDescription
());
p
.
put
(
"desc"
,
variableDTO
.
getDescription
());
...
@@ -207,7 +207,7 @@ public class VariableServiceImpl implements VariableService {
...
@@ -207,7 +207,7 @@ public class VariableServiceImpl implements VariableService {
}
else
if
(
AccessType
.
CUSTOM
.
value
.
equals
(
sendDTO
.
getAccessType
()))
{
}
else
if
(
AccessType
.
CUSTOM
.
value
.
equals
(
sendDTO
.
getAccessType
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
sendDTO
.
getPermissions
())){
if
(
CollectionUtils
.
isNotEmpty
(
sendDTO
.
getPermissions
())){
Map
<
String
,
List
<
CustomPermissionDTO
>>
maps
=
Map
<
String
,
List
<
CustomPermissionDTO
>>
maps
=
sendDTO
.
getPermissions
().
stream
().
collect
(
Collectors
.
groupingBy
(
CustomPermissionDTO:
:
getType
));
sendDTO
.
getPermissions
().
stream
().
collect
(
Collectors
.
groupingBy
(
CustomPermissionDTO:
:
get
Biz
Type
));
List
<
CustomPermissionDTO
>
departments
=
maps
.
get
(
"department"
);
List
<
CustomPermissionDTO
>
departments
=
maps
.
get
(
"department"
);
List
<
CustomPermissionDTO
>
positions
=
maps
.
get
(
"position"
);
List
<
CustomPermissionDTO
>
positions
=
maps
.
get
(
"position"
);
List
<
CustomPermissionDTO
>
users
=
maps
.
get
(
"user"
);
List
<
CustomPermissionDTO
>
users
=
maps
.
get
(
"user"
);
...
@@ -245,7 +245,6 @@ public class VariableServiceImpl implements VariableService {
...
@@ -245,7 +245,6 @@ public class VariableServiceImpl implements VariableService {
}
}
}
}
//# todo 准备下发接口
Map
<
String
,
Object
>
commandMap
=
sendDTO
.
getCommandMap
();
Map
<
String
,
Object
>
commandMap
=
sendDTO
.
getCommandMap
();
if
(
CollectionUtils
.
isEmpty
(
commandMap
)){
if
(
CollectionUtils
.
isEmpty
(
commandMap
)){
...
...
src/main/resources/application.yml
View file @
13f17930
...
@@ -3,7 +3,7 @@ spring:
...
@@ -3,7 +3,7 @@ spring:
name
:
slm-bi
name
:
slm-bi
profiles
:
profiles
:
active
:
active
:
-
local
-
dev
freemarker
:
freemarker
:
cache
:
false
cache
:
false
template-loader-path
:
classpath:/templates/ftl/
template-loader-path
:
classpath:/templates/ftl/
...
@@ -64,4 +64,4 @@ dc_client:
...
@@ -64,4 +64,4 @@ dc_client:
send
:
/{appId}/variables/monitor/device/commands
send
:
/{appId}/variables/monitor/device/commands
variableStatus
:
/{appId}/variables/{deviceId}/{variableCode}/status
variableStatus
:
/{appId}/variables/{deviceId}/{variableCode}/status
variableHistoryStatus
:
/{appId}/variables/{deviceId}/{variableCode}/history-status?startTime={startTime}&endTime={endTime}
variableHistoryStatus
:
/{appId}/variables/{deviceId}/{variableCode}/history-status?startTime={startTime}&endTime={endTime}
historyCurve
:
/{appId}/variables/history?deviceId={deviceId}&endTime={endTime}&startTime={startTime}&variableCode={variableCode}&variableId={variableId}&format={format}
historyCurve
:
/{appId}/variables/history
-curve
?deviceId={deviceId}&endTime={endTime}&startTime={startTime}&variableCode={variableCode}&variableId={variableId}&format={format}
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