public ResponseResult <AppRoute> AppGetLastRoute(string shipId) { var result = ResponseResult <AppRoute> .Default(); AppService appService = new AppService(); try { if (string.IsNullOrEmpty(shipId)) { return(ResponseResult <AppRoute> .Error("shipId不能为空")); } else { AppRoute lastRoute = appService.AppGetLastRoute(Convert.ToInt32(shipId)); return(ResponseResult <AppRoute> .Success(lastRoute, "获取最新路径成功")); } } catch (System.Exception ex) { result = ResponseResult <AppRoute> .Error(ex.Message); } return(result); }