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
66a8a6fb
Commit
66a8a6fb
authored
Aug 06, 2024
by
lilongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、解决变量层级健康等级划分页面下的风电/光伏分析变量运行监测数据趋势图按照时间等查询问题
parent
aca108ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
IdxBizFanHealthIndexServiceImpl.java
...iop/biz/service/impl/IdxBizFanHealthIndexServiceImpl.java
+17
-7
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/IdxBizFanHealthIndexServiceImpl.java
View file @
66a8a6fb
...
@@ -99,20 +99,30 @@ public class IdxBizFanHealthIndexServiceImpl extends BaseService<IdxBizFanHealth
...
@@ -99,20 +99,30 @@ public class IdxBizFanHealthIndexServiceImpl extends BaseService<IdxBizFanHealth
);
);
tdid
=
address
+
"_"
+
idxBizFanPointProcessVariableClassification
.
getGatewayId
();
tdid
=
address
+
"_"
+
idxBizFanPointProcessVariableClassification
.
getGatewayId
();
}
}
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
DateUtils
.
DATE_TIME_PATTERN
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Calendar
calendar
=
Calendar
.
getInstance
(
TimeZone
.
getTimeZone
(
"UTC"
));
//限制必须是区间时间段
//限制必须是区间时间段
if
(
startTime
==
null
||
endTime
==
null
){
if
(
startTime
==
null
||
endTime
==
null
){
Date
currentDayStartTime
=
DateUtils
.
getCurrentDayStartTime
(
new
Date
());
Date
currentDayStartTime
=
DateUtils
.
getCurrentDayStartTime
(
new
Date
());
Date
currentDayEndTime
=
DateUtils
.
getCurrentDayEndTime
(
new
Date
());
Date
currentDayEndTime
=
DateUtils
.
getCurrentDayEndTime
(
new
Date
());
startTime
=
sdf
.
format
(
currentDayStartTime
);
startTime
=
sdf
.
format
(
currentDayStartTime
);
endTime
=
sdf
.
format
(
currentDayEndTime
);
endTime
=
sdf
.
format
(
currentDayEndTime
);
}
else
{
}
else
{
Date
currentDayStartTime
=
DateUtils
.
dateParse
(
startTime
);
if
(
"1"
.
equals
(
type
)){
Date
currentDayEndTime
=
DateUtils
.
dateParse
(
endTime
);
startTime
=
startTime
.
concat
(
" 00:00:00"
);
endTime
=
endTime
.
concat
(
" 23:59:59"
);
}
if
(
"2"
.
equals
(
type
)){
startTime
=
startTime
.
concat
(
":00:00"
);
endTime
=
endTime
.
concat
(
":59:59"
);
}
if
(
"3"
.
equals
(
type
)){
startTime
=
startTime
.
concat
(
":00"
);
endTime
=
endTime
.
concat
(
":59"
);
}
Date
currentDayStartTime
=
DateUtils
.
dateAddHours
(
DateUtils
.
dateParse
(
startTime
),
-
8
);
Date
currentDayEndTime
=
DateUtils
.
dateAddHours
(
DateUtils
.
dateParse
(
endTime
),
-
8
);
startTime
=
sdf
.
format
(
currentDayStartTime
);
startTime
=
sdf
.
format
(
currentDayStartTime
);
endTime
=
sdf
.
format
(
currentDayEndTime
);
endTime
=
sdf
.
format
(
currentDayEndTime
);
}
}
...
...
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