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
b678f47b
Commit
b678f47b
authored
May 06, 2021
by
梁光意
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改变量相关接口
parent
fd7bdaf0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
VariableServiceImpl.java
...a/com/syc/slm/slmbi/service/impl/VariableServiceImpl.java
+2
-3
application.yml
src/main/resources/application.yml
+2
-2
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/VariableServiceImpl.java
View file @
b678f47b
...
...
@@ -43,10 +43,10 @@ public class VariableServiceImpl implements VariableService {
Map
<
String
,
String
>
p
=
Maps
.
newHashMap
();
p
.
put
(
"appId"
,
appId
);
p
.
put
(
"token"
,
token
);
p
.
put
(
"from"
,
null
);
p
.
put
(
"from"
,
variableDTO
.
getSourceId
()
);
p
.
put
(
"varType"
,
null
);
p
.
put
(
"type"
,
null
);
p
.
put
(
"equipmentId"
,
null
);
p
.
put
(
"equipmentId"
,
variableDTO
.
getDeviceId
()
);
p
.
put
(
"customerId"
,
null
);
p
.
put
(
"name"
,
variableDTO
.
getVariableName
());
p
.
put
(
"desc"
,
variableDTO
.
getDescription
());
...
...
@@ -245,7 +245,6 @@ public class VariableServiceImpl implements VariableService {
}
}
//# todo 准备下发接口
Map
<
String
,
Object
>
commandMap
=
sendDTO
.
getCommandMap
();
if
(
CollectionUtils
.
isEmpty
(
commandMap
)){
...
...
src/main/resources/application.yml
View file @
b678f47b
...
...
@@ -3,7 +3,7 @@ spring:
name
:
slm-bi
profiles
:
active
:
-
local
-
dev
freemarker
:
cache
:
false
template-loader-path
:
classpath:/templates/ftl/
...
...
@@ -64,4 +64,4 @@ dc_client:
send
:
/{appId}/variables/monitor/device/commands
variableStatus
:
/{appId}/variables/{deviceId}/{variableCode}/status
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