| | |
| | | return new Response().setII(1,list.size()>0,list,"获取所有的省份"); |
| | | } |
| | | //获取省下的市 |
| | | public Response getCityByUid(int uid, String stationName1) { |
| | | List<String> list=mapper.getCityByUid(uid,stationName1); |
| | | public Response getCityByUid(int uid, String provice) { |
| | | List<String> list=mapper.getCityByUid(uid,provice); |
| | | return new Response().setII(1,list.size()>0,list,"获取省下的市"); |
| | | } |
| | | //获取省市下的区县 |
| | | public Response getCountryByUid(int uid, String stationName1, String stationName2) { |
| | | List<String> list=mapper.getCountryByUid(uid,stationName1,stationName2); |
| | | public Response getCountryByUid(int uid, String provice, String city) { |
| | | List<String> list=mapper.getCountryByUid(uid,provice,city); |
| | | return new Response().setII(1,list.size()>0,list,"获取省市下的区县"); |
| | | } |
| | | //获取省市区县下的站点 |
| | | public Response getStationByUid(int uid, String stationName1, String stationName2, String stationName3) { |
| | | List<String> list=mapper.getStationByUid(uid,stationName1,stationName2,stationName3); |
| | | public Response getStationByUid(int uid, String provice, String city, String country) { |
| | | List<String> list=mapper.getStationByUid(uid,provice,city,country); |
| | | return new Response().setII(1,list.size()>0,list,"获取省市区县下的站点"); |
| | | } |
| | | } |