Commit e0094785 authored by lilongyang's avatar lilongyang

1、解决变量层级健康等级划分页面下的风电/光伏分析变量运行监测数据趋势图按照时间等查询问题

parent e350e20b
......@@ -107,19 +107,18 @@ public class IdxBizFanHealthIndexServiceImpl extends BaseService<IdxBizFanHealth
startTime = sdf.format(currentDayStartTime);
endTime= sdf.format(currentDayEndTime);
}else{
if("1".equals(type)){
if (startTime.length() == 10) {
startTime = startTime.concat(" 00:00:00");
endTime = endTime.concat(" 23:59:59");
}
if("2".equals(type)){
} else if (startTime.length() == 13) {
startTime = startTime.concat(":00:00");
endTime = endTime.concat(":59:59");
}
if("3".equals(type)){
} else if (startTime.length() == 16) {
startTime = startTime.concat(":00");
endTime = endTime.concat(":59");
} else {
startTime = startTime.concat(" 00:00:00");
endTime = endTime.concat(" 23:59:59");
}
Date currentDayStartTime = DateUtils.dateAddHours(DateUtils.dateParse(startTime), -8);
Date currentDayEndTime = DateUtils.dateAddHours(DateUtils.dateParse(endTime), -8);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment