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
56ae6826
Commit
56ae6826
authored
Apr 24, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复健康指数生产问题
parent
1633c285
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
7 deletions
+20
-7
IdxBizFanHealthIndexController.java
.../jxiop/biz/controller/IdxBizFanHealthIndexController.java
+1
-1
IdxBizPvPointVarCentralValue.java
...module/jxiop/biz/entity/IdxBizPvPointVarCentralValue.java
+3
-3
SyncESDataToTdengineMqttListener.java
.../jxiop/biz/listener/SyncESDataToTdengineMqttListener.java
+14
-0
CommonServiceImpl.java
...boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
+1
-2
FanHealthIndexDayMapper.java
...t/module/jxiop/biz/tdMapper2/FanHealthIndexDayMapper.java
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizFanHealthIndexController.java
View file @
56ae6826
...
...
@@ -403,7 +403,7 @@ public class IdxBizFanHealthIndexController extends BaseController {
item
.
setHealthIndex
(
roundedNumber
);
});
int
total
=
fanHealthIndexDayMapper
.
selectDataTotal
(
healthLevel
,
area
,
equipmentName
,
subSystem
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
);
int
total
=
fanHealthIndexDayMapper
.
selectDataTotal
(
healthLevel
,
area
,
equipmentName
,
subSystem
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
,
orgCode
);
page
.
setRecords
(
fanHealthIndexDays
);
page
.
setTotal
(
total
);
// page.setTotal(Long.valueOf(fanHealthIndexDays.size()));
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/entity/IdxBizPvPointVarCentralValue.java
View file @
56ae6826
...
...
@@ -165,19 +165,19 @@ public class IdxBizPvPointVarCentralValue{
/**
* 工况变量3ID
*/
@TableField
(
"PROCESS_POINT3_
ID_
NAME"
)
@TableField
(
"PROCESS_POINT3_NAME"
)
private
String
processPoint3IdName
;
/**
* 工况变量2ID
*/
@TableField
(
"PROCESS_POINT2_
ID_
NAME"
)
@TableField
(
"PROCESS_POINT2_NAME"
)
private
String
processPoint2IdName
;
/**
* 工况变量1ID
*/
@TableField
(
"PROCESS_POINT1_
ID_
NAME"
)
@TableField
(
"PROCESS_POINT1_NAME"
)
private
String
processPoint1IdName
;
/**
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/listener/SyncESDataToTdengineMqttListener.java
View file @
56ae6826
...
...
@@ -40,5 +40,19 @@ public class SyncESDataToTdengineMqttListener extends EmqxListener {
}).
start
();
}
if
(
"pvsuccess"
.
equals
(
flag
)){
//开始异步计算光伏的健康指数算法
new
Thread
(()->{
//调用光伏的健康指数算法
commonServiceImpl
.
healthWarningMinuteByPv
();
}).
start
();
}
if
(
"fansuccess"
.
equals
(
flag
)){
//开始异步计算光伏的健康指数算法
new
Thread
(()->{
//调用光伏的健康指数算法
commonServiceImpl
.
healthWarningMinuteByFan
();
}).
start
();
}
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/CommonServiceImpl.java
View file @
56ae6826
...
...
@@ -2694,10 +2694,9 @@ public class CommonServiceImpl {
pvHealthIndex
.
setAnomaly
(
idxBizPvHealthIndex
.
getANOMALY
());
pvHealthIndex
.
setRecDate
(
DateUtil
.
now
());
pvHealthIndex
.
setArea
(
idxBizPvHealthIndex
.
getArae
());
pvHealthIndex
.
setAnalysisTime
(
DateUtil
.
now
()
);
pvHealthIndex
.
setAnalysisTime
(
format
);
pvHealthIndex
.
setHealthLevel
(
idxBizPvHealthIndex
.
getHealthLevel
());
pvHealthIndex
.
setKks
(
idxBizPvHealthIndex
.
getKks
());
pvHealthIndex
.
setRecDate
(
format
);
pvHealthIndex
.
setOrgCode
(
obj
.
getOrgCode
());
fanHealthIndices1
.
add
(
pvHealthIndex
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdMapper2/FanHealthIndexDayMapper.java
View file @
56ae6826
...
...
@@ -46,7 +46,7 @@ public interface FanHealthIndexDayMapper extends BaseMapper<FanHealthIndexDay> {
"<if test='equipmentName!= null'>AND equipment_name = #{equipmentName} </if>"
+
"<if test='orgCode!= null'>AND org_code like '%${orgCode}%' </if>"
+
"</script>"
)
int
selectDataTotal
(
@Param
(
"healthLevel"
)
String
healthLevel
,
@Param
(
"area"
)
String
area
,
@Param
(
"equipmentName"
)
String
equipmentName
,
@Param
(
"subSystem"
)
String
subSystem
,
@Param
(
"analysisType"
)
String
analysisType
,
@Param
(
"analysisObjType"
)
String
analysisObjType
,
@Param
(
"station"
)
String
station
,
@Param
(
"pointName"
)
String
pointName
,
@Param
(
"indexAddress"
)
String
indexAddress
,
@Param
(
"startTimeTop"
)
String
startTimeTop
,
@Param
(
"endTimeTop"
)
String
endTimeTop
);
int
selectDataTotal
(
@Param
(
"healthLevel"
)
String
healthLevel
,
@Param
(
"area"
)
String
area
,
@Param
(
"equipmentName"
)
String
equipmentName
,
@Param
(
"subSystem"
)
String
subSystem
,
@Param
(
"analysisType"
)
String
analysisType
,
@Param
(
"analysisObjType"
)
String
analysisObjType
,
@Param
(
"station"
)
String
station
,
@Param
(
"pointName"
)
String
pointName
,
@Param
(
"indexAddress"
)
String
indexAddress
,
@Param
(
"startTimeTop"
)
String
startTimeTop
,
@Param
(
"endTimeTop"
)
String
endTimeTop
,
@Param
(
"orgCode"
)
String
orgCode
);
@Select
(
"<script>"
+
...
...
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