@GET @Path("/getAnalysisList") public Response getAnalysisList( final @HeaderParam("token") String token, final @HeaderParam("partnerId") String partnerId, final @QueryParam("vehicleId") String vehicleId) { TrackGpsListResponse response = new TrackGpsListResponse(); List<TrackGps> gpsList = trackRecordsService.getLatestTrackGpsByVehicleId(vehicleId); response.getData().setGpsList(gpsList); return Response.status(Response.Status.OK).entity(response).build(); }
@GET @Path("/viewTrack") public Response viewTrack( final @HeaderParam("token") String token, final @HeaderParam("partnerId") String partnerId, final @QueryParam("vehicleId") String vehicleId, final @QueryParam("endTime") String endTime, final @QueryParam("startTime") String startTime) { TrackGpsListResponse response = new TrackGpsListResponse(); List<TrackGps> gpsList = gpsHistoryService.viewTrack(vehicleId, startTime, endTime); response.getData().setGpsList(gpsList); return Response.status(Response.Status.OK).entity(response).build(); }