Pārlūkot izejas kodu

修复经纬度BUG

yanliming 4 gadi atpakaļ
vecāks
revīzija
2cc344575e

+ 1 - 1
web/src/main/java/com/jpsoft/bus/modules/bus/controller/RouteInfoController.java

@@ -171,7 +171,7 @@ public class RouteInfoController {
                     stationInfoDTO.setId(stationInfo.getId());
                     stationInfoDTO.setName(stationInfo.getName());
 
-                    if(stationInfo.getLongitude() ==null && stationInfo.getLatitude() == null){
+                    if(stationInfo.getLongitude() !=null && stationInfo.getLatitude() != null){
                         stationInfoDTO.setLocation(stationInfo.getLongitude()+","+stationInfo.getLatitude());
                     }