Commit 25b6f0af authored by hanbing's avatar hanbing

[update] 禅道-220 场景评价页面点击当前拥堵场景,进入子页面时页面报错

parent 6ef572a5
...@@ -72,7 +72,7 @@ public class SceneEvaluateServiceImpl implements SceneEvaluateService { ...@@ -72,7 +72,7 @@ public class SceneEvaluateServiceImpl implements SceneEvaluateService {
SceneEvaluateAbnormalDistributeVO vo = new SceneEvaluateAbnormalDistributeVO(); SceneEvaluateAbnormalDistributeVO vo = new SceneEvaluateAbnormalDistributeVO();
List<SceneEvaluateAbnormalDistributeVO.TimeDistribution> timeDistributionList = List<SceneEvaluateAbnormalDistributeVO.TimeDistribution> timeDistributionList =
buildTimeDistributionList(crossId, startDate, endDate); buildTimeDistributionList(crossId, startDate, endDate);
vo.setTimeDateDistributionList(buildFinalTimeDistributionList(timeDistributionList)); vo.setTimeDateDistributionList(buildTimeDateDistributionList(timeDistributionList));
setCounts(timeDistributionList, vo); setCounts(timeDistributionList, vo);
return vo; return vo;
...@@ -163,7 +163,7 @@ public class SceneEvaluateServiceImpl implements SceneEvaluateService { ...@@ -163,7 +163,7 @@ public class SceneEvaluateServiceImpl implements SceneEvaluateService {
String[] start = times[0].split(":"); String[] start = times[0].split(":");
startCal.set(Calendar.HOUR, Integer.parseInt(start[0])); startCal.set(Calendar.HOUR, Integer.parseInt(start[0]));
startCal.set(Calendar.MINUTE, Integer.parseInt(start[1])); startCal.set(Calendar.MINUTE, Integer.parseInt(start[1]));
String[] end = times[0].split(":"); String[] end = times[1].split(":");
endCal.set(Calendar.HOUR, Integer.parseInt(end[0])); endCal.set(Calendar.HOUR, Integer.parseInt(end[0]));
endCal.set(Calendar.MINUTE, Integer.parseInt(end[1])); endCal.set(Calendar.MINUTE, Integer.parseInt(end[1]));
Date startTime = startCal.getTime(); Date startTime = startCal.getTime();
...@@ -967,7 +967,7 @@ public class SceneEvaluateServiceImpl implements SceneEvaluateService { ...@@ -967,7 +967,7 @@ public class SceneEvaluateServiceImpl implements SceneEvaluateService {
return res; return res;
} }
public List<SceneEvaluateAbnormalDistributeVO.TimeDateDistribution> buildFinalTimeDistributionList( public List<SceneEvaluateAbnormalDistributeVO.TimeDateDistribution> buildTimeDateDistributionList(
List<SceneEvaluateAbnormalDistributeVO.TimeDistribution> timeDistributionList) { List<SceneEvaluateAbnormalDistributeVO.TimeDistribution> timeDistributionList) {
List<SceneEvaluateAbnormalDistributeVO.FinalTimeDistribution> finalTimeDistributionList = new ArrayList<>(); List<SceneEvaluateAbnormalDistributeVO.FinalTimeDistribution> finalTimeDistributionList = new ArrayList<>();
......
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