Commit 99682608 authored by duanruiming's avatar duanruiming

[add] 代码逻辑优化

parent c31b4bfe
......@@ -305,6 +305,10 @@ public class TrendServiceImpl implements TrendService {
//}
// 坐标格式转换
for (AbnormalCrossListVO abnormalCrossListVO : abnormalCrossListVOList) {
Double trafficIndex = abnormalCrossListVO.getTrafficIndex();
if (trafficIndex < 1) {
abnormalCrossListVO.setTrafficIndex(1.0);
}
String locationStr = abnormalCrossListVO.getLocationStr();
double[] lonLat = CrossUtil.getLonLat(locationStr);
List<Double> location = new ArrayList<>();
......
......@@ -195,7 +195,7 @@
when #{groupType}=0 then start_time
when #{groupType}=1 then dt_15min
when #{groupType}=2 then dt_30min
when #{groupType}=3 then dt
when #{groupType}=3 then dt_60min
when #{groupType}=4 then DATE_FORMAT(start_time,'%Y-%m-%d 00:00:00' )
else DATE_FORMAT(start_time,'%Y-01-01 00:00:00')
end
......
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