Commit b678f47b authored by 梁光意's avatar 梁光意

修改变量相关接口

parent fd7bdaf0
...@@ -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());
...@@ -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)){
......
...@@ -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}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment