Commit c972b387ca53163a76ca772c3214e681f3a0d179
1 parent
476f6932
生成线路文件更改
Signed-off-by: YRF <YRF@DESKTOP-UNV37O6>
Showing
1 changed file
with
4 additions
and
2 deletions
src/main/java/com/bsth/service/impl/StationRouteServiceImpl.java
| ... | ... | @@ -843,8 +843,10 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ |
| 843 | 843 | /** 获取路段路由信息 @pararm:<lineId:线路ID;directions:方向> */ |
| 844 | 844 | List<Object[]> sobje = routeRepository.sectionRouteVector(lineId,directions); |
| 845 | 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 | 850 | }else if(sobje.size()>1){ |
| 849 | 851 | for(int j =0;j<sobje.size();j++) { |
| 850 | 852 | double dsleepStrt = sobje.get(j)[2] == null || sobje.get(j)[2].equals("") ? 60d : Double.valueOf(sobje.get(j)[2].toString()); | ... | ... |