Commit c972b387ca53163a76ca772c3214e681f3a0d179

Authored by YRF
1 parent 476f6932

生成线路文件更改

Signed-off-by: YRF <YRF@DESKTOP-UNV37O6>
src/main/java/com/bsth/service/impl/StationRouteServiceImpl.java
@@ -843,8 +843,10 @@ public class StationRouteServiceImpl extends BaseServiceImpl&lt;StationRoute, Integ @@ -843,8 +843,10 @@ public class StationRouteServiceImpl extends BaseServiceImpl&lt;StationRoute, Integ
843 /** 获取路段路由信息 @pararm:<lineId:线路ID;directions:方向> */ 843 /** 获取路段路由信息 @pararm:<lineId:线路ID;directions:方向> */
844 List<Object[]> sobje = routeRepository.sectionRouteVector(lineId,directions); 844 List<Object[]> sobje = routeRepository.sectionRouteVector(lineId,directions);
845 if(sobje.size()==1) { 845 if(sobje.size()==1) {
846 - int dsleepStr = sobje.get(0)[2] == null || sobje.get(0)[2].equals("") ? 60 : Integer.valueOf(sobje.get(0)[2].toString());  
847 - sleepStr = "\t" + String.valueOf(dsleepStr); 846 + double dsleepStrt = sobje.get(0)[2] == null ? 60d : Double.valueOf(sobje.get(0)[2].toString());
  847 + sleepStr = "\t" + new DecimalFormat("0").format(dsleepStrt);
  848 +// int dsleepStr = sobje.get(0)[2] == null || sobje.get(0)[2].equals("") ? 60 : Integer.valueOf(sobje.get(0)[2].toString());
  849 +// sleepStr = "\t" + String.valueOf(dsleepStr);
848 }else if(sobje.size()>1){ 850 }else if(sobje.size()>1){
849 for(int j =0;j<sobje.size();j++) { 851 for(int j =0;j<sobje.size();j++) {
850 double dsleepStrt = sobje.get(j)[2] == null || sobje.get(j)[2].equals("") ? 60d : Double.valueOf(sobje.get(j)[2].toString()); 852 double dsleepStrt = sobje.get(j)[2] == null || sobje.get(j)[2].equals("") ? 60d : Double.valueOf(sobje.get(j)[2].toString());