Commit f0ba11bb7c4a760d6b21d16de3cabc693b71d183
1 parent
a96679ef
update
Showing
3 changed files
with
3 additions
and
3 deletions
src/main/java/com/bsth/service/impl/LineServiceImpl.java
| ... | ... | @@ -166,7 +166,7 @@ public class LineServiceImpl extends BaseServiceImpl<Line, Integer> implements L |
| 166 | 166 | @Override |
| 167 | 167 | public Map<String, Object> getLineMatchStationIsUpdate(Integer id){ |
| 168 | 168 | Map<String, Object> map = new HashMap<>(); |
| 169 | - Line l = repository.findOne(id); | |
| 169 | + Line l = repository.findById(id).get(); | |
| 170 | 170 | Connection conn = null; |
| 171 | 171 | PreparedStatement ps = null; |
| 172 | 172 | ResultSet rs = null; | ... | ... |
src/main/java/com/bsth/service/impl/StationRouteServiceImpl.java
| ... | ... | @@ -1648,7 +1648,7 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ |
| 1648 | 1648 | } else if(stations.get(1).getStationName().indexOf(stationMDs.get(1).getStationName()) != -1 && stations.get(2).getStationName().indexOf(stationMDs.get(2).getStationName()) != -1 && stations.get(3).getStationName().indexOf(stationMDs.get(3).getStationName()) != -1 ){ |
| 1649 | 1649 | matchCode(stations,stationMDs,listMactah); |
| 1650 | 1650 | } |
| 1651 | - repository.save(listMactah); | |
| 1651 | + repository.saveAll(listMactah); | |
| 1652 | 1652 | } |
| 1653 | 1653 | return listMactah; |
| 1654 | 1654 | } | ... | ... |
src/main/resources/static/pages/base/stationroute/css/bmap_base.css