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
af3efeb4
Commit
af3efeb4
authored
Oct 13, 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
8aa291c4
0b9d46d3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
KafkaAnalyseController.java
...t/module/jxiop/biz/controller/KafkaAnalyseController.java
+1
-0
FanConditionVariablesMessage.java
.../module/jxiop/biz/kafka/FanConditionVariablesMessage.java
+1
-1
KafkaConsumerService.java
...mos/boot/module/jxiop/biz/kafka/KafkaConsumerService.java
+2
-2
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/KafkaAnalyseController.java
View file @
af3efeb4
...
...
@@ -102,6 +102,7 @@ public class KafkaAnalyseController {
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"中心值 - 光伏 - 新"
,
notes
=
"工况划分 - 光伏 - 新"
)
public
ResponseModel
<
Object
>
getPvConditionVariablesZXZ
()
{
if
(
redisUtils
.
hasKey
(
kafkaTopicConsumerZXZPv
))
{
// redisUtils.del(kafkaTopicConsumerZXZPv);
return
ResponseHelper
.
buildResponse
(
"计算中"
);
}
fanConditionVariablesMessage
.
getPvConditionVariablesZXZ
();
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/kafka/FanConditionVariablesMessage.java
View file @
af3efeb4
...
...
@@ -85,6 +85,6 @@ public class FanConditionVariablesMessage {
@Async
public
void
getPvConditionVariablesZXZ
()
{
List
<
IdxBizPvPointProcessVariableClassification
>
fenxiList
=
idxBizPvPointProcessVariableClassificationMapper
.
selectList
(
new
QueryWrapper
<
IdxBizPvPointProcessVariableClassification
>().
isNotNull
(
"SEQUENCE_NBR"
).
eq
(
"TAG_CODE"
,
"分析变量"
));
fenxiList
.
forEach
(
item
->
kafkaProducerService
.
sendMessageAsync
(
kafkaTopicConsumerZXZ
Fan
,
JSON
.
toJSONString
(
item
)));
fenxiList
.
forEach
(
item
->
kafkaProducerService
.
sendMessageAsync
(
kafkaTopicConsumerZXZ
Pv
,
JSON
.
toJSONString
(
item
)));
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/kafka/KafkaConsumerService.java
View file @
af3efeb4
...
...
@@ -715,7 +715,7 @@ public class KafkaConsumerService {
if
(
kafkaMessage
.
isPresent
())
{
IdxBizPvPointProcessVariableClassification
pvPointProcessVariable
=
JSON
.
parseObject
(
kafkaMessage
.
get
().
toString
(),
IdxBizPvPointProcessVariableClassification
.
class
);
List
<
IdxBiz
FanPointVarCorrelation
>
gongkuangList
=
idxBizFanPointVarCorrelationService
.
list
(
new
QueryWrapper
<
IdxBizFan
PointVarCorrelation
>().
eq
(
"ANALYSIS_GATEWAY_ID"
,
pvPointProcessVariable
.
getGatewayId
()).
eq
(
"ANALYSIS_POINT_ID"
,
pvPointProcessVariable
.
getSequenceNbr
()).
orderByDesc
(
"CORRELATION_COEFFICIENT"
).
last
(
"limit 3"
));
List
<
IdxBiz
PvPointVarCorrelation
>
gongkuangList
=
idxBizPvPointVarCorrelationService
.
list
(
new
QueryWrapper
<
IdxBizPv
PointVarCorrelation
>().
eq
(
"ANALYSIS_GATEWAY_ID"
,
pvPointProcessVariable
.
getGatewayId
()).
eq
(
"ANALYSIS_POINT_ID"
,
pvPointProcessVariable
.
getSequenceNbr
()).
orderByDesc
(
"CORRELATION_COEFFICIENT"
).
last
(
"limit 3"
));
List
<
String
>
processPointIds
=
gongkuangList
.
stream
().
map
(
idxBizFanPointVarCorrelation
->
idxBizFanPointVarCorrelation
.
getProcessPointId
().
toString
()).
collect
(
Collectors
.
toList
());
List
<
IdxBizPvPointProcessVariableClassification
>
idxBizPvPointProcessVariableClassificationList
=
idxBizPvPointProcessVariableClassificationService
.
list
(
new
QueryWrapper
<
IdxBizPvPointProcessVariableClassification
>().
in
(
"SEQUENCE_NBR"
,
processPointIds
));
...
...
@@ -736,7 +736,7 @@ public class KafkaConsumerService {
}
});
buildZXZPvExecData
(
consumerRecords
,
gatewayPoints
,
zxzIds
,
"ZXZ
Fan
Consumer"
);
buildZXZPvExecData
(
consumerRecords
,
gatewayPoints
,
zxzIds
,
"ZXZ
Pv
Consumer"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
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 @
af3efeb4
This diff is collapsed.
Click to expand it.
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