Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
6c4cd2a6
Commit
6c4cd2a6
authored
Aug 13, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://36.40.66.175:5000/moa/jxdj_zx/amos-boot-zx-biz
into developer
parents
25c1b88a
37a2f872
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
KafkaAnalyseController.java
...t/module/jxiop/biz/controller/KafkaAnalyseController.java
+4
-1
KafkaConsumerService.java
...mos/boot/module/jxiop/biz/kafka/KafkaConsumerService.java
+5
-4
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 @
6c4cd2a6
...
@@ -20,6 +20,7 @@ import io.swagger.annotations.Api;
...
@@ -20,6 +20,7 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
...
@@ -53,6 +54,8 @@ public class KafkaAnalyseController {
...
@@ -53,6 +54,8 @@ public class KafkaAnalyseController {
IndicatorDataMapper
indicatorDataMapper
;
IndicatorDataMapper
indicatorDataMapper
;
@Autowired
@Autowired
IdxBizFanHealthIndexMapper
idxBizFanHealthIndexMapper
;
IdxBizFanHealthIndexMapper
idxBizFanHealthIndexMapper
;
@Value
(
"${gkblhf.select.day:-1}"
)
private
String
gkblhfSelectDay
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取执行结果"
,
notes
=
"获取执行结果"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取执行结果"
,
notes
=
"获取执行结果"
)
...
@@ -174,7 +177,7 @@ public class KafkaAnalyseController {
...
@@ -174,7 +177,7 @@ public class KafkaAnalyseController {
List
<
String
>
addressInfo
=
idxBizFanHealthIndexMapper
.
getAddressInfo
();
List
<
String
>
addressInfo
=
idxBizFanHealthIndexMapper
.
getAddressInfo
();
String
join
=
String
.
join
(
","
,
addressInfo
);
String
join
=
String
.
join
(
","
,
addressInfo
);
String
startTime
=
DateUtils
.
convertDateToString
(
DateUtil
.
offsetDay
(
new
Date
(),
-
1
),
String
startTime
=
DateUtils
.
convertDateToString
(
DateUtil
.
offsetDay
(
new
Date
(),
Integer
.
parseInt
(
gkblhfSelectDay
)
),
DateUtils
.
DATE_TIME_PATTERN
);
DateUtils
.
DATE_TIME_PATTERN
);
String
endTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
getCurrentDayEndTime
(
new
Date
()),
String
endTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
getCurrentDayEndTime
(
new
Date
()),
DateUtils
.
DATE_TIME_PATTERN
);
DateUtils
.
DATE_TIME_PATTERN
);
...
...
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 @
6c4cd2a6
...
@@ -75,7 +75,8 @@ public class KafkaConsumerService {
...
@@ -75,7 +75,8 @@ public class KafkaConsumerService {
@Autowired
@Autowired
IdxBizPvPointVarCentralValueMapper
idxBizPvPointVarCentralValueMapper
;
IdxBizPvPointVarCentralValueMapper
idxBizPvPointVarCentralValueMapper
;
@Value
(
"${gkblhf.select.day:-1}"
)
private
String
gkblhfSelectDay
;
// 相关性
// 相关性
@Value
(
"${base.url.XGX:http://10.20.1.29:8052/intelligent-analysis/correlation}"
)
@Value
(
"${base.url.XGX:http://10.20.1.29:8052/intelligent-analysis/correlation}"
)
private
String
baseUrlXGX
;
private
String
baseUrlXGX
;
...
@@ -479,7 +480,7 @@ public class KafkaConsumerService {
...
@@ -479,7 +480,7 @@ public class KafkaConsumerService {
private
void
buildZXZExecData
(
List
<
ConsumerRecord
<
String
,
String
>>
consumerRecords
,
private
void
buildZXZExecData
(
List
<
ConsumerRecord
<
String
,
String
>>
consumerRecords
,
Map
<
String
,
Set
<
String
>>
gatewayPoints
,
Map
<
String
,
Set
<
String
>>
gatewayPoints
,
Map
<
String
,
List
<
IdxBizFanPointProcessVariableClassification
>>
zxzIds
,
String
xgxPvConsumer
)
{
Map
<
String
,
List
<
IdxBizFanPointProcessVariableClassification
>>
zxzIds
,
String
xgxPvConsumer
)
{
String
startTime
=
DateUtils
.
convertDateToString
(
DateUtil
.
offsetDay
(
new
Date
(),
-
1
),
String
startTime
=
DateUtils
.
convertDateToString
(
DateUtil
.
offsetDay
(
new
Date
(),
Integer
.
parseInt
(
gkblhfSelectDay
)
),
DateUtils
.
DATE_TIME_PATTERN
);
DateUtils
.
DATE_TIME_PATTERN
);
String
endTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
getCurrentDayEndTime
(
new
Date
()),
String
endTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
getCurrentDayEndTime
(
new
Date
()),
DateUtils
.
DATE_TIME_PATTERN
);
DateUtils
.
DATE_TIME_PATTERN
);
...
@@ -504,7 +505,7 @@ public class KafkaConsumerService {
...
@@ -504,7 +505,7 @@ public class KafkaConsumerService {
private
void
buildExecData
(
List
<
ConsumerRecord
<
String
,
String
>>
consumerRecords
,
private
void
buildExecData
(
List
<
ConsumerRecord
<
String
,
String
>>
consumerRecords
,
Map
<
String
,
Set
<
String
>>
gatewayPoints
,
String
xgxPvConsumer
)
{
Map
<
String
,
Set
<
String
>>
gatewayPoints
,
String
xgxPvConsumer
)
{
String
startTime
=
DateUtils
.
convertDateToString
(
DateUtil
.
offsetDay
(
new
Date
(),
-
1
),
String
startTime
=
DateUtils
.
convertDateToString
(
DateUtil
.
offsetDay
(
new
Date
(),
Integer
.
parseInt
(
gkblhfSelectDay
)
),
DateUtils
.
DATE_TIME_PATTERN
);
DateUtils
.
DATE_TIME_PATTERN
);
String
endTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
getCurrentDayEndTime
(
new
Date
()),
String
endTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
getCurrentDayEndTime
(
new
Date
()),
DateUtils
.
DATE_TIME_PATTERN
);
DateUtils
.
DATE_TIME_PATTERN
);
...
@@ -825,7 +826,7 @@ public class KafkaConsumerService {
...
@@ -825,7 +826,7 @@ public class KafkaConsumerService {
private
void
buildZXZPvExecData
(
List
<
ConsumerRecord
<
String
,
String
>>
consumerRecords
,
private
void
buildZXZPvExecData
(
List
<
ConsumerRecord
<
String
,
String
>>
consumerRecords
,
Map
<
String
,
Set
<
String
>>
gatewayPoints
,
Map
<
String
,
Set
<
String
>>
gatewayPoints
,
Map
<
String
,
List
<
IdxBizPvPointProcessVariableClassification
>>
zxzIds
,
String
xgxPvConsumer
)
{
Map
<
String
,
List
<
IdxBizPvPointProcessVariableClassification
>>
zxzIds
,
String
xgxPvConsumer
)
{
String
startTime
=
DateUtils
.
convertDateToString
(
DateUtil
.
offsetDay
(
new
Date
(),
-
1
),
String
startTime
=
DateUtils
.
convertDateToString
(
DateUtil
.
offsetDay
(
new
Date
(),
Integer
.
parseInt
(
gkblhfSelectDay
)
),
DateUtils
.
DATE_TIME_PATTERN
);
DateUtils
.
DATE_TIME_PATTERN
);
String
endTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
getCurrentDayEndTime
(
new
Date
()),
String
endTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
getCurrentDayEndTime
(
new
Date
()),
DateUtils
.
DATE_TIME_PATTERN
);
DateUtils
.
DATE_TIME_PATTERN
);
...
...
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