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
5bb7fa12
Commit
5bb7fa12
authored
Sep 01, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理无法没有负载率问题
parent
7b958595
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+1
-1
StationCacheDataInit.java
.../boot/module/jxiop/biz/initdata/StationCacheDataInit.java
+13
-7
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+2
-1
No files found.
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 @
5bb7fa12
...
@@ -695,7 +695,7 @@ public class MonitorFanIdxController extends BaseController {
...
@@ -695,7 +695,7 @@ public class MonitorFanIdxController extends BaseController {
// if (null != stationType){
// if (null != stationType){
// gatewayId = stationBasic.getBoosterGatewayId();
// gatewayId = stationBasic.getBoosterGatewayId();
// }
// }
return
ResponseHelper
.
buildResponse
(
monitorFanIndicator
.
getStatisticsInfo
(
stationId
,
equipmentIndexName
));
return
ResponseHelper
.
buildResponse
(
monitorFanIndicator
.
getStatisticsInfo
(
equipmentIndexName
,
stationId
));
}
}
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/initdata/StationCacheDataInit.java
View file @
5bb7fa12
...
@@ -15,6 +15,7 @@ import com.yeejoin.amos.boot.module.jxiop.biz.service.impl.CommonServiceImpl;
...
@@ -15,6 +15,7 @@ import com.yeejoin.amos.boot.module.jxiop.biz.service.impl.CommonServiceImpl;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
...
@@ -26,14 +27,19 @@ import java.util.List;
...
@@ -26,14 +27,19 @@ import java.util.List;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Component
@Component
@RequiredArgsConstructor
public
class
StationCacheDataInit
implements
CommandLineRunner
{
public
class
StationCacheDataInit
implements
CommandLineRunner
{
private
final
StationBasicMapper
stationBasicMapper
;
@Autowired
private
final
RegionMapper
regionMapper
;
private
StationBasicMapper
stationBasicMapper
;
private
final
MapRegionMapper
mapRegionMapper
;
@Autowired
private
final
SjglZsjZsbtzMapper
sjglZsjZsbtzMapper
;
private
RegionMapper
regionMapper
;
private
final
CommonServiceImpl
commonServiceImpl
;
@Autowired
private
final
RedisTemplate
redisTemplate
;
private
MapRegionMapper
mapRegionMapper
;
@Autowired
private
SjglZsjZsbtzMapper
sjglZsjZsbtzMapper
;
@Autowired
private
CommonServiceImpl
commonServiceImpl
;
@Autowired
private
RedisTemplate
redisTemplate
;
Logger
logger
=
LoggerFactory
.
getLogger
(
StationCacheDataInit
.
class
);
Logger
logger
=
LoggerFactory
.
getLogger
(
StationCacheDataInit
.
class
);
public
void
run
(
String
...
args
)
throws
Exception
{
public
void
run
(
String
...
args
)
throws
Exception
{
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
5bb7fa12
...
@@ -341,7 +341,8 @@ public class CommonServiceImpl {
...
@@ -341,7 +341,8 @@ public class CommonServiceImpl {
}
}
public
StationCacheInfoDto
getStationCacheInfoDtoByStationId
(
String
stationId
)
{
public
StationCacheInfoDto
getStationCacheInfoDtoByStationId
(
String
stationId
)
{
return
getListStationCacheInfoDto
().
stream
().
filter
(
stationCacheInfoDto
->
stationCacheInfoDto
.
getStationId
().
equals
(
stationId
)).
collect
(
Collectors
.
toList
()).
get
(
0
);
StationCacheInfoDto
stationCacheInfoDto
=
this
.
getListStationCacheInfoDto
().
stream
().
filter
(
stationCacheInfoDto1
->
stationCacheInfoDto1
.
getStationId
().
equals
(
stationId
)).
collect
(
Collectors
.
toList
()).
get
(
0
);
return
stationCacheInfoDto
;
}
}
public
String
getFanDevicePrefix
(
String
stationid
)
{
public
String
getFanDevicePrefix
(
String
stationid
)
{
...
...
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