Commit 8955189b5db7825e139366d8b2592e451ac1e30a
1 parent
dee343b5
1
Showing
1 changed file
with
8 additions
and
1 deletions
src/main/java/com/bsth/service/impl/StationRouteServiceImpl.java
| ... | ... | @@ -929,7 +929,14 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ |
| 929 | 929 | |
| 930 | 930 | textStr = newTextVoiceFileToFTP(objects,lineId); |
| 931 | 931 | |
| 932 | - String head = line.getName() + " " + fileVersions + " " + line.getStartStationFirstTime() + "-" + line.getStartStationEndTime() + " " + line.getEndStationFirstTime() + "-" + line.getEndStationEndTime() + " " + (line.getTicketPrice() == null ? "-" : line.getTicketPrice()) + " " + company.getBusinessName() + " " + (company.getPhoneNum()== null ? "-" : company.getPhoneNum()); | |
| 932 | + String lineName = line.getName(); | |
| 933 | + | |
| 934 | + try { | |
| 935 | + lineName = Integer.parseInt(line.getName().replace("路", "")) + ""; | |
| 936 | + } catch (Exception e) { | |
| 937 | + } | |
| 938 | + | |
| 939 | + String head = lineName + " " + fileVersions + " " + line.getStartStationFirstTime() + "-" + line.getStartStationEndTime() + " " + line.getEndStationFirstTime() + "-" + line.getEndStationEndTime() + " " + (line.getTicketPrice() == null ? "-" : line.getTicketPrice()) + " " + company.getBusinessName() + " " + (company.getPhoneNum()== null ? "-" : company.getPhoneNum()); | |
| 933 | 940 | |
| 934 | 941 | textStr = head +"\r\n" + textStr; |
| 935 | 942 | ... | ... |