Commit 61f9ea5017d345fe37575364dc2d10ed4200bc5a
1 parent
037965f9
产研院接口--安全驾驶
Showing
1 changed file
with
16 additions
and
2 deletions
src/main/java/com/bsth/server_rs/bigdata/BigdateService.java
| ... | ... | @@ -582,8 +582,22 @@ public class BigdateService { |
| 582 | 582 | /* |
| 583 | 583 | *安全驾驶接口开始 |
| 584 | 584 | */ |
| 585 | - | |
| 586 | - | |
| 585 | + @GET | |
| 586 | + @Path("/safedriving/date/{date}") | |
| 587 | + public List<Map<String, Object>> findSafedriving(@PathParam("date") String date) { | |
| 588 | + String accidentAll= GetHttpInterface.getHttpInterface("http://180.166.5.82:9006/safedriving/safedrivingInterface?StarTime="+date); | |
| 589 | + List<Map<String, Object>> list=(List<Map<String, Object>>) JSONObject.parse(accidentAll); | |
| 590 | + return list; | |
| 591 | + } | |
| 592 | + @GET | |
| 593 | + @Path("/safedriving/date/{date}/line/{line}") | |
| 594 | + public List<Map<String, Object>> findSafedrivingByLine(@PathParam("date") String date, | |
| 595 | + @PathParam("line") String line) { | |
| 596 | + String accidentAll= GetHttpInterface.getHttpInterface("http://180.166.5.82:9006/safedriving/safedrivingInterface?StarTime="+date | |
| 597 | + +"&LineId="+line); | |
| 598 | + List<Map<String, Object>> list=(List<Map<String, Object>>) JSONObject.parse(accidentAll); | |
| 599 | + return list; | |
| 600 | + } | |
| 587 | 601 | /* |
| 588 | 602 | *安全驾驶接口结束 |
| 589 | 603 | */ | ... | ... |