Commit de106d1e authored by chenzhao's avatar chenzhao

风电健康指数查询优化

parent 1413549e
...@@ -252,7 +252,7 @@ public class TdInfoQueryController extends BaseController { ...@@ -252,7 +252,7 @@ public class TdInfoQueryController extends BaseController {
dto.setEndDateTs(endTs); dto.setEndDateTs(endTs);
dto.setTableName("pv_health_index_hour"); dto.setTableName("pv_health_index_hour");
} else if(dto.getAnalysisType() != null && dto.getAnalysisType().equals("按10分钟") && endDate.length() == 16) { } else if(dto.getAnalysisType() != null && dto.getAnalysisType().equals("按10分钟") && endDate.length() == 16) {
String nextWholeMinute = DateUtils.getBeforeWholeMinute(endDate); String nextWholeMinute = DateUtils.getBeforeWholeMinute(endDate+":00");
long endTs = pvHealthIndexMapper.getTsByRecDate("pv_health_index_moment", nextWholeMinute, "desc "); long endTs = pvHealthIndexMapper.getTsByRecDate("pv_health_index_moment", nextWholeMinute, "desc ");
dto.setEndDateTs(endTs); dto.setEndDateTs(endTs);
dto.setTableName("pv_health_index_moment"); dto.setTableName("pv_health_index_moment");
......
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