Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
795c1d1f
Commit
795c1d1f
authored
Oct 16, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
b7118dce
673b0758
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
80 deletions
+84
-80
IdxBizFanWarningRecordMapper.xml
...resources/mapper/cluster/IdxBizFanWarningRecordMapper.xml
+1
-1
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+7
-1
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+76
-78
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/cluster/IdxBizFanWarningRecordMapper.xml
View file @
795c1d1f
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
AND a.GATEWAY_ID = #{stationId}
AND a.GATEWAY_ID = #{stationId}
</if>
</if>
</where>
</where>
order by
REC_DATE
DESC
order by
recDate
DESC
limit #{current}, #{size}
limit #{current}, #{size}
</select>
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
795c1d1f
...
@@ -440,7 +440,13 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -440,7 +440,13 @@ public class MonitorFanIdxController extends BaseController {
return
CommonResponseUtil
.
success
();
return
CommonResponseUtil
.
success
();
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"统一获取集电线与风机状态"
)
@GetMapping
(
"/fanLineList"
)
public
void
getFanLineList
()
{
getStatusJDX
();
getListByFJ
();
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"获取升压站信息 通过排序等"
)
@ApiOperation
(
value
=
"获取升压站信息 通过排序等"
)
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
795c1d1f
...
@@ -226,7 +226,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -226,7 +226,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
});
});
Collator
instance
=
Collator
.
getInstance
(
Locale
.
CHINA
);
Collator
instance
=
Collator
.
getInstance
(
Locale
.
CHINA
);
if
(
needDisplayDisplayNameSystemType
.
contains
(
systemType
)
&&
needDisplayDisplayNameFrontModule
.
contains
(
frontModule
))
{
if
(
needDisplayDisplayNameSystemType
.
contains
(
systemType
)
&&
needDisplayDisplayNameFrontModule
.
contains
(
frontModule
))
{
result
.
sort
(
Comparator
.
comparing
(
ESEquipments:
:
getTraceId
,
Comparator
.
comparingInt
(
Integer:
:
parseInt
)));
result
.
sort
(
Comparator
.
comparing
(
ESEquipments:
:
getTraceId
,
Comparator
.
comparingInt
(
Integer:
:
parseInt
)));
}
else
{
}
else
{
Collections
.
sort
(
result
,
(
e1
,
e2
)
->
{
Collections
.
sort
(
result
,
(
e1
,
e2
)
->
{
return
instance
.
compare
(
e1
.
getEquipmentIndexName
(),
e2
.
getEquipmentIndexName
());
return
instance
.
compare
(
e1
.
getEquipmentIndexName
(),
e2
.
getEquipmentIndexName
());
...
@@ -855,12 +855,12 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -855,12 +855,12 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
data
=
listDatum
.
getDisplayName
();
data
=
listDatum
.
getDisplayName
();
}
}
}
}
statusMap
.
put
(
"addres"
,
listDatum
.
getAddress
());
statusMap
.
put
(
"addres"
,
listDatum
.
getAddress
());
statusMap
.
put
(
"data"
,
data
);
statusMap
.
put
(
"data"
,
data
);
statusMap
.
put
(
"state"
,
listDatum
.
getValue
().
equals
(
"false"
)
?
0
:
1
);
statusMap
.
put
(
"state"
,
listDatum
.
getValue
().
equals
(
"false"
)
?
0
:
1
);
statusMap
.
put
(
"status"
,
listDatum
.
getValue
().
equals
(
"false"
)
?
0
:
1
);
statusMap
.
put
(
"status"
,
listDatum
.
getValue
().
equals
(
"false"
)
?
0
:
1
);
statusMap
.
put
(
"title"
,
listDatum
.
getValue
().
equals
(
"false"
)
?
"断"
:
"通"
);
statusMap
.
put
(
"title"
,
listDatum
.
getValue
().
equals
(
"false"
)
?
"断"
:
"通"
);
if
(
systemType
.
equals
(
"网络"
))
{
if
(
systemType
.
equals
(
"网络"
))
{
statusMap
.
put
(
"state"
,
listDatum
.
getValue
().
equals
(
"false"
)
?
1
:
0
);
statusMap
.
put
(
"state"
,
listDatum
.
getValue
().
equals
(
"false"
)
?
1
:
0
);
}
}
statusMaps
.
add
(
statusMap
);
statusMaps
.
add
(
statusMap
);
...
@@ -897,7 +897,6 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -897,7 +897,6 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
});
});
return
statusMaps
;
return
statusMaps
;
}
}
...
@@ -966,11 +965,12 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -966,11 +965,12 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
HashMap
<
String
,
String
>
fanstatutsHashMap
=
new
HashMap
<>();
HashMap
<
String
,
String
>
fanstatutsHashMap
=
new
HashMap
<>();
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"瞬时风速"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"瞬时风速"
,
"有功功率"
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
List
<
ESEquipments
>
listData
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
List
<
ESEquipments
>
listDataAll
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
"有功功率"
));
Map
<
String
,
Object
>
listDataWindSpeed
=
listDataAll
.
stream
().
filter
(
esEquipments
->
esEquipments
.
getEquipmentIndexName
().
equals
(
"瞬时风速"
)).
collect
(
Collectors
.
toMap
(
ESEquipments:
:
getEquipmentNumber
,
ESEquipments:
:
getValueF
));
List
<
ESEquipments
>
listData1
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
// queryCondtion.put(CommonConstans.QueryStringEquipmentIndexName, Arrays.asList("有功功率"));
Map
<
String
,
Object
>
listDataActivePower
=
listDataAll
.
stream
().
filter
(
esEquipments
->
esEquipments
.
getEquipmentIndexName
().
equals
(
"有功功率"
)).
collect
(
Collectors
.
toMap
(
ESEquipments:
:
getEquipmentNumber
,
ESEquipments:
:
getValueF
));
TpriDmpDatabook
tpriDmpDatabook
=
tpriDmpDatabookServiceImpl
.
getTpriDmpDatabookByDataName
(
"风机"
);
TpriDmpDatabook
tpriDmpDatabook
=
tpriDmpDatabookServiceImpl
.
getTpriDmpDatabookByDataName
(
"风机"
);
List
<
Map
<
String
,
Object
>>
dataMaps
=
sjglZsjZsbtzServiceImpl
.
sjglZsjZsbtzMapper
.
getStationInfoMapByStationWerks
(
werks
,
tpriDmpDatabook
.
getDataid
().
toString
());
List
<
Map
<
String
,
Object
>>
dataMaps
=
sjglZsjZsbtzServiceImpl
.
sjglZsjZsbtzMapper
.
getStationInfoMapByStationWerks
(
werks
,
tpriDmpDatabook
.
getDataid
().
toString
());
//获取风机列表
//获取风机列表
...
@@ -983,30 +983,28 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -983,30 +983,28 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
for
(
Map
<
String
,
Object
>
dataMap
:
dataMaps
)
{
for
(
Map
<
String
,
Object
>
dataMap
:
dataMaps
)
{
List
<
String
>
numList
=
Arrays
.
asList
(
dataMap
.
get
(
"equipNum"
).
toString
().
split
(
","
));
List
<
String
>
numList
=
Arrays
.
asList
(
dataMap
.
get
(
"equipNum"
).
toString
().
split
(
","
));
List
<
Map
<
String
,
Object
>>
statusMaps
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
statusMaps
=
new
ArrayList
<>();
for
(
ESEquipments
listDatum
:
listData
)
{
// for (ESEquipments listDatum : listData) {
if
(
null
==
listDatum
.
getValueF
())
{
// if (null == listDatum.getValueF()) {
listDatum
.
setValueF
(
0
F
);
// listDatum.setValueF(0F);
}
// }
for
(
ESEquipments
indicatorsDto
:
listData1
)
{
// for (ESEquipments indicatorsDto : listData1) {
if
(
listDatum
.
getEquipmentNumber
().
equals
(
indicatorsDto
.
getEquipmentNumber
()))
{
// if (listDatum.getEquipmentNumber().equals(indicatorsDto.getEquipmentNumber())) {
listDatum
.
setValueLabel
(
String
.
valueOf
(
indicatorsDto
.
getValueF
()
==
null
?
0
:
indicatorsDto
.
getValueF
()));
// listDatum.setValueLabel(String.valueOf(indicatorsDto.getValueF() == null ? 0 : indicatorsDto.getValueF()));
}
// }
}
// }
for
(
String
num
:
numList
)
{
for
(
String
num
:
numList
)
{
if
(
Integer
.
parseInt
(
num
)
==
Integer
.
parseInt
(
listDatum
.
getEquipmentNumber
()))
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
String
equipmentNumber
=
String
.
format
(
"%02d"
,
Integer
.
parseInt
(
num
));
map
.
put
(
"title"
,
prefix
+
listDatum
.
getEquipmentNumber
());
map
.
put
(
"title"
,
prefix
+
equipmentNumber
);
//用于参数传递
//用于参数传递
map
.
put
(
"title1"
,
listDatum
.
getEquipmentNumber
());
map
.
put
(
"title1"
,
equipmentNumber
);
map
.
put
(
"windSpeed"
,
listDatum
.
getValueF
());
map
.
put
(
"windSpeed"
,
listDataWindSpeed
.
get
(
equipmentNumber
));
map
.
put
(
"power"
,
listDatum
.
getValueLabel
());
map
.
put
(
"power"
,
listDataActivePower
.
get
(
equipmentNumber
));
//获取风机状态如果获取到的状态为空-则默认为正常运行状态
//获取风机状态如果获取到的状态为空-则默认为正常运行状态
String
fantStatus
=
ObjectUtils
.
isEmpty
(
fanstatutsHashMap
.
get
(
listDatum
.
getEquipmentNumber
()))
?
"通讯中断"
:
fanstatutsHashMap
.
get
(
listDatum
.
getEquipmentNumber
());
String
fantStatus
=
ObjectUtils
.
isEmpty
(
fanstatutsHashMap
.
get
(
equipmentNumber
))
?
"通讯中断"
:
fanstatutsHashMap
.
get
(
equipmentNumber
);
map
.
put
(
"url"
,
fanStatusImagePathPrefix
+
File
.
separator
+
"风机-"
+
fantStatus
+
".gif"
);
map
.
put
(
"url"
,
fanStatusImagePathPrefix
+
File
.
separator
+
"风机-"
+
fantStatus
+
".gif"
);
statusMaps
.
add
(
map
);
statusMaps
.
add
(
map
);
}
}
}
}
IPage
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
IPage
<
Map
<
String
,
Object
>>
result
=
new
Page
<>();
result
.
setRecords
(
statusMaps
);
result
.
setRecords
(
statusMaps
);
...
@@ -1330,7 +1328,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -1330,7 +1328,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
stringStringHashMap
.
put
(
"value1"
,
"0.0"
);
stringStringHashMap
.
put
(
"value1"
,
"0.0"
);
stringStringHashMap
.
put
(
"value2"
,
"0.0"
);
stringStringHashMap
.
put
(
"value2"
,
"0.0"
);
stringStringHashMap
.
put
(
"value3"
,
"0.0"
);
stringStringHashMap
.
put
(
"value3"
,
"0.0"
);
if
(!
map
.
get
(
"boosterName"
).
toString
().
equals
(
"35kVⅠ母PT"
))
{
if
(!
map
.
get
(
"boosterName"
).
toString
().
equals
(
"35kVⅠ母PT"
))
{
listData
.
forEach
(
item
->
{
listData
.
forEach
(
item
->
{
if
(
item
.
getDisplayName
().
equals
(
"Ia"
))
{
if
(
item
.
getDisplayName
().
equals
(
"Ia"
))
{
...
@@ -1343,7 +1341,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -1343,7 +1341,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
stringStringHashMap
.
put
(
"value3"
,
item
.
getValueF
()
==
null
?
"0"
:
keepTwoDecimalPlaces
(
item
.
getValueF
().
toString
()));
stringStringHashMap
.
put
(
"value3"
,
item
.
getValueF
()
==
null
?
"0"
:
keepTwoDecimalPlaces
(
item
.
getValueF
().
toString
()));
}
}
});
});
}
else
{
}
else
{
stringStringHashMap
.
put
(
"value1"
,
""
);
stringStringHashMap
.
put
(
"value1"
,
""
);
stringStringHashMap
.
put
(
"value2"
,
""
);
stringStringHashMap
.
put
(
"value2"
,
""
);
stringStringHashMap
.
put
(
"value3"
,
""
);
stringStringHashMap
.
put
(
"value3"
,
""
);
...
@@ -2147,16 +2145,16 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -2147,16 +2145,16 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
public
ResultsData
getDeaviAtionRate
(
String
gatewayId
,
String
zz
,
String
nbq
,
String
hlx
)
{
public
ResultsData
getDeaviAtionRate
(
String
gatewayId
,
String
zz
,
String
nbq
,
String
hlx
)
{
ArrayList
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
ArrayList
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
Map
<
String
,
List
<
String
>>
queryConditon
=
new
HashMap
<>();
Map
<
String
,
List
<
String
>>
queryConditon
=
new
HashMap
<>();
queryConditon
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
queryConditon
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
Map
<
String
,
String
>
likeMap
=
new
HashMap
<>();
Map
<
String
,
String
>
likeMap
=
new
HashMap
<>();
likeMap
.
put
(
CommonConstans
.
QueryStringEquipmentIndexNameNotKeyword
,
"路电流"
);
likeMap
.
put
(
CommonConstans
.
QueryStringEquipmentIndexNameNotKeyword
,
"路电流"
);
//hlx=hlx.replace("#0", "#");
//hlx=hlx.replace("#0", "#");
//likeMap.put(CommonConstans.QueryStringEquipmentSpecificNameNotKeyword, hlx);
//likeMap.put(CommonConstans.QueryStringEquipmentSpecificNameNotKeyword, hlx);
String
nhlx
=
zz
+
"/"
+
nbq
+
"/"
+
hlx
.
replace
(
"#0"
,
"#"
);
String
nhlx
=
zz
+
"/"
+
nbq
+
"/"
+
hlx
.
replace
(
"#0"
,
"#"
);
List
<
ESEquipments
>
list
=
commonServiceImpl
.
getListDataByCondtionsAndLike
(
queryConditon
,
null
,
List
<
ESEquipments
>
list
=
commonServiceImpl
.
getListDataByCondtionsAndLike
(
queryConditon
,
null
,
ESEquipments
.
class
,
likeMap
);
ESEquipments
.
class
,
likeMap
);
// Map<String, List<String>> queryConditon1 = new HashMap<>();
// Map<String, List<String>> queryConditon1 = new HashMap<>();
// queryConditon1.put(CommonConstans.QueryStringGateWayId, Arrays.asList(gatewayId));
// queryConditon1.put(CommonConstans.QueryStringGateWayId, Arrays.asList(gatewayId));
...
@@ -2165,40 +2163,40 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -2165,40 +2163,40 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
// List<ESEquipments> list1 = commonServiceImpl.getListDataByCondtionsAndLike(queryConditon, null,
// List<ESEquipments> list1 = commonServiceImpl.getListDataByCondtionsAndLike(queryConditon, null,
// ESEquipments.class, likeMap1);
// ESEquipments.class, likeMap1);
if
(!
ValidationUtil
.
isEmpty
(
list
))
{
if
(!
ValidationUtil
.
isEmpty
(
list
))
{
list
=
list
.
stream
().
filter
(
i
->
i
.
getEquipmentSpecificName
().
contains
(
nhlx
)).
collect
(
Collectors
.
toList
());
list
=
list
.
stream
().
filter
(
i
->
i
.
getEquipmentSpecificName
().
contains
(
nhlx
)).
collect
(
Collectors
.
toList
());
Double
avageValue
=
0.0
;
Double
avageValue
=
0.0
;
avageValue
=
list
.
stream
().
filter
(
e
->
!
ObjectUtils
.
isEmpty
(
e
.
getValueF
()))
avageValue
=
list
.
stream
().
filter
(
e
->
!
ObjectUtils
.
isEmpty
(
e
.
getValueF
()))
.
mapToDouble
(
l
->
Double
.
parseDouble
(
l
.
getValueF
().
toString
())).
average
().
getAsDouble
();
.
mapToDouble
(
l
->
Double
.
parseDouble
(
l
.
getValueF
().
toString
())).
average
().
getAsDouble
();
avageValue
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
avageValue
));
avageValue
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
avageValue
));
for
(
ESEquipments
s
:
list
)
{
for
(
ESEquipments
s
:
list
)
{
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"hlx"
,
s
.
getEquipmentIndexName
());
resultMap
.
put
(
"hlx"
,
s
.
getEquipmentIndexName
());
double
now
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
s
.
getValueF
()));
double
now
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
s
.
getValueF
()));
resultMap
.
put
(
"now"
,
now
);
resultMap
.
put
(
"now"
,
now
);
resultMap
.
put
(
"avg"
,
avageValue
);
resultMap
.
put
(
"avg"
,
avageValue
);
double
c
=
now
-
avageValue
;
double
c
=
now
-
avageValue
;
if
(
c
<
0
)
{
if
(
c
<
0
)
{
c
=
-
c
;
c
=
-
c
;
}
}
double
lsv
=
c
/
avageValue
;
double
lsv
=
c
/
avageValue
;
lsv
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
lsv
));
lsv
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
lsv
));
resultMap
.
put
(
"lsv"
,
lsv
);
resultMap
.
put
(
"lsv"
,
lsv
);
resultList
.
add
(
resultMap
);
resultList
.
add
(
resultMap
);
}
}
}
}
// 构建平台数据
// 构建平台数据
DataGridMock
DataGridMock
=
new
DataGridMock
(
0
,
resultList
.
size
(),
false
,
0
,
resultList
);
DataGridMock
DataGridMock
=
new
DataGridMock
(
0
,
resultList
.
size
(),
false
,
0
,
resultList
);
ColModel
colModelEventMovement
=
new
ColModel
(
"hlx"
,
"hlx"
,
"汇流箱"
,
"汇流箱"
,
"dataGrid"
,
"hlx"
);
ColModel
colModelEventMovement
=
new
ColModel
(
"hlx"
,
"hlx"
,
"汇流箱"
,
"汇流箱"
,
"dataGrid"
,
"hlx"
);
ColModel
colModelStationName
=
new
ColModel
(
"now"
,
"now"
,
"当前值"
,
"当前值"
,
"dataGrid"
,
"now"
);
ColModel
colModelStationName
=
new
ColModel
(
"now"
,
"now"
,
"当前值"
,
"当前值"
,
"dataGrid"
,
"now"
);
ColModel
colModelEventDesc
=
new
ColModel
(
"avg"
,
"avg"
,
"平均值"
,
"平均值"
,
"dataGrid"
,
"avg"
);
ColModel
colModelEventDesc
=
new
ColModel
(
"avg"
,
"avg"
,
"平均值"
,
"平均值"
,
"dataGrid"
,
"avg"
);
ColModel
colModelAlarmGroupName
=
new
ColModel
(
"pcv"
,
"pcv"
,
"偏差率"
,
"偏差率"
,
"dataGrid"
,
"pcv"
);
ColModel
colModelAlarmGroupName
=
new
ColModel
(
"pcv"
,
"pcv"
,
"偏差率"
,
"偏差率"
,
"dataGrid"
,
"pcv"
);
List
<
ColModel
>
listColModel
=
Arrays
.
asList
(
colModelEventMovement
,
colModelStationName
,
colModelEventDesc
,
List
<
ColModel
>
listColModel
=
Arrays
.
asList
(
colModelEventMovement
,
colModelStationName
,
colModelEventDesc
,
colModelAlarmGroupName
);
colModelAlarmGroupName
);
ResultsData
resultsData
=
new
ResultsData
(
DataGridMock
,
listColModel
);
ResultsData
resultsData
=
new
ResultsData
(
DataGridMock
,
listColModel
);
return
resultsData
;
return
resultsData
;
}
}
// @Scheduled(cron = "0 */10 * * * ?")
// @Scheduled(cron = "0 */10 * * * ?")
// //@Scheduled(cron = "0/1 * * * * ?")
// //@Scheduled(cron = "0/1 * * * * ?")
...
...
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