Commit 478e05ff36d002d990208ee08d7f0df7b9ec81a7

Authored by 游瑞烽
1 parent a884f081

ftp

src/main/java/com/bsth/service/impl/StationRouteServiceImpl.java
@@ -1005,8 +1005,10 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ @@ -1005,8 +1005,10 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ
1005 /** 获取路段路由信息 @pararm:<lineId:线路ID;directions:方向> */ 1005 /** 获取路段路由信息 @pararm:<lineId:线路ID;directions:方向> */
1006 List<Object[]> sobje = routeRepository.sectionRouteVector(lineId,directions); 1006 List<Object[]> sobje = routeRepository.sectionRouteVector(lineId,directions);
1007 if(sobje.size()==1) { 1007 if(sobje.size()==1) {
1008 - int dsleepStr = sobje.get(0)[2] == null || sobje.get(0)[2].equals("") ? 60 : Integer.valueOf(sobje.get(0)[2].toString());  
1009 - sleepStr = "\t" + String.valueOf(dsleepStr); 1008 +// int dsleepStr = sobje.get(0)[2] == null || sobje.get(0)[2].equals("") ? 60 : Integer.valueOf(sobje.get(0)[2].toString());
  1009 +// sleepStr = "\t" + String.valueOf(dsleepStr);
  1010 + double dsleepStrt = sobje.get(0)[2] == null ? 60d : Double.valueOf(sobje.get(0)[2].toString());
  1011 + sleepStr = "\t" + new DecimalFormat("0").format(dsleepStrt);
1010 }else if(sobje.size()>1){ 1012 }else if(sobje.size()>1){
1011 for(int j =0;j<sobje.size();j++) { 1013 for(int j =0;j<sobje.size();j++) {
1012 double dsleepStrt = sobje.get(j)[2] == null || sobje.get(j)[2].equals("") ? 60d : Double.valueOf(sobje.get(j)[2].toString()); 1014 double dsleepStrt = sobje.get(j)[2] == null || sobje.get(j)[2].equals("") ? 60d : Double.valueOf(sobje.get(j)[2].toString());