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
07dc04a6
Commit
07dc04a6
authored
Aug 06, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
智能分析等级划分折线图
parent
44e98378
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
DateUtils.java
...ava/com/yeejoin/amos/boot/biz/common/utils/DateUtils.java
+1
-1
IdxBizFanHealthIndexController.java
.../jxiop/biz/controller/IdxBizFanHealthIndexController.java
+7
-7
IdxBizPvHealthIndexController.java
...e/jxiop/biz/controller/IdxBizPvHealthIndexController.java
+6
-6
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/DateUtils.java
View file @
07dc04a6
...
...
@@ -20,7 +20,7 @@ public class DateUtils {
public
static
final
String
DATE_TIME_PATTERN
=
"yyyy-MM-dd HH:mm:ss"
;
public
static
final
String
MINUTE_PATTERN
=
"yyyy-MM-dd HH:mm"
;
public
static
final
String
HOUR_PATTERN
=
"yyyy-MM-dd HH
:mm:ss
"
;
public
static
final
String
HOUR_PATTERN
=
"yyyy-MM-dd HH"
;
public
static
final
String
DATE_PATTERN
=
"yyyy-MM-dd"
;
public
static
final
String
MONTH_PATTERN
=
"yyyy-MM"
;
public
static
final
String
YEAR_PATTERN
=
"yyyy"
;
...
...
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 @
07dc04a6
...
...
@@ -798,7 +798,7 @@ public class IdxBizFanHealthIndexController extends BaseController {
Date
startDate
=
DateUtils
.
dateParse
(
startTimeTop
);
startTimeTop
=
formatter
.
format
(
startDate
);
List
<
FanHealthIndexDay
>
fanHealthIndexDays
=
fanHealthIndexDayMapper
.
selectTrendData
(
healthLevel
,
area
,
equipmentName
,
subSystem
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
,
null
,
null
,
orgCode
);
fanHealthIndexDays
=
fanHealthIndexDays
.
stream
().
sorted
(
Comparator
.
comparing
(
FanHealthIndexDay:
:
get
AnalysisTim
e
)).
collect
(
Collectors
.
toList
());
fanHealthIndexDays
=
fanHealthIndexDays
.
stream
().
sorted
(
Comparator
.
comparing
(
FanHealthIndexDay:
:
get
RecDat
e
)).
collect
(
Collectors
.
toList
());
for
(
FanHealthIndexDay
obj
:
fanHealthIndexDays
)
{
if
(
type
.
equals
(
"0"
)){
...
...
@@ -814,13 +814,13 @@ public class IdxBizFanHealthIndexController extends BaseController {
}
else
if
(
WarningPeriodEnum
.
HOUR
.
getName
().
equals
(
requiredType
)){
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
if
(
null
!=
endTimeTop
){
Date
endDate
=
DateUtils
.
date
AddHours
(
DateUtils
.
dateParse
(
endTimeTop
),
-
8
);
Date
endDate
=
DateUtils
.
date
Parse
(
endTimeTop
);
endTimeTop
=
formatter
.
format
(
endDate
);
}
Date
startDate
=
DateUtils
.
date
AddHours
(
DateUtils
.
dateParse
(
startTimeTop
),
-
8
);
Date
startDate
=
DateUtils
.
date
Parse
(
startTimeTop
);
startTimeTop
=
formatter
.
format
(
startDate
);
List
<
FanHealthIndexHour
>
fanHealthIndexHours
=
fanHealthIndexHourMapper
.
selectTrendData
(
healthLevel
,
area
,
equipmentName
,
subSystem
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
,
null
,
null
,
orgCode
);
fanHealthIndexHours
=
fanHealthIndexHours
.
stream
().
sorted
(
Comparator
.
comparing
(
FanHealthIndexHour:
:
get
AnalysisTim
e
)).
collect
(
Collectors
.
toList
());
fanHealthIndexHours
=
fanHealthIndexHours
.
stream
().
sorted
(
Comparator
.
comparing
(
FanHealthIndexHour:
:
get
RecDat
e
)).
collect
(
Collectors
.
toList
());
for
(
FanHealthIndexHour
obj
:
fanHealthIndexHours
)
{
if
(
type
.
equals
(
"0"
)){
seriesData
.
add
(
Double
.
parseDouble
(
df
.
format
(
obj
.
getHealthIndex
())));
...
...
@@ -837,14 +837,14 @@ public class IdxBizFanHealthIndexController extends BaseController {
}
else
{
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
if
(
null
!=
endTimeTop
){
Date
endDate
=
DateUtils
.
date
AddHours
(
DateUtils
.
dateParse
(
endTimeTop
),
-
8
);
Date
endDate
=
DateUtils
.
date
Parse
(
endTimeTop
);
endTimeTop
=
formatter
.
format
(
endDate
);
}
Date
startDate
=
DateUtils
.
date
AddHours
(
DateUtils
.
dateParse
(
startTimeTop
),
-
8
);
Date
startDate
=
DateUtils
.
date
Parse
(
startTimeTop
);
startTimeTop
=
formatter
.
format
(
startDate
);
List
<
FanHealthIndexMoment
>
fanHealthIndexMoments
=
fanHealthIndexMomentMapper
.
selectTrendData
(
healthLevel
,
area
,
equipmentName
,
subSystem
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
,
null
,
null
,
orgCode
);
fanHealthIndexMoments
=
fanHealthIndexMoments
.
stream
().
sorted
(
Comparator
.
comparing
(
FanHealthIndexMoment:
:
get
AnalysisTim
e
)).
collect
(
Collectors
.
toList
());
fanHealthIndexMoments
=
fanHealthIndexMoments
.
stream
().
sorted
(
Comparator
.
comparing
(
FanHealthIndexMoment:
:
get
RecDat
e
)).
collect
(
Collectors
.
toList
());
for
(
FanHealthIndexMoment
obj
:
fanHealthIndexMoments
)
{
if
(
type
.
equals
(
"0"
)){
seriesData
.
add
(
Double
.
parseDouble
(
df
.
format
(
obj
.
getHealthIndex
())));
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizPvHealthIndexController.java
View file @
07dc04a6
...
...
@@ -475,7 +475,7 @@ public class IdxBizPvHealthIndexController extends BaseController {
startTimeTop
=
formatter
.
format
(
startDate
);
List
<
PvHealthIndexDay
>
fanHealthIndexDays
=
pvHealthIndexDayMapper
.
selectTrendData
(
station
,
analysisType
,
indexAddress
,
healthLevel
,
area
,
analysisObjType
,
subarray
,
pointName
,
startTimeTop
,
endTimeTop
,
equipmentName
,
null
,
null
,
orgCode
);
fanHealthIndexDays
=
fanHealthIndexDays
.
stream
().
sorted
(
Comparator
.
comparing
(
PvHealthIndexDay:
:
get
AnalysisTim
e
)).
collect
(
Collectors
.
toList
());
fanHealthIndexDays
=
fanHealthIndexDays
.
stream
().
sorted
(
Comparator
.
comparing
(
PvHealthIndexDay:
:
get
RecDat
e
)).
collect
(
Collectors
.
toList
());
for
(
PvHealthIndexDay
obj
:
fanHealthIndexDays
)
{
if
(
type
.
equals
(
"0"
)){
...
...
@@ -491,13 +491,13 @@ public class IdxBizPvHealthIndexController extends BaseController {
}
else
if
(
WarningPeriodEnum
.
HOUR
.
getName
().
equals
(
requiredType
)){
SimpleDateFormat
formatter
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
if
(
null
!=
endTimeTop
){
Date
endDate
=
DateUtils
.
date
AddHours
(
DateUtils
.
dateParse
(
endTimeTop
),
-
8
);
Date
endDate
=
DateUtils
.
date
Parse
(
endTimeTop
);
endTimeTop
=
formatter
.
format
(
endDate
);
}
Date
startDate
=
DateUtils
.
date
AddHours
(
DateUtils
.
dateParse
(
startTimeTop
),
-
8
);
Date
startDate
=
DateUtils
.
date
Parse
(
startTimeTop
);
startTimeTop
=
formatter
.
format
(
startDate
);
List
<
PvHealthIndexHour
>
fanHealthIndexHours
=
pvHealthIndexHourMapper
.
selectTrendData
(
healthLevel
,
area
,
equipmentName
,
subarray
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
,
null
,
null
,
orgCode
);
fanHealthIndexHours
=
fanHealthIndexHours
.
stream
().
sorted
(
Comparator
.
comparing
(
PvHealthIndexHour:
:
get
AnalysisTim
e
)).
collect
(
Collectors
.
toList
());
fanHealthIndexHours
=
fanHealthIndexHours
.
stream
().
sorted
(
Comparator
.
comparing
(
PvHealthIndexHour:
:
get
RecDat
e
)).
collect
(
Collectors
.
toList
());
for
(
PvHealthIndexHour
obj
:
fanHealthIndexHours
)
{
if
(
type
.
equals
(
"0"
)){
seriesData
.
add
(
Double
.
parseDouble
(
df
.
format
(
obj
.
getHealthIndex
())));
...
...
@@ -517,10 +517,10 @@ public class IdxBizPvHealthIndexController extends BaseController {
SimpleDateFormat
formatterNYRSF
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm"
);
if
(
null
!=
endTimeTop
){
Date
endDate
=
DateUtils
.
date
AddHours
(
DateUtils
.
dateParse
(
endTimeTop
),
-
8
);
Date
endDate
=
DateUtils
.
date
Parse
(
endTimeTop
);
endTimeTop
=
formatter
.
format
(
endDate
);
}
Date
startDate
=
DateUtils
.
date
AddHours
(
DateUtils
.
dateParse
(
startTimeTop
),
-
8
);
Date
startDate
=
DateUtils
.
date
Parse
(
startTimeTop
);
startTimeTop
=
formatter
.
format
(
startDate
);
List
<
PvHealthIndexMoment
>
fanHealthIndexMoments
=
pvHealthIndexMomentMapper
.
selectTrendData
(
healthLevel
,
area
,
equipmentName
,
subarray
,
analysisType
,
analysisObjType
,
station
,
pointName
,
indexAddress
,
startTimeTop
,
endTimeTop
,
null
,
null
,
orgCode
);
...
...
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