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
03f3fd06
Commit
03f3fd06
authored
Aug 06, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
5c90d655
239cfbeb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
27 deletions
+27
-27
EquipmentSpecificIndex.java
...yeejoin/amos/api/alarm/entity/EquipmentSpecificIndex.java
+1
-1
TdInfoQueryController.java
...ot/module/jxiop/biz/controller/TdInfoQueryController.java
+24
-24
PvHealthIndexServiceImpl.java
...dule/jxiop/biz/service/impl/PvHealthIndexServiceImpl.java
+2
-2
TdengineTimeServiceImpl.java
...odule/jxiop/biz/service/impl/TdengineTimeServiceImpl.java
+0
-0
No files found.
amos-boot-data/amos-boot-data-alarm/src/main/java/com/yeejoin/amos/api/alarm/entity/EquipmentSpecificIndex.java
View file @
03f3fd06
...
@@ -50,7 +50,7 @@ public class EquipmentSpecificIndex {
...
@@ -50,7 +50,7 @@ public class EquipmentSpecificIndex {
private
String
emergencyLevelColor
;
private
String
emergencyLevelColor
;
@TableField
(
"is_alarm"
)
@TableField
(
"is_alarm"
)
private
boolean
isAlarm
;
private
Double
isAlarm
;
@TableField
(
"emergency_level"
)
@TableField
(
"emergency_level"
)
private
String
emergencyLevel
;
private
String
emergencyLevel
;
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TdInfoQueryController.java
View file @
03f3fd06
...
@@ -104,13 +104,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -104,13 +104,13 @@ public class TdInfoQueryController extends BaseController {
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
if
(
CharSequenceUtil
.
isNotEmpty
(
dto
.
getStartDate
()))
{
String
startDate
=
dto
.
getStartDate
();
String
startDate
=
dto
.
getStartDate
();
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
startDate
=
startDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
startDate
=
startDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
startDate
=
startDate
+
":
"
+
ss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00"
;
}
}
Date
date
=
DateUtils
.
dateParse
(
startDate
,
DATE_TIME_PATTERN
);
Date
date
=
DateUtils
.
dateParse
(
startDate
,
DATE_TIME_PATTERN
);
...
@@ -121,13 +121,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -121,13 +121,13 @@ public class TdInfoQueryController extends BaseController {
String
endDate
=
dto
.
getEndDate
();
String
endDate
=
dto
.
getEndDate
();
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
endDate
=
endDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
endDate
=
endDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
endDate
=
endDate
+
":
"
+
ss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00"
;
}
}
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
...
@@ -204,13 +204,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -204,13 +204,13 @@ public class TdInfoQueryController extends BaseController {
String
startDate
=
dto
.
getStartDate
();
String
startDate
=
dto
.
getStartDate
();
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
startDate
=
startDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
startDate
=
startDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
startDate
=
startDate
+
":
"
+
ss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00"
;
}
}
...
@@ -222,13 +222,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -222,13 +222,13 @@ public class TdInfoQueryController extends BaseController {
String
endDate
=
dto
.
getEndDate
();
String
endDate
=
dto
.
getEndDate
();
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
endDate
=
endDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
endDate
=
endDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00:00"
;
}
}
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
if
(
dto
.
getAnalysisType
()
!=
null
&&
dto
.
getAnalysisType
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
endDate
=
endDate
+
":
"
+
ss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00"
;
}
}
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
...
@@ -288,13 +288,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -288,13 +288,13 @@ public class TdInfoQueryController extends BaseController {
String
startDate
=
dto
.
getStartDate
();
String
startDate
=
dto
.
getStartDate
();
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
startDate
=
startDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
startDate
=
startDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
startDate
=
startDate
+
":
"
+
ss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00"
;
}
}
...
@@ -306,13 +306,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -306,13 +306,13 @@ public class TdInfoQueryController extends BaseController {
String
endDate
=
dto
.
getEndDate
();
String
endDate
=
dto
.
getEndDate
();
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
endDate
=
endDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
endDate
=
endDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
endDate
=
endDate
+
":
"
+
ss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00"
;
}
}
...
@@ -372,13 +372,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -372,13 +372,13 @@ public class TdInfoQueryController extends BaseController {
String
startDate
=
dto
.
getStartDate
();
String
startDate
=
dto
.
getStartDate
();
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
startDate
.
length
()
==
10
)
{
startDate
=
startDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
startDate
.
length
()
==
13
)
{
startDate
=
startDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
startDate
.
length
()
==
16
)
{
startDate
=
startDate
+
":
"
+
ss
.
format
(
currentDate
)
;
startDate
=
startDate
+
":
00"
;
}
}
Date
date
=
DateUtils
.
dateParse
(
startDate
,
DATE_TIME_PATTERN
);
Date
date
=
DateUtils
.
dateParse
(
startDate
,
DATE_TIME_PATTERN
);
...
@@ -389,13 +389,13 @@ public class TdInfoQueryController extends BaseController {
...
@@ -389,13 +389,13 @@ public class TdInfoQueryController extends BaseController {
String
endDate
=
dto
.
getEndDate
();
String
endDate
=
dto
.
getEndDate
();
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按天"
)
&&
endDate
.
length
()
==
10
)
{
endDate
=
endDate
+
"
"
+
hhmmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
"
00:00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按小时"
)
&&
endDate
.
length
()
==
13
)
{
endDate
=
endDate
+
":
"
+
mmss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00:00"
;
}
}
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
if
(
dto
.
getWarningPeriod
()
!=
null
&&
dto
.
getWarningPeriod
().
equals
(
"按10分钟"
)
&&
endDate
.
length
()
==
16
)
{
endDate
=
endDate
+
":
"
+
ss
.
format
(
currentDate
)
;
endDate
=
endDate
+
":
00"
;
}
}
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
Date
endDateDate
=
DateUtils
.
dateParse
(
endDate
,
DATE_TIME_PATTERN
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PvHealthIndexServiceImpl.java
View file @
03f3fd06
...
@@ -162,7 +162,7 @@ public class PvHealthIndexServiceImpl implements IPvHealthIndexService {
...
@@ -162,7 +162,7 @@ public class PvHealthIndexServiceImpl implements IPvHealthIndexService {
String
analysisObjectType
)
{
String
analysisObjectType
)
{
List
<
PvHealthIndex
>
pvHealthIndices
=
pvHealthIndexMapper
.
getInfoList
(
startTime
,
tableName
,
analysisObjectType
);
List
<
PvHealthIndex
>
pvHealthIndices
=
pvHealthIndexMapper
.
getInfoList
(
startTime
,
tableName
,
analysisObjectType
);
QueryWrapper
<
IdxBizPvWeight
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
IdxBizPvWeight
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"type"
,
"
3
"
);
queryWrapper
.
eq
(
"type"
,
"
4
"
);
queryWrapper
.
isNotNull
(
"value"
);
queryWrapper
.
isNotNull
(
"value"
);
List
<
IdxBizPvWeight
>
idxBizFanWeights
=
idxBizPvWeightMapper
.
selectList
(
queryWrapper
);
List
<
IdxBizPvWeight
>
idxBizFanWeights
=
idxBizPvWeightMapper
.
selectList
(
queryWrapper
);
Map
<
String
,
Float
>
weightMap
=
idxBizFanWeights
.
stream
().
collect
(
Collectors
.
toMap
(
o
->
o
.
getArae
()
+
o
.
getStation
()
+
o
.
getEquipmentName
()
+
o
.
getSubarray
(),
IdxBizPvWeight:
:
getValue
));
Map
<
String
,
Float
>
weightMap
=
idxBizFanWeights
.
stream
().
collect
(
Collectors
.
toMap
(
o
->
o
.
getArae
()
+
o
.
getStation
()
+
o
.
getEquipmentName
()
+
o
.
getSubarray
(),
IdxBizPvWeight:
:
getValue
));
...
@@ -215,7 +215,7 @@ public class PvHealthIndexServiceImpl implements IPvHealthIndexService {
...
@@ -215,7 +215,7 @@ public class PvHealthIndexServiceImpl implements IPvHealthIndexService {
String
analysisObjectType
)
{
String
analysisObjectType
)
{
List
<
PvHealthIndex
>
pvHealthIndices
=
pvHealthIndexMapper
.
getInfoList
(
startTime
,
tableName
,
analysisObjectType
);
List
<
PvHealthIndex
>
pvHealthIndices
=
pvHealthIndexMapper
.
getInfoList
(
startTime
,
tableName
,
analysisObjectType
);
QueryWrapper
<
IdxBizPvWeight
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
IdxBizPvWeight
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"type"
,
"
4
"
);
queryWrapper
.
eq
(
"type"
,
"
3
"
);
queryWrapper
.
isNotNull
(
"value"
);
queryWrapper
.
isNotNull
(
"value"
);
List
<
IdxBizPvWeight
>
idxBizFanWeights
=
idxBizPvWeightMapper
.
selectList
(
queryWrapper
);
List
<
IdxBizPvWeight
>
idxBizFanWeights
=
idxBizPvWeightMapper
.
selectList
(
queryWrapper
);
Map
<
String
,
Float
>
weightMap
=
idxBizFanWeights
.
stream
().
collect
(
Collectors
.
toMap
(
o
->
o
.
getArae
()
+
o
.
getStation
()
+
o
.
getEquipmentName
(),
IdxBizPvWeight:
:
getValue
));
Map
<
String
,
Float
>
weightMap
=
idxBizFanWeights
.
stream
().
collect
(
Collectors
.
toMap
(
o
->
o
.
getArae
()
+
o
.
getStation
()
+
o
.
getEquipmentName
(),
IdxBizPvWeight:
:
getValue
));
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/TdengineTimeServiceImpl.java
View file @
03f3fd06
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