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
63f3d46e
Commit
63f3d46e
authored
Mar 31, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Plain Diff
整改接口
parents
c534da6b
a0c723fd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
DeptService.java
src/main/java/com/syc/slm/slmbi/service/DeptService.java
+7
-1
InfluxService.java
src/main/java/com/syc/slm/slmbi/service/InfluxService.java
+2
-1
VariableService.java
src/main/java/com/syc/slm/slmbi/service/VariableService.java
+10
-0
No files found.
src/main/java/com/syc/slm/slmbi/service/DeptService.java
View file @
63f3d46e
...
@@ -3,7 +3,13 @@ package com.syc.slm.slmbi.service;
...
@@ -3,7 +3,13 @@ package com.syc.slm.slmbi.service;
import
com.syc.slm.slmbi.vo.DeptVo
;
import
com.syc.slm.slmbi.vo.DeptVo
;
import
java.util.List
;
import
java.util.List
;
/**
* slm-bi
* 变量
*
* @author : lin
* @date : 2021-03-25 16:17
**/
public
interface
DeptService
{
public
interface
DeptService
{
/**
/**
* 获取部门列表
* 获取部门列表
...
...
src/main/java/com/syc/slm/slmbi/service/InfluxService.java
View file @
63f3d46e
...
@@ -32,6 +32,7 @@ import java.util.concurrent.TimeUnit;
...
@@ -32,6 +32,7 @@ import java.util.concurrent.TimeUnit;
@Component
@Component
public
class
InfluxService
{
public
class
InfluxService
{
private
static
final
String
PORT
=
"8635"
;
@Autowired
@Autowired
private
InfluxdbConfig
influxdbConfig
;
private
InfluxdbConfig
influxdbConfig
;
...
@@ -40,7 +41,7 @@ public class InfluxService {
...
@@ -40,7 +41,7 @@ public class InfluxService {
@PostConstruct
@PostConstruct
private
void
init
()
{
private
void
init
()
{
if
(
"8635"
.
equals
(
influxdbConfig
.
port
))
{
if
(
PORT
.
equals
(
influxdbConfig
.
port
))
{
// 华为云: https + getBuilder
// 华为云: https + getBuilder
influxdb
=
InfluxDBFactory
.
connect
(
String
.
format
(
"https://%s:%s"
,
influxdbConfig
.
host
,
influxdbConfig
.
port
),
influxdb
=
InfluxDBFactory
.
connect
(
String
.
format
(
"https://%s:%s"
,
influxdbConfig
.
host
,
influxdbConfig
.
port
),
influxdbConfig
.
username
,
influxdbConfig
.
username
,
...
...
src/main/java/com/syc/slm/slmbi/service/VariableService.java
View file @
63f3d46e
...
@@ -36,7 +36,17 @@ public interface VariableService {
...
@@ -36,7 +36,17 @@ public interface VariableService {
*/
*/
List
<
VariableDeviceVo
>
getVariableDeviceList
();
List
<
VariableDeviceVo
>
getVariableDeviceList
();
/**
* 获取实时数据
* @param variableDTO
* @return
*/
Map
<
String
,
List
<
Map
<
String
,
RealTimeVariableVo
>>>
getVariableRealTimeDataList
(
RealTimeVariableDTO
variableDTO
);
Map
<
String
,
List
<
Map
<
String
,
RealTimeVariableVo
>>>
getVariableRealTimeDataList
(
RealTimeVariableDTO
variableDTO
);
/**
* 获取历史数据
* @param variableDTO
* @return
*/
Map
<
String
,
List
<
Map
<
String
,
HistoryVariableVo
>>>
getVariableHistoryDataList
(
HistoryVariableDTO
variableDTO
);
Map
<
String
,
List
<
Map
<
String
,
HistoryVariableVo
>>>
getVariableHistoryDataList
(
HistoryVariableDTO
variableDTO
);
}
}
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