Commit 478e05ff36d002d990208ee08d7f0df7b9ec81a7
1 parent
a884f081
ftp
Showing
1 changed file
with
4 additions
and
2 deletions
src/main/java/com/bsth/service/impl/StationRouteServiceImpl.java
| ... | ... | @@ -1005,8 +1005,10 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ |
| 1005 | 1005 | /** 获取路段路由信息 @pararm:<lineId:线路ID;directions:方向> */ |
| 1006 | 1006 | List<Object[]> sobje = routeRepository.sectionRouteVector(lineId,directions); |
| 1007 | 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 | 1012 | }else if(sobje.size()>1){ |
| 1011 | 1013 | for(int j =0;j<sobje.size();j++) { |
| 1012 | 1014 | double dsleepStrt = sobje.get(j)[2] == null || sobje.get(j)[2].equals("") ? 60d : Double.valueOf(sobje.get(j)[2].toString()); | ... | ... |