@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("/trackRecordsList") public Response trackRecordsList( final @HeaderParam("token") String token, final @HeaderParam("partnerId") String partnerId, final @QueryParam("vehicleId") String vehicleId, final @QueryParam("date") String date) { GetTrackRecordsCountsListResponse response = new GetTrackRecordsCountsListResponse(); List<TrackRecords> trackRecordsCountList = trackRecordsService.getTrackRecordsCountList(vehicleId, date); response.getData().setTrackRecordsList(trackRecordsCountList); return Response.status(Response.Status.OK).entity(response).build(); }